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

Hide dynpro and directly execute user command

Former Member
0 Likes
609

Hi there,

I have to implement a modification in SAP-coding that should generally implement the following:

SAP calls a dynpro and I want to implement that the user doesn't get directly on the screen, insteas I want to simulate that the user has pressed a button on this dynpro. So I mean I want directly go to PAI with a given sy-ucomm. This sy-ucomm will lead to a popup which the user hast to maintain first. After he closes this dynpro he should get normal acess to the dynpro that should be supressed the first time.

Does anyone have an idea how to directly start the PAI-logic of a dynpro and not completely hide the first dynpro (because it should be shown after the popup).

Thank you!

Kind regards...

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
464

You need check for the Method "set_new_ok_code":


  CALL METHOD cl_gui_cfw=>set_new_ok_code
    EXPORTING
      new_code = '<Dummy New OKCODE>'.
 

You can find few threads related to this in this forum

a®

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
465

You need check for the Method "set_new_ok_code":


  CALL METHOD cl_gui_cfw=>set_new_ok_code
    EXPORTING
      new_code = '<Dummy New OKCODE>'.
 

You can find few threads related to this in this forum

a®

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
464

Hi,

Create a transaction for the program and then call the transaction with the required values from the program.

call transaction 'zzzz' and skip first screen.