on 10-20-2008 5:25 PM
Hi Experts,
Currently we are using ECC6.0 and CRM 2007.
When CRM billing document is released for accounting,
We are required to Substitute profit center in accounting document/PCA document.
Presently we tryed user exit PCACRM01 ,
function module EXIT_RKECRM_PCA_40_001 using a break point but was not reached at tht point.
Kindly suggest something on this matter.
Thanks,
SA
Thanks RR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create z-implementation of Badi BILL_ACC_IF and pass the profit center in the changing parameter ct_acc_acgl09. This will fill the profit center in the billing document before posting to accounting. Let me know if u want to know the debugging steps of this Badi..
Regards
RR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh,
For debugging CRM put a break point by ur user name . Before saving the billing document unregister queue CSA_BILL* in txn SMQR and then save the document and release for posting. Now the billing document bdoc will be yellow (txn smw01).Reprocess the bdoc and the break-point will reach in the Badi..Here u can check the values.
For debugging R/3 part put a break-point on FM CRM_UPLOAD_AFTER_MAP_HANDLER on billing doc save . Set the variable LV_SYNCHRON to X and Press F5 twice . Debugger will reach R/3 put a break point at fuction module BAPI_BILL_DOC_PROXY_CREATE and check the line-item entries.
Thanks
RR
Hi RR,
If i am right in ur first reply u told tht i just have to do the things in CRM right..??
Do i need to so something in R/3 side too? i mean something Z*.
Also,There are 4-5 active implementation,how do i make sure tht my BADI is called.
Regards,
SA
Edited by: Saurabh Agrawal on Oct 21, 2008 9:18 AM
Hi RR,
Thanks a lot for the perfect reply for dubugging. But I have a doubt.When i am blocking the queue CSA* in SMQR it means tht it has already come from R/3, and i am looking something where i can change the value of Profit Center when it is going to R/3.
Also I changed the value of Profit Center but it did not change..so i felt tht..
Wht u say..?
Thanks,
SA
Saurabh,
This Badi is called before the billing document is posted to R/3.. So you can change the values of profit center, tax code etc. before sending to r/3. Do one thing change the value of profit center in debugging mode and then continue with the r/3 debugging part.You will see that whatever values you have passed, are carried in the r/3 structure.
Thanks
RR
HI RR,
As per your guidance i have changed the value during debug but was not visible the required output.I would like to tell u tht,I changed the value in this BADI also i changed the value inside the EXIT which i meantioned in previous post. Previously it was not reaching to this point(i.e. EXIT) but now it reached and i even tryed changing the value here too.
Is tht i am missing something..??Anything which i need to take care while doing this some value or something...
Thanks,
SA
Edited by: Saurabh Agrawal on Oct 22, 2008 10:16 AM
Saurabh,
I believe you are changing the value in method ENRICH_ACC_DOCUMENT of the Badi. You have to change the value of field PROFIT_CTR for the line items in structure associated with parameter CT_ACC_ACGL09. The new value of which u r giving in PROFIT_CTR should be available in R/3. This is how it works fine in my case.
Thanks
RR
Hi RR,
Yes i am changinf the value inside CT_ACC_ACGL09 on the method ENRICH_ACC_DOCUMENT.
Is tht i am into wrong method..??
I check tht it is comming in the method ENRICH_ACC_DOCUMENT
but is not comming inside the method DETERMINE_GLACCOUNT.
Also, I have check tht the same profit center is available in R/3.
I wish if you could let me wht else should i try.
Thanks,
SA
Debbugging billing doc:
1) Before saving the document enter /h and save.
2) Now try to place the break point in the function module /1BEA/CRMB_BD_MWC_O_FLOW(CRM)
3) This function module calls the method of the PROCESS_OUTBOUND of class CL_SMW_MFLOW. In the method make the variable ls_header-dbgmode
To X.
4) By doing this the BDOC stops in the debug stage.
5) Now go to SMW01 . Select the BDOC and reprocess it. Before reprocessing it enter /h.
6) Place the break point at the function modules BEM_UPLOAD_FI_SRV(CRM).
7) Once this function module is executed it calls CRM_UPLOAD_TO_OLTP.
In this function module make the variable i_nosend to 'S'.This
Function module also calls the function module CRM_UPLOAD_TRIGGER
To debug the code in R/3 make the variable lv_synchron to u2018Xu2019 and
Make sure that RFC user is Dialog user
8) Now the control is in R/3. In the flow it call
BAPI_BILL_DOC_PROXY_CREATE and BAPI_ACC_DOCUMENT_POST.
Now you canplace the breakpoint in the ur userexit.
Note: Pls do not try this Production.
Hi,
Thanks a lot MCG, but this steps I have already done as told by RR.
RR, I am able to get into another exit where I just changed the value and was successful in debug mode,I need to check further more things and would let u knw the output of this.
I am very thankful for ur support,once i solve this issue,you will be rewared for ur great support.
Thanks,
SA
User | Count |
---|---|
8 | |
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.