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

Buttons and F3 function key not working in dynpro

0 Kudos
1,201

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?

6 REPLIES 6
Read only

former_member30
Product and Topic Expert
Product and Topic Expert
0 Kudos
965

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

Read only

Gourab_Dey
Product and Topic Expert
Product and Topic Expert
0 Kudos
965

You have add the code in User command module. You can write "Leave to screen 0".

Read only

0 Kudos
965

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.
Read only

Sandra_Rossi
Active Contributor
0 Kudos
965

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?

Read only

0 Kudos
965

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.
Read only

0 Kudos
965

I've put a breakpoint in USER_COMMAND and never reach when i push F3, cancel or any key