‎2008 Jan 18 9:23 AM
Hi BADI experts,
I have a requirement where I have to debug the code in the change method of BADI - ACC_DOCUMENT.....
I have a Implementation for the same as Z_ACC_DOCUMENT_IDOC and I have the code in the change method..
This BADI is triggered before an Inbound Idoc gets posted in SAP. Thing is that when I want to debug an error Idoc using WE19 and specifying the FM so as to get to this BADI code I am facing problems.......
There is one thing here the BADI is Filter dependent and the Filter type is AWTYP. What does this signify?????
One more thing is the call to the BADI is in FM - BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST ...This I got to knwo through BAPI documentation...
Problem is like when I check for Function module for that particular Idoc's by pressing F4 I am getting a choice of different FM as 1) BAPI_IDOC_INPUT1 and 2)BAPI_IDOC_INPUTP......This is urgent give your suggestions and points will be rewarded accordingly...
Regards,
Raghav
‎2008 Jan 18 12:05 PM
Hello Raghav
Ans 1. BADI ACC_DOCUMENT is filter dependent that means you can activate your BADI Implementation for specific Application Area in this case. (For Example: I have used this BADI for WTY Module Claims Posting, so I used AWTYP = "WTYD" as a filtered application area for BADI Implementation)
Ans 2. BAPIs BAPI_IDOC_INPUTP or BAPI_IDOC_INPUT1 are generic function modules used against the Process Codes for Inbound IDOC Processing, If you see code inside these two BAPIs, you will find a Query to tables like TBDBE or TBDBA, where actual Processing BAPI names are maintained against the respective Message Types. So, technically, you can use any one of these BAPIs to process your IDOC.
Please suggest if you still have any issues.
Thanks & regards,
Amol G. Lohade
‎2008 Jan 22 8:07 AM
Hi Amol,
Where exactly can you see what is the value for the AWTYP assigned in the BADI??
Regards,
RAGHAV