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

Variant creation functionality for Custom program

Former Member
0 Likes
1,154

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

5 REPLIES 5
Read only

suresh_datti
Active Contributor
0 Likes
734

>>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

Read only

Former Member
0 Likes
734

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

Read only

Former Member
0 Likes
734

Hi all,

Any ideas on this. Need very urgently.

Thanks,

stock

Read only

Former Member
0 Likes
734

Hi,

Pls help

Read only

ferry_lianto
Active Contributor
0 Likes
734

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.