on ‎2015 Jun 09 1:15 PM
Hi Experts,
I am new in scripting and i don't know how to transfer data from model to different model.
i have a different set of dimension to each model and i don't have a BADI person to configure my script.
i hope you can help me on this problem.
here are the set of dimensions to each model:
| Source Model | Destination Model |
| Model: EXPENSE | Model: FS |
| ACCOUNT | ACCOUNT |
| COSTCENTER | |
| CATEGORY | CATEGORY |
| TIME | TIME |
| AUDITTRAIL | AUDITTRAIL |
| CURRENCY | CURRENCY |
| CAPEXTYPE | |
| LOCATION | |
| STATIONTYPE | PROFITCENTER |
| ASSETCLASS | COMPANY |
Thank you very much in advance, experts.
Regards,
Marlon
Request clarification before answering.
Hi Experts.
For Cost Center Dimension to Profit Center Dimension I have a mapping in Cost Center Dimension, same in Company Dimension, i only have 2 Company in this dimension which also have a mapping inside CostCenter Dimension.
Thanks and Best Regards,
Marlon Manalo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then, what's the issue?
Simply:
*XDIM_MEMBERSET ... //Scope the dimensions as required
...
*DESTINATION_APP=FS
*SKIP_DIM = CAPEXTYPE,LOCATION,STATIONTYPE,ASSETCLASS,COSTCENTER
*ADD_DIM COMPANY = COSTCENTER:COMPANYCODE,PROFITCENTER = COSTCENTER:PROFIT_CTR
*WHEN ACCOUNT
*IS * //have to be scoped before
*REC(EXPRESSION=%VALUE%)
*ENDWHEN
Vadim
P.S. The same can be also written using RENAME_DIM..
Hi Vadim,
i plot my script like this.
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_FILTER ACCOUNT = [ACCOUNT].DTRANS = Y
*XDIM_MEMBERSET AUDITTRAIL = INPUT, ADJUST
*XDIM_MEMBERSET CURRENCY = LC, NC
*DESTINATION_APP=FS
*SKIP_DIM = CAPEXTYPE,LOCATION,STATIONTYPE,ASSETCLASS,COSTCENTER
*ADD_DIM COMPANY = COSTCENTER:COMPANYCODE,PROFITCENTER = COSTCENTER:PROFIT_CTR
*WHEN ACCOUNT.DTRANS
*IS "Y"
*REC(EXPRESSION=%VALUE%)
*ENDWHEN
*WHEN AUDITTRAIL.ID
*IS "INPUT", "ADJUST"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL.ID=INPUT_TRNS,ADJUST_TRNS)
*ENDWHEN
*WHEN CURRENCY.ID
*IS LC,NC
*REC(EXPRESSION=%VALUE%, CURRENCY.ID=LC,NC)
*ENDWHEN
*WHEN COSTCENTER //DO I ALSO NEED TO CREATE THIS ONE? IF YES, HOW?
Again Thanks you very much for the support
Marlon
Ups, why do you need multiple WHEN/ENDWHEN loops? Please read at list help about script logic.
Only:
*WHEN AUDITTRAIL
*IS INPUT
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=INPUT_TRNS)
*IS ADJUST
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=ADJUST_TRNS)
*ENDWHEN
to properly match AUDITTRAIL.
And start testing in UJKT!
Vadim
Hi Vadim,
here is my new script:
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_FILTER ACCOUNT = [ACCOUNT].Properties("DTRANS") = Y
*XDIM_MEMBERSET AUDITTRAIL = INPUT, ADJUST
*XDIM_MEMBERSET CURRENCY = LC, NO_CURR
*DESTINATION_APP = FS
*SKIP_DIM = CAPEXTYPE,LOCATION,STATIONTYPE,ASSETCLASS,COSTCENTER
*ADD_DIM COMPANY = COSTCENTER:COMPANYCODE,PROFITCENTER = COSTCENTER:PROFIT_CTR
*WHEN ACCOUNT.DTRANS
*IS "Y"
*REC(EXPRESSION=%VALUE%)
*WHEN AUDITTRAIL.ID
*IS "INPUT"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=INPUT_TRNS)
*IS "ADJUST"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=ADJUST_TRNS)
*WHEN CURRENCY.ID
*IS LC
*REC(EXPRESSION=%VALUE%, CURRENCY=LC,CURRENCY=NO_CURR)
*IS NO_CURR
*REC(EXPRESSION=%VALUE%, CURRENCY=NO_CURR)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
// i still don't have a code for COSTCENTER is that necessary?
Again, you don't understand me! The final script have to be:
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_FILTER ACCOUNT = [ACCOUNT].Properties("DTRANS") = Y
*XDIM_MEMBERSET AUDITTRAIL = INPUT, ADJUST
*XDIM_MEMBERSET CURRENCY = LC, NO_CURR
*DESTINATION_APP = FS
*SKIP_DIM = CAPEXTYPE,LOCATION,STATIONTYPE,ASSETCLASS,COSTCENTER
*ADD_DIM COMPANY = COSTCENTER:COMPANYCODE,PROFITCENTER = COSTCENTER:PROFIT_CTR
*WHEN AUDITTRAIL.ID
*IS "INPUT"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=INPUT_TRNS)
*IS "ADJUST"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=ADJUST_TRNS)
*ENDWHEN
Only SINGLE WHEN/ENDWHEN!!!
And no useless *COMMIT!
Vadim
Hi Vadim,
there are some changes in my scope of audittrail from 2 member into 9. i divide the ADJUST into 8 and retain the INPUT.
I created a property from aduittrail dimension named "DATAFS" and tagged the INPUT as "I" and the 8 adjustment with "A". is my scripts still works likes this?
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_FILTER ACCOUNT = [ACCOUNT].Properties("DTRANS") = Y
*XDIM_MEMBERSET AUDITTRAIL = INPUT,ADJ_E,ADJ_F,ADJ_I,ADJ_L,ADJ_O,ADJ_S,ADJ_V,ADJ_B
*XDIM_MEMBERSET CURRENCY = LC, NO_CURR
*DESTINATION_APP = FS
*SKIP_DIM = CAPEXTYPE,LOCATION,STATIONTYPE,ASSETCLASS,COSTCENTER
*ADD_DIM COMPANY = COSTCENTER:COMPANYCODE,PROFITCENTER = COSTCENTER:PROFIT_CTR
*WHEN AUDITTRAIL.DATAFS
*IS "I"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=INPUT_TRNS)
*IS "A"
*REC(EXPRESSION=%VALUE%, AUDITTRAIL=ADJUST_TRNS)
*ENDWHEN
Something like:
PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%")
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,EXPFS.LGF)
Hi,
As Vadim suggested, you need to come up with a logic to define "how you can derive the missing dimension values".
I think, you can define profit center from costcenter. Generally there exists a relation between the two.( i may be wrong here).
I don't know about company. If its single company then you can fix it to a single value.
Prat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marlon,
First of all "i don't have a BADI person to configure my script" - incorrect, script and BADI are not related in general
Second - for sure help about DESTINATION_APP will be helpful
And at the end:
STATIONTYPE PROFITCENTER
ASSETCLASS COMPANY
what is the relation?
What is the storage type of FS cube - PERIODIC or YTD?
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Hi Marlon,
First of all "i don't have a BADI person to configure my script" - incorrect, script and BADI are not related in general - thanks for the info, i just read some materials for scripting the calling the BADI to do the scripts in pushing data to another model
Second - for sure help about DESTINATION_APP will be helpful - i read some, but i don't know how to define the missing dimension from destination model.
And at the end:
STATIONTYPE PROFITCENTER
ASSETCLASS COMPANY - None PROFITCENTER AND COMPANY dimension are the missing dimension from source model
what is the relation?
What is the storage type of FS cube - PERIODIC or YTD? - source and destination model are both periodic.
Vadim
- Thanks very much Vadim for replying and guiding me here.
Regards,
Marlon
HI,
You can use *destination_APP. There are lots of threads on SCN please read about it.
Kindly go through below links.
*DESTINATION_APP - SAP BusinessObjects Planning and Consolidation - SAP Library
Hope this will help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.