Skip to Content
avatar image
Former Member

Variant contents of /SAPAPO/RTSCOPY for subscreens

Hello Users,

I am facing an issue with FM 'RS_CHANGE_CREATED_VARIANT'.

I am building a custom program to update variants for program /SAPAPO/RTSCOPY.

While doing so I am successfull in updating the required values, but this FM clears of the values from the Source and Target Key Figures in the Key Figure Assignment tab.

I believe this is because the Source and Target KF's are in a subscreen, hence the FM is unable to handle the records.

I used FM RS_VARIANT_CONTENTS to get the contents of the Variant but it doesnt show any fields or values from the subscreen for KFs.

Can anyone suggest ways of updating the source and Target KF's back into the variant or suggest an FM which willl not clear those values?

Thanks,

Shweta

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 16, 2013 at 12:49 PM

    Hi Shweta,

    In P_KFMAP parameter you will get the value of Keyfigure in internal format.please check and let me know if you find it or not..

    Regards,
    Saurabh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 19, 2013 at 04:15 AM

    Hi Saurabh,

    I get the values in format X098KF45667>KF123456 in P_KFMAP.

    But i wanted to update these values in the subscreen where the SOurce and Target KF are displayed.

    Now i am faving another issue with the FM 'RS_CHANGE_CREATED_VARIANT' , since the RSPARAMS restricts the low field to 45 chars, I m unable to get the complete value of Forcast Unit from the selection conditions.

    The last few characters get truncated.

    Does anyone have a solution for this?

    Add comment
    10|10000 characters needed characters exceeded