‎2016 Apr 01 12:53 PM
Hi guys,
I need to add, display, change, delete and search variants in a PBO module. These are the variants of a subscreen. I have on the same screen a subscreen for the selection and a space for the result list. I have found following function modules: RS_VARIANT_ADD, RS_VARIANT_DISPLAY, RS_VARIANT_CHANGE, RS_VARIANT_DELETE. Are they suitable for this purpose? Can you provide some examples where this is implemented?
Implementation will be done in the PBO Module : Module User_Command_XXXXX Input.
Thanks
‎2016 Apr 01 1:01 PM
Hi Maria,
For what do you want variant for.? Like for notif, order, equipment.?
‎2016 Apr 01 1:17 PM
I wrote my own report and cannot use the generate sap variants implementation because I am selecting in a subscreen that I have created.
‎2016 Apr 01 1:10 PM
Yes you can manage in PBO and PAI some Fm as
Hint: As those FM should be executed in main dynpro, so not the selection-screen subscreen, you may (will) be required to set sy-dynnr, sy-slset before/after call of those.
Regards,
Raymond
‎2016 Apr 01 10:37 PM
I wouldn't recommend to use the standard function modules for handling program variants in normal dynpros, even if it contains a selection screen of type subscreen. I think you'll get many weird effects. Instead, I advise defining the screen as being a selection screen with a subscreen area containing your classic dynpro and let the standard handle the program variants. But I don't know what exactly is possible in your case, could you explain a little bit more what you're trying to achieve?