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: 

unable to PARK the credit note with Purchase Order using BAPI_INCOMINGINVOICE_CREATE1

kirankumark2
Participant
0 Kudos
364

Hi,

As per our Business process we have 2 step process for Vendor invoice posting.

step 1: create Vendor invoice using BAPI_INCOMINGINVOICE_SAVE OR BAPI_INCOMINGINVOICE_CREATE1.

Step 2 : Executing standard invoice process program(RMBABG00) to POST the parked invoice.

I have a requirement to create a Credit note for "without purchase Order " and "with Purchase order" cases.

For " without Purchase order case " i am able to park the invoice with some error message(provided some dummy delivery note) without posting using BAPI_INCOMINGINVOCE_SAVE---it is OK for the Business.

whereas for "With Purchase order case" i am calling BAPI_INCOMINGINVOICE_CREATE1 with INVOICE_IND = SPACE and status = 'A' (Park) but credit memo is not created. it throwing an error message "EDI: Error in customizing for differential invoicing".

my requirement is to create a CREDIT MEMO for "with purcahse order" using BAPI and it should always be in PARK status and it should not post even after program RMBABG00(Invoice Posting) executes. Business person verifies it and they post manually once it is OK.

Someone please provide me the solution. Thanks

1 ACCEPTED SOLUTION

kirankumark2
Participant
0 Kudos
322

Hi,

I cleared it myself. In HEADER structure i am passing INV_TRAN = '2'. hence it is not creating any document for credit note. i cleared this and working fine.

1 REPLY 1

kirankumark2
Participant
0 Kudos
323

Hi,

I cleared it myself. In HEADER structure i am passing INV_TRAN = '2'. hence it is not creating any document for credit note. i cleared this and working fine.