Skip to Content
avatar image
Former Member

How to change the sign of data while copying data using Copy data manager package?

Hi all,

I have a strange requirement to flip the sign of the data while copying using COPY DM package.

An example is as follows: (pic attached)

We need a Copy reverse append functionality to be implemented :(

We thought about copying first and then use script logic to change the sign but that option takes away the append functionality required.

Tried to implement a custom logic but not able to successfully pass "Selection" and "ToSelection" advanced script parameters to Custom BAdI script logic.

Please help.

Regards,

Surya Tamada

capture.jpg (27.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 20, 2017 at 02:48 PM

    You can't change sign using copy package. Use script logic instead:

    *XDIM_MEMBERSET ACCOUNT=SOURCE

    *WHEN ACCOUNT

    *IS *

    *REC (EXPRESSION =-%VALUE%+[ACCOUNT].[DESTINATION], ACCOUNT = DESTINATION)

    *ENDWHEN

    "Tried to implement a custom logic but not able to successfully pass "Selection" and "ToSelection" advanced script parameters to Custom BAdI script logic." - strange statement! What do you mean by badi in this case? No badi required!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2017 at 12:37 PM

    Hi Vadim,

    May be I did not articualte it good enough.

    Client wants to select values from Source and copy it to destination but the sign to be flipped.

    If I use your logic script code, how do I get the scoping for the destination or differentiate if from that of the source?

    Now coming to my "Strange Statement" :)

    I tried to achieve this by implementing Custom logic BAdI and struggling to pass "SELECTION" (source), "TOSELECTION" (destination) from advanced script to the BAdI using script logic.

    Regards,

    ST

    Add comment
    10|10000 characters needed characters exceeded