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

User exit while saving or using a variant

sriram_ramesh
Participant
0 Likes
1,138

Hi,

I have a custom tcode where there is a comment box and a pushbutton near it.

when executed, the comment just appears in the smartform.

If comment needs to be more than single line, then user clicks on pushbutton and another screen opens where we have textbox.

Everything works fine.

But when we save a variant, the comments which is given using pushbutton->screen textbox cannot be stored in the variant.

Is there any workaround for this kind of issue?

Or is it possible to use any userexit while saving and using the variant so I can store the comment in so10 text object and use it?

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

sriram_ramesh
Participant
0 Likes
808

Hi,

I handled this by creating text object -> read_text while clicking variant, save_text while saving variant. wrote code in at selection screen output. there is a system variable which will store variant name.

3 REPLIES 3
Read only

rajkumarnarasimman
Active Contributor
0 Likes
808

Hi Sriram,

For Custom T-code, enhancement/exit is not possible.

Variant will work only for the screen elements which is visible, it won't work like interactive events.

For button click process, usually we try BDC option. for this case to have BDC, we need to create one program for that, which is not recommendable for custom program .


Sriram Ramesh wrote:

If comment needs to be more than single line, then user clicks on pushbutton and another screen opens where we have textbox.

If multiple line is required for comment box, instead of using button clicking process, why don't you try multiple line text box using container option.

Regards

Rajkumar Narasimman

Read only

sriram_ramesh
Participant
0 Likes
809

Hi,

I handled this by creating text object -> read_text while clicking variant, save_text while saving variant. wrote code in at selection screen output. there is a system variable which will store variant name.

Read only

0 Likes
808

Good to know. Could you please close the thread?