Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Change variant of /SAPAPO/RTSCOPY in a program

Hi!

I have to change one of the variant of program /SAPAPO/RTSCOPY in an ABAP program.

I know i should use FM RS_VARIANT_CONTENTS to get its content and then use the FM RS_CHANGE_CREATED_VARIANT to change the content.

But there is a problem for the fields "selection condition ".

If in my variant i have a selection in a characterictic (for example ZC_PRD = 100301 ), when i use the FM RS_VARIANT_CONTENTS i get in VALUETAB the line below:

SELNAME = P_SEL

KIND = S

SIGN = I

OPTION = EQ

LOW = ZC_PRD IEQ100301

In this case there isn't problem.

But, if in my variant i have a selection in a characterictic (for example *ZC_PRD from 100301 to 101101* ), when i use the FM RS_VARIANT_CONTENTS i get in VALUETAB the line below:

SELNAME = P_SEL

KIND = S

SIGN = I

OPTION = EQ

LOW = ZC_PRD IBT100301

In fact in this case i don't get the correct selection for ZC_PRD.

How can i get the correct value? Is there any other FM to change variants?

Thank you for help,

regards,

LB

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question