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

Is there any Function Module to Save a report variant ?

Former Member
0 Likes
2,249

Hi,

I want to save (overwrite) / create (incase it doesn't exists) a variant of a report program through a function module? Is there any SAP standard module (4.6C)? I have tried to use RS_CREATE_VARIANT to create variant but it's not working.

Regards,

Achirangshu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,103

try FM:

RS_CHANGE_CREATED_VARIANT .

RS_VARIANT_CHANGE

- Guru

Reward points for helpful answers

Hi,

I want to save (overwrite) / create (incase it doesn't exists) a variant of a report program through a function module? Is there any SAP standard module (4.6C)? I have tried to use RS_CREATE_VARIANT to create variant but it's not working.

Regards,

Achirangshu

3 REPLIES 3
Read only

Former Member
0 Likes
1,104

try FM:

RS_CHANGE_CREATED_VARIANT .

RS_VARIANT_CHANGE

- Guru

Reward points for helpful answers

Read only

Former Member
0 Likes
1,103

Hello Achirangshu,

I am not sure why you actually need to save the variant anyways, it could be done simply by clicking the Disk icon on the selection screen...and the user could change at any time they deem fit...

Regards,

Anyi

Read only

1,103

Function RS_VARIANT_SAVE_FROM_SELSCREEN

Call the function from AT-SELECTION-SCREEN / PAI event of SY-DYNNR you want to save variant.