2021 Jun 21 10:34 AM
I've created a new dynpro which is called from the 1100 dynpro like this:
I've created the Status_1200 and user_command_1200:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1200.
MODULE SEL_DATA_1200.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1200.
In the 1100 dynpro all the function keys are correct, but when i push the icon to go to the 1200 dynpro, in the new dynpro i need to go back but F3 and cancel button do nothing:
What I'm doing Wrong?
2021 Jun 21 10:34 AM
Hi and welcome to the SAP Community!
Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members.
Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment).
Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.
Cheers,
Julia
SAP Community Moderator
2021 Jun 21 6:02 PM
You have add the code in User command module. You can write "Leave to screen 0".
2021 Jun 22 6:44 AM
Yes in the USER_COMMAND_1200 I've add this code:
MODULE user_command_1200 INPUT.
CASE sy-ucomm.
WHEN '&F03'.
LEAVE TO SCREEN 0.
WHEN '&F15'.
LEAVE PROGRAM.
WHEN '$F12'.
LEAVE SCREEN.
ENDCASE.
ENDMODULE.
2021 Jun 21 6:41 PM
You say "F3 and cancel do nothing", but are you sure that ABAP code in user_command_1200 is not executed? (debug) What code did you define for F3 and cancel to leave screen 1200?
2021 Jun 22 6:44 AM
Yes 've added this code in the USER_COMMAND_1200:
MODULE user_command_1200 INPUT.
CASE sy-ucomm.
WHEN '&F03'.
LEAVE TO SCREEN 0.
WHEN '&F15'.
LEAVE PROGRAM.
WHEN '$F12'.
LEAVE SCREEN.
ENDCASE.
ENDMODULE.
2021 Jun 22 6:45 AM
I've put a breakpoint in USER_COMMAND and never reach when i push F3, cancel or any key