Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Badi ACC_DOCUMENT

former_member182354
Contributor
0 Likes
3,447

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,768

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

Read only

0 Likes
1,768

Hi Amol,

Where exactly can you see what is the value for the AWTYP assigned in the BADI??

Regards,

RAGHAV