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

How to generate Dynpro in program?

Former Member
0 Likes
1,645

Please, how to do this?

i want to generate a dynpro in my own program. Like it is in SE16. I call first screen, fill the table name, and then it 's generated dynpro with parameters having this table. Could you help me?

thanks

6 REPLIES 6
Read only

valter_oliveira
Active Contributor
0 Likes
1,020

Hi Filip.

Let's see if i can be clear:

you have 2 OPTIONS. the choice will depend on the kind of the second screen you want.

FIRST:


- 1º in you report, declare a PARAMETER (for example the table name).
- 2º after validating the user entry, use the statement CALL SCREEN XXX1 to access the restriction dynpro.
- 3º create that screen, with the fields you want to use as restrictions (like SE16), and the PBO and PAI modules.
- 4º for the final output, use call SCREEN XXX2 to access the output dynpro

SECOND

- 1º in you report, declare a PARAMETER (for example the table name).

- 2º call a secondary report.

Best regards

Valter Oliveira.

Read only

0 Likes
1,020

No, that's not it.

I describe it on the short example.

First dynpro has only one input field - name of table (i have no problem with that dynpro). But then, if i choose table BSEG, i want to have in the second dynpro all primary key (BUKRS,BELNR, GJAHR); if i choose DRAW, i want there DOKNR, DOKAR,DOKVR,DOKTL... etc. Does anyone know, how to reach that?

Read only

0 Likes
1,020

Use the FM: SWY_CREATE_DYNPRO

Regards,

Ravi

Read only

0 Likes
1,020

I found only that FMs

SWU_AM_CREATE_DYNPRO_CONT_GET

SWU_CREATE_DYNPRO_WF_START

SWU_CREATE_DYNPRO_WI_EXECUTE

Read only

0 Likes
1,020

oh, still not what i want. In fact, i want to modify the dynpro that exists. Something like call a dynpro and dynamically modify subscreens only.

Read only

0 Likes
1,020

YOu need to delete the existing subscreen every time and create a new screen for each time you delete it.

use SWY_DELETE_DYNPRO for task1 and

SWY_CREATE_DYNPRO for task2

Regards,

Ravi