cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

COPY Standard Package - Customize to not clear data

Former Member
0 Likes
895

I'm using the Copy standard Package - but I need to change the "Target Mode" to "Clear Data", because I need the option to "Merge data values (Imports all records, leaving all remaining records in the destination intact)".

What I need to change?

PROMPT(RADIOBUTTON,%TARGETMODE%,"Handling of records",0,{"Copy records with match key","Copy by replacing data in same data region of Entity, Category, Time and Audit ID"},{"0","2"}) 'PROMPT(RADIOBUTTON,%RUNLOGIC%,"Select whether to run default logic for stored values after copying",0,{"Yes","No"},{"1","0"}) 'PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when importing data.",1,{"Yes, check for work status settings before importing","No, do not check work status settings"},{"1","0"}) PROMPT(COPYMOVE,%SELECTION%,%TOSELECTION%,"Select the members to COPY and where to",%DIMS%,0) INFO(%TEMPNO1%,%INCREASENO%) INFO(%ACTNO%,%INCREASENO%) INFO(%SELECTION_KEYDATE%,) TASK(/CPMB/CM_CONVERT,OUTPUTNO,%TEMPNO1%) TASK(/CPMB/CM_CONVERT,ACT_FILE_NO,%ACTNO%) TASK(/CPMB/CM_CONVERT,SAPPSET,%APPSET%) TASK(/CPMB/CM_CONVERT,SAPP,%APP%) TASK(/CPMB/CM_CONVERT,SELECTION,%SELECTION%) TASK(/CPMB/CM_CONVERT,TOSELECTION,%TOSELECTION%) TASK(/CPMB/CM_CONVERT,KEYDATE,%SELECTION_KEYDATE%) TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,%CHECKLCK%) TASK(/CPMB/CLEAR_SOURCE_CUBE,SELECTION,%TOSELECTION%) TASK(/CPMB/CLEAR_SOURCE_CUBE,KEYDATE,%SELECTION_KEYDATE%) TASK(/CPMB/CLEAR_SOURCE_CUBE,DUMPLOADMODE,3) TASK(/CPMB/APPEND_LOAD,PREPROCESSMODE,0) TASK(/CPMB/APPEND_LOAD,TARGETMODE,%TARGETMODE%) TASK(/CPMB/APPEND_LOAD,INPUTNO,%TEMPNO1%) TASK(/CPMB/APPEND_LOAD,ACT_FILE_NO,%ACTNO%) 'TASK(/CPMB/APPEND_LOAD,RUNLOGIC,%RUNLOGIC%) 'TASK(/CPMB/APPEND_LOAD,CHECKLCK,%CHECKLCK%) TASK(/CPMB/APPEND_LOAD,RUNLOGIC,0) TASK(/CPMB/APPEND_LOAD,CHECKLCK,1) TASK(/CPMB/APPEND_LOAD,KEYDATE,%SELECTION_KEYDATE%)

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

Another option that will definitely work is to use script ogic to copy data. The only disadvantage that you will not be able to use copymoveinput for multiple dimensions in one screen.

Answers (6)

Answers (6)

Former Member
0 Likes

Vadim, thank you so much! I will work on that options.

former_member186338
Active Contributor
0 Likes

To create a required chain you need to play with APPEND_LOAD parameters and remove CLEAR_SOURCE_CUBE step from the chain.

You will have to debug in abap class execution for APPEND_LOAD.

P.S. May be lucas.costa3 can help.

lucas_costa3
Active Contributor

Not much help here.. loosing my juggling with BPC Standard.

Former Member
0 Likes

Vadim,

I have differents products:

In LE00

KSD90 LE00 02502001CE 350.0000000-

In ZRU

KSD90 ZRU 02502001CE 500.0000000-

KSD90 ZRU 02401002CE 1,000.0000000-

The 500 will be overwritten by 350, that's fine. But I need to keep the other line (other product) with 1,000.

According the case, you sent, I need to custom the process chain, but I dont know how.

lucas_costa3
Active Contributor
0 Likes

The Copy records with match key theoretically would leave the 1000 (product 02401002CE) intact, replacing just the records with complete match key (all dimension members from source).

Unless your process chain is not reading the parameters from the DM package.

If you want to create a custom process, it's not a simple task, take a look at class CL_UJD_BPC_DUMP_LOAD

former_member186338
Active Contributor
0 Likes

You have:

In LE00:

KSD90 LE00 CU_010141000010008476 02401002CE 2018.10 350.0000000-

in the target ZRU you have:

KSD90 ZRU  CU_010141000010008476 02401002CE 2018.10 1,000.0000000-

For sure 1,000.0000000- will be overwritten by 350.0000000-

What do you want? To append??? Not clear from your post!

Or may be you are talking about the case: https://archive.sap.com/discussions/thread/3724906

Former Member
0 Likes

I'm so sorry if I wasn't clear.

The data that I have are:

Account Version Customer Material Time Value

KSD90 ZRU CU_010141000010008476 02401002CE 2018.10 1,000.0000000-

KSD90 LE00 CU_010141000010008476 02401002CE 2018.10 350.0000000-

KSD90 ZRU CU_010141000010008476 02502001CE 2018.10 500.0000000-

I need to copy version LE00 for ZRU - but I have a data in ZRU version that I don't have in LE00, and I need to keep this data.

I ran the Copy standard package with the option: "Copy records with match key"

And it was clear the 1,000,00:

KSD90 LE00 02502001CE 350.0000000-

KSD90 ZRU 02502001CE 500.0000000-

KSD90 ZRU 02502001CE 150.0000000

KSD90 ZRU 02401002CE 1,000.0000000-

KSD90 ZRU 02401002CE 1,000.0000000

former_member186338
Active Contributor
0 Likes

The week of strange questions 🙂

"I'm using the Copy standard Package - but I need to change the "Target Mode" to "Clear Data", because I need the option to "Merge data values (Imports all records, leaving all remaining records in the destination intact)"."

What do you want? Please explain in words!

P.S. "Copy records with match key" will copy records without clearing destination!

P.P.S. Read note: https://launchpad.support.sap.com/#/notes/2241115