Application Development 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: 

user exit in IDOC_INBOUND_SINGLE

Former Member
0 Kudos
118

Hi All,

I am posting an IDOC using Function Module IDOC_INBOUND_SINGLE which in turn is calling an FM BAPI_ACC_INVOICE_RECEIPT_POST to post the IDOC.

Iam taking the data from the flat file. The data is updated in BSEG, BKPF and BSET tables.

The problem I am facing is that, the same details are appearing in the tables for different Document number, company code and Fiscal year combination.

If you try to create the document with same details in FB60, it gives error as duplicate document. But when I am uploading same details from Flat file it is getting uploaded.

I want to introduce a check to prevent the updation, which need to be put in a user exit.

Please tell me the name of user exit. The details which I need to check are invoice reference number, company code, invoice date, amount and vendor. If these details are repeated, then do not post the IDOC.

regards,

Gaurav

1 REPLY 1

Former Member
0 Kudos
27

Hello,

Try using the Customer Exit: EXIT_SAPLACC4_001(Enhancement: ACBAPI01 ). Looks like it has a return table to populate errors. it should work.

Hope this helps.

Rajeev