

ĬONCATENATE 'RSCSEL-' i_sng_int 'LOW_' i_sign '(' l_row_number ')' INTO l_fnam.ĪSSIGN COMPONENT 'HIGH' OF STRUCTURE TO. * page down will scroll 7 lines only (last line of last page becomes the first line)ĪSSIGN COMPONENT 'LOW' OF STRUCTURE TO. PERFORM bdc_field USING 'BDC_OKCODE' 'P+'. PERFORM bdc_field USING 'BDC_CURSOR' l_fnam. * Simulate page down by Enter key (action recorded on the previously filled screen) PERFORM bdc_dynpro USING 'SAPLALDB' '3000'. PERFORM bdc_field USING 'BDC_OKCODE' i_ucomm. * change to tabstrip tab (action recorded on the previously filled screen) OR ( i_ucomm = 'NOINT' AND = 'E' AND l_is_interval = 'X' ). OR ( i_ucomm = 'NOSV' AND = 'E' AND l_is_interval IS INITIAL )

OR ( i_ucomm = 'INTL' AND = 'I' AND l_is_interval = 'X' ) IF ( i_ucomm = 'SIVA' AND = 'I' AND l_is_interval IS INITIAL ) ĪSSIGN COMPONENT 'OPTION' OF STRUCTURE TO. PERFORM bdc_field USING 'BDC_OKCODE' '=%' & " TYPE ANY.ĪSSIGN COMPONENT 'SIGN' OF STRUCTURE TO. PERFORM bdc_dynpro USING 'SF_EXAMPLE_03' '1000'. PERFORM bdc_field USING 'RS38M-FUNC_EDIT' 'X'. PERFORM bdc_field USING 'RS38M-PROGRAMM' 'SF_EXAMPLE_03'. PERFORM bdc_field USING 'BDC_OKCODE' '=STRT'. PERFORM bdc_field USING 'BDC_CURSOR' 'RS38M-PROGRAMM'. PERFORM bdc_dynpro USING 'SAPLWBABAP' '0100'. SELECT-OPTIONS s_carrid FOR scarr-carrid. Note that second part should be included before the first part, the order here is only for the ease of reading.Ī last thing before you play with it, it is probably not performant at all, if you have hundreds of lines to enter in the selection criteria, so it is recommended in that case to use another workaround like creating dynamically a variant, and so on.įirst part : quick demo (needs the utility subroutines supplied in the second part)Error rendering macro 'code': Invalid value specified for parameter '.' TABLES : scustom, scarr. When you have to simulate input data in a selection screen, and have to enter selection criteria that may change at each run, the following subroutines may help you to fill the BDC data easily, they only need a simple range internal table as input.
