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

BAPI_ACC_INVOICE_RECEIPT_POST

Former Member
0 Likes
1,604

I am trying to post outgoing payments (F-53) for a FI document created through MIRO. I am planning to use this BAPI, but I am not able to figure out how I should pass the FI doc (created through MIRO) as input to this BAPI, so that I can post the clearing document.

At present, I am able to post an accounting document with posting key '21'(Credit memo) while I need to post a document with posting key '25' (Outgoing payment). Further the document I posted is not a clearing document.

If anybody can help me out, that would be great.

I am trying to post outgoing payments (F-53) for a FI document created through MIRO. I am planning to use this BAPI, but I am not able to figure out how I should pass the FI doc (created through MIRO) as input to this BAPI, so that I can post the clearing document.

At present, I am able to post an accounting document with posting key '21'(Credit memo) while I need to post a document with posting key '25' (Outgoing payment). Further the document I posted is not a clearing document.

If anybody can help me out, that would be great.

9 REPLIES 9
Read only

Former Member
0 Likes
1,441

Hi,

If you see the doumention for the BAPI , its very clear and will solve your problem.

Read only

0 Likes
1,441

Hi Venkata,

I am sure that i am missing something.. but I do not know what...

Documentheader-obj_type = 'BKPFF'.

documentheader-ref_key = some unique number

DOCUMENTHEADER-COMPCODE = 1003

documentheader-pstng_date = today

documentheader-doc_date = today.

documentheader-ref_doc_no = 'TEST'.

documentheader-doc_type = 'KZ'.

Acctpayable-itemno_acc = '1'.

acctpayable-vendor = 'my vendor'.

acctpayable-itemtext = 'text'.

acctgl-itemno_acc = '2'.

acctgl-gl_account = gl_account

acctgl-doc_type = 'KZ'.

currencyamount-itemno_acc = '1'.

currencyamount-curr_type = '00'.

currencyamount-currency = 'USD'.

currencyamount-AMT_DOCCURR = '10.00'.

currencyamount-itemno_acc = '2'.

currencyamount-curr_type = '00'.

currencyamount-currency = 'USD'.

currencyamount-AMT_DOCCURR = '-10.00'.

This is my input..

I have tried giving the MIRO fi DOCUMENT in objkey, in AC_DOC_NO, but nothing works.. It creates a FI document, but the posting key for the doc created is '21' (credit notes) and not '25'. I want to create a clearing document which will clear my original FI document. So where do I give my original FI document as input in BAPI?

Read only

0 Likes
1,441

Hi SSG,

Please check SAP Test program "ACC_BAPI_TEST_INVOICE_RECEIPT" you can see how the function "BAPI_ACC_INVOICE_RECEIPT_POST" is called.

Hope this may help you.

Lanka

Read only

0 Likes
1,441

Lanka, that was the program I used as basis.. But I am unable to figure out where my reference accounting document needs to go?

At present , being unable to provide the reference accounting document , BAPI results in a document with posting key '21' (credit memo) and not '25' (payments)

Has anybody else used this BAPI to do F-53 payments?

Read only

0 Likes
1,441

Lanka, have you used this BAPI before to do F-53 payments?

In F-53, you have an ability to list 'Open items' for vendor and then choose the item (document) that you want to clear.

I want to duplicate that functionality in BAPI by giving the open document as Input. I am at end of my road, any help would be greatly appreciated.

Read only

0 Likes
1,441

Guys anybody used this BAPI to simulate F-53?

Read only

0 Likes
1,441

Hi Guys, Can this be used for F-43 document posting.

Read only

Former Member
0 Likes
1,441

I doubt if this is what you want, but RFBIBL00 will post with clearing.

Rob

Read only

Former Member
0 Likes
1,441

for MIRO you can try with BAPI_INCOMINGINVOICE_CREATE