Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call a Subscreen from a batch input

Former Member
0 Likes
1,186

Dear Gurus ,

I have made a program that call another custom program with a batch input.

The program that is called has 3 sub screens .

When the batch input call this program i want the second sub screen to be displayed.

Look my code

PERFORM BDC_DYNPRO      USING 'YDP_RAWMETAL' '0100'.
  PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                'ITAB_HEAD-BUKRS'.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                '=DISP_V'.
  PERFORM BDC_FIELD       USING 'ITAB_HEAD-VBELN'
                                ITAB-VBELN. "record-VBELN_001'.
  PERFORM BDC_FIELD       USING 'ITAB_HEAD-BUKRS'
                                ITAB-BUKRS. "record-BUKRS_002'.

  PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                '=DISP_V'.

  CALL TRANSACTION 'YMMCONTRACTS' USING BDCDATA MODE 'E' UPDATE 'S'.

Thanks a lot ....

1 REPLY 1
Read only

Former Member
0 Likes
543

Hi,

try call program with submit instead a call transaction

SUBMIT report1 USING SELECTION-SCREEN '1100'  "Your Subscreen
                WITH selcrit2 BETWEEN 'H' AND 'K'  "the calling reports Parameter
               WITH selcrit2 IN range_tab 
               AND RETURN.