on 01-05-2012 1:02 PM
Hello Experts,
I'm facing some issue, and I've tried a lot of approachs and still without a answer.
There is two application, one of Sales and another of Production.
After planned the Sales, based in the volume of sales, we project the production applying another measures.
So, what I need is after planned Sales, copy the informations of volume, from Sales to Prodution, changing just one member, that is a master data.
I've tried to use script logic, LOOKUP (script below), and use BADI with this [document|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0480970-894f-2d10-f9a5-d4b1160be203?QuickLink=index&overridelayout=true]. But the point is, that with this document, we start from the app source to the app destination, and what I'm looking for is the opposite.
Well, if somebody could help me. Thank you a lot.
Guys, anybody had this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thanks for your reply.
Ok, let me explain better. What I need is this, in the source application we have this data.
APP:SALES
CATEGORY=PLAN1
ENTITY=1000
INPUTCURRENCY=NONE
MATERIAL=E00000778
TIME=2012.JAN
UNIT=KG
P_ACCT=0002
SIGNNEDDATA=1050,000
And I need to copy this values to another app, but, changing the P_ACCT and adding the CostCenter, like this:
APP:PROD
CATEGORY=PLAN1
ENTITY=1000
COSTCENTER=NONE ***
INPUTCURRENCY=NONE
MATERIAL=E00000778
TIME=2012.JAN
UNIT=KG
P_ACCT=0012 ***
SIGNNEDDATA=1050,000
The script is the folowing. I'd done this based in some threads that I saw.
//-----------------------------------------------------------------------------------------------------------
//Production APP
//-----------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------
//Take informations from SALES
//-----------------------------------------------------------------------------------------------------------
*LOOKUP SALES
*DIM SALES1:CATEGORY="PLAN1"
*DIM SALES1:ENTITY = "1000"
*DIM SALES1:INPUTCURRENCY = "NONE"
*DIM SALES1:P_ACCT = "0002"
*DIM SALES1:UNIT = "KG"
*DIM SALES1:MATERIAL = "E00000778"
*ENDLOOKUP
*WHEN LOOKUP(SALES1)
*IS > 0
*BEGIN
*REC(P_ACCT="0012",EXPRESSION=%VALUE%)
*END
*NEXT
*NEXT
Thanks!
Edited by: Lucas Gabriel Corrêa da Costa on Jan 6, 2012 12:45 PM
Hello Lucas,
I`m afraid you could only use "DESTINATION_APP" syntax. It means you must execute the package from the application of source data, and not from the application of destination data (as you are trying to do).
Maybe you must reconsider your script attending to this limitation.
I hope this info help you.
Regards,
Gabriel Garcí
Lucas,
You may test this.
*LOOKUP SALES
*DIM SALES1:CATEGORY="PLAN1"
*DIM ENTITY = "1000"
*DIM INPUTCURRENCY = "NONE"
*DIM UNIT = "KG"
*DIM MATERIAL = "E00000778"
*ENDLOOKUP
*WHEN P_ACCT
*IS 0002
*REC(FACTOR=LOOKUP(SALES1),P_ACCT="0012",COSTCENTER="NONE" )
*ENDWHEN
*COMMIT
Please check whether all dimensions are listed in the look up...
Hope this helps.
Hi Lucas,
First of all, you can try using RUNLOGIC. You can find a How To guide [here|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0ad38cf-9e0e-2e10-9d9a-fbf57e69cd40].
Second, you can try changing SAPP in your data DM Package. I heard that this should work starting from SP08 of v.7.5.
Regards,
Gersh
Thanks a lot everyone.
I got to solve the issue.
With the script logic on source app, using *DESTINATION APP
// Send data to Production app
*XDIM_MEMBERSET P_ACCT = 0002
*XDIM_MEMBERSET CATEGORY = PLAN1
*XDIM_MEMBERSET SCENARIO = NONE
*XDIM_MEMBERSET MATERIAL = BAS(HMAT)
*DESTINATION_APP = PRODUCTION
*ADD_DIM COSTCENTER=NONE
*WHEN P_ACCT
*IS 0002
*BEGIN
*REC(P_ACCT="0012",ENTITY="1000",EXPRESSION=(%VALUE%) )
*END
*ENDWHEN
*COMMIT
But the point is that I called this script from the target app.
In data manager I created a data package using the process chain /CPMB/ALLOCATION, but with the advaced parameters below.
TASK(/CPMB/ALLOCATION_LOGIC,SUSER,%USER%)
TASK(/CPMB/ALLOCATION_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/ALLOCATION_LOGIC,SAPP,SALES)
TASK(/CPMB/ALLOCATION_LOGIC,LOGICFILENAME,SEND_DATA_PROD.LGF)
Thanks everyone by the help.
Lucas
Hello Lucas,
Only one last question. Do you execute this package from app SALES or app PRODUCTION?
Thank you,
Regards,
Gabriel Garcia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lucas,
Please refer to the below link from help.sap:
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/f4/33f0bbc46c4a53860f1410f20ffb8b/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
try like this once
First u Copy from sales to Production
then take changes in Copied application
SRM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
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.