‎2016 May 27 7:03 AM
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.
‎2016 Jun 09 8:30 AM
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.
‎2016 May 27 8:07 AM
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
‎2016 Jun 09 8:30 AM
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.
‎2016 Jun 09 11:25 AM