‎2007 May 04 11:47 AM
Hi all,
I am making a custom program by copying the standard program of Tcode CO99. But this std. program does not have the variant creation functionality as the SAVE button is disabled and do not have the variant button as well.
This is a module-pool program, so can we create a variant functionality for such programs ?
Pls. help with your ideas.
Thanks,
Stock
‎2007 May 04 11:50 AM
>>This is a module-pool program, so can we create a variant functionality for such programs ?
NO.. you cannot maintain variants.. but you cna possibly use parameter ids to default values to the screen..
~Suresh
‎2007 May 04 12:29 PM
Hi all,
I could manage to activate the SAVE button for the custom program. Was just thinking of adding the functionality when the OK_CODE hits the SAVE button to create the variant and also adding up the variant button on the screen to retrieve the existing variants.
Are there any FM that can be used ?
Pls. help with youre ideas.
Thanks,
stock
‎2007 May 04 2:50 PM
‎2007 May 04 3:52 PM
‎2007 May 04 4:07 PM
Hi,
No need to copy standard program of tcode CO99.
You can create a custom report with selection screen parameters same as tcode CO99. Then you need to populate the BDC session data based on the above selection screen input to call transaction C099.
If you do not want to build BDC session, you can use this FM ABAP4_CALL_TRANSACTION to call transaction CO99.
In this case, your custom report can have mutiple variants to use to call CO99.
Hope this will give you an idea.
Regards,
Ferry Lianto
Please reward points if helpful.