Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

*&---------------------------------------------------------------------*

*& Include
RSBC_SEL_ROUTINE_TPL
*&---------------------------------------------------------------------*
program conversion_routine.
* Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
* Global code used by conversion rules
*$*$ begin of global - insert your declaration only below this line *-*
* TABLES: ...
* DATA:
...
*$*$ end of global - insert your declaration only before this line
*-*
* ------------------------------------------------------------------*
Fieldname
= /BIC/ZWRKDATE
*
data type
= DATS
*
length
= 000008
* ------------------------------------------------------------------form c_/BIC/ZWRKDATE
tables l_t_range structure rssdlrange
using i_r_request type ref to IF_RSBK_REQUEST_ADMINTAB_VIEW
i_fieldnm type RSFIELDNM
changing p_subrc like sy-subrc.
*
Insert source code to current selection field
*$*$ begin of routine - insert your code only below this line
*-*
*----------------------------------------------------------------------*
* Design Specification ID: FSP
*
*----------------------------------------------------------------------*
* CHANGE LOG:
*
* Date
Author
Correction
Description
*
*------------------------------*
* 11/02/2016
Rajeshvaramana PB1K912366
Created
*
*
CR-1072: Production
*
*
Fix for Non-billable
*
*----------------------------------------------------------------------*
DATA: L_IDX LIKE SY-TABIX.
DATA:G_T_TVARVC TYPE TABLE OF TVARVC,
G_S_CATSWRKDATE TYPE TVARVC.
READ TABLE L_T_RANGE WITH KEY
FIELDNAME = '/BIC/ZWRKDATE'.
L_IDX = SY-TABIX.
SELECT * FROM TVARVC INTO TABLE G_T_TVARVC WHERE NAME =
'DTCATS_DSEA_LOAD'
AND TYPE EQ 'S'.
IF SY-SUBRC = 0 AND G_T_TVARVC IS NOT INITIAL.
LOOP AT G_T_TVARVC INTO G_S_CATSWRKDATE.
L_T_RANGE-HIGH = G_S_CATSWRKDATE-HIGH.
L_T_RANGE-LOW = G_S_CATSWRKDATE-LOW.
L_T_RANGE-SIGN = 'I'.
L_T_RANGE-OPTION = 'BT'.
L_T_RANGE-FIELDNAME = '/BIC/ZWRKDATE'.
IF L_IDX <> 0.
MODIFY L_T_RANGE INDEX L_IDX.
ELSE.
APPEND L_T_RANGE.
ENDIF.
P_SUBRC = 0.
ENDLOOP.
ENDIF.

*$*$ end of routine - insert your code only before this line
endform.

*-*

You might also like