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 create variant in dialog program

Former Member
0 Likes
790

How to create variant in dialog program

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
639

Hi,

give default values in the screen then it will act as variant other wise get all the values in the internal table.

when 'SAVE'.

it_tab-name = name.

append it_tab.

Plzz reward points if it helps.

How to create variant in dialog program

3 REPLIES 3
Read only

Former Member
0 Likes
640

Hi,

give default values in the screen then it will act as variant other wise get all the values in the internal table.

when 'SAVE'.

it_tab-name = name.

append it_tab.

Plzz reward points if it helps.

Read only

Former Member
0 Likes
639

Hi inderpreet,

dialog program screen have this limitation of not supporting variants (like they dont support select options - what a shame)

however, you can do it as adviced also in the above post .... but to make it a variant ... you can create a Z table with a key field which would be the variant name and remianing fields as the screen fields

when a user enters the screen field values and clicks on variant save button, you can update this Z table and in future, when he wants to retrieve the values, you can read the values from this table and display all variants in a pop up

it would be good to add created by and created on fields in this Z table to allow you to display on user specific variants also ....

hope this helps

regards,

aditya

Read only

Clemenss
Active Contributor
0 Likes
639

Hi Inderpreet,

screens created with screen painter do not provide the variant saving.

Try to create your screens using


selection-screen begin of screen xyz.
...

selection-screen end of screen xyz.

it is not so easy but with the help of all selection-screen commands available (skip, text, begin of line...) you can do it all and then CALL that screen.

Then you can save variants.

Regards,

Clemens