Skip to Content
avatar image
Former Member

Back to a Z report after a call transaction.

Hi there,

I'm working on a Z report that passes values to a standard report skipping the selection screen of the standard report, this is working fine. The problem is if, from the standard report (outcome of the Z report) I press the back button, it takes me to the selection screen of the standard report, not back to the Z report, so I have to press back button again to go from the selection screen of the standard report, back to the Z one.

Does anybody know, how can I fix this?.

Thanks in advance for your help.

A. López

Add comment
10|10000 characters needed characters exceeded

  • Thanks to all for your help.
    Finally someone help me modifying the code submitted by Volker.
    Again, thanks for all your help.


    Kind regards,


    Andrés López

  • I would recommend marking Volker's answer as correct and submitting what you found to be the correct answer after modification to help others searching in the future.

  • Get RSS Feed

3 Answers

  • Dec 11, 2017 at 02:14 PM

    I don't get the point.

    I have written a simple report that calls a standard report with variant, displays the list of standard report and returns to my Z report selection screen:

    p_repid and p_vari are parameters of my Z report

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 08, 2017 at 06:34 PM

    I believe it's possible to do a call transation <tcode> using <bdc_table>. In the BDC provide the steps to get past the initial screen, then at the end append another dynbegin step followed by an exit like below:

    "first lines for doing w/e in the tcode to get past the selection screen
    APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <bdc>.
     <bdc>-program = '<program_name>'.
     <bdc>-dynpro = '0001'.
     <bdc>-dynbegin  = 'X'.
     <bdc>-fnam = ''.
     <bdc>-fval = ''.
    APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <bdc>.
     <bdc>-program = ''.
     <bdc>-dynpro = ''.
     <bdc>-dynbegin  = ''.
     <bdc>-fnam = 'BDC_OKCODE'.
     <bdc>-fval = p_okcode.
    "Extra steps in the bdc for when you return to the selection screen to exit
     APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <bdc>.
     <bdc>-program = '<program_name>'.
     <bdc>-dynpro = '0001'.
     <bdc>-dynbegin = 'X'.
     <bdc>-fnam = ''.
     <bdc>-fval = ''.
     APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <bdc>.
     <bdc>-program = ''.
     <bdc>-dynpro = ''.
     <bdc>-dynbegin = ''.
     <bdc>-fnam = 'BDC_OKCODE'.
     <bdc>-fval = '=EXIT'.
    Add comment
    10|10000 characters needed characters exceeded

  • Dec 12, 2017 at 06:30 AM

    Hi Andres,

    This may be caused by Process After Input block and a custom procedure that uses:

    SET SCREEN <num>.
    
    LEAVE TO SCREEN <num>.
    
    CALL SCREEN <num>.


    Call the same transaction once more and enter /h in the command field, hit enter and click on the back button. Then look for above statements. Maybe there is some screen predefined in code that is different than 0 and that's the reason.

    Add comment
    10|10000 characters needed characters exceeded