on 07-07-2006 1:25 PM
Hello all: in contract distribution we need to determine Company code from plant in R/3 (is not automatically determined).
In order to get this, BAdI BBP_CTR is available. We need to know which data is available and where it is. Does anybody know how to debug BAdI BBP_CTR methods?
Thanks in advance.
Best regards
Valentí
Hi Valentín,
To debug this process in R/3, you need IDOC expertise.
SRM is calling an RFC function in R/3 that will create the 2 IDOCs for the contract (one for the data, one for the conditions).
You can try to pass the comapny code in SRM, but it won't be passed to R/3. So the only way is to use R/3 BADI BBP_CTR to complete the IDOC.
In this BADI, you will have to read the incoming header or item segment data to determine the company code (ex: take the inbound Purch Org to see if it is responsible for a unique CoCode, or take the firt item plant to determine the linked CoCode).
At the end, you add a new segment in BLAORD with the CoCode.
Rgds
Christophe
PS: please reward points for helpful answers
Message was edited by: Christophe Denysiak
PS: to know which data is available, simply look at incoming IDOC BLAORD in WE05 or BD84.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Firstly in SRM , based on the User ,you can determin the Plant to whcih he belongs using FM "BBP_READ_ATTRIBUTES".
Then you can write a REMOTE enabled FM in R/3 (wherein u can query the tables T001w and T001k based on the retrievd plant value).You can refer the FM RM_COMPANYCODE_FIND in R/3.
HTH,
BR,
Disha.
Pls reward points for helpful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.