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

Non PO Invoice post using BAPI PRELIMINARY_POSTING_FB01

0 Likes
1,347

Hi All,

Can we post NON PO Invoice using BAPI "PRELIMINARY_POSTING_FB01"?

No documentation is available for the BAPI.

I checked the BAPI "BAPI_ACC_DOCUMENT_POST" but it does not have all the required fields like posting key, Total document Amount (Vendor Line) & line item Amount (G/L line).

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,187

Look better for the BAPI, the amount fields are in CURRENCYAMOUNT, for the posting key, the system calculates it from type of line ACCOUNT[GL, RECEIVABLE, PAYABLE, TAX] which contains fields like DE_CRE_IND and SP_GL_IND.

Hint: read BAPI documentation, and use search tools there are already samples posted in scn.

Regards,

Raymond

Hi All,

Can we post NON PO Invoice using BAPI "PRELIMINARY_POSTING_FB01"?

No documentation is available for the BAPI.

I checked the BAPI "BAPI_ACC_DOCUMENT_POST" but it does not have all the required fields like posting key, Total document Amount (Vendor Line) & line item Amount (G/L line).

6 REPLIES 6
Read only

Former Member
0 Likes
1,187

Hi jaymin,

hope it helps to you Bapi to Park Invoice in FB60 transaction | SCN

Regards,

Venkatesh

Read only

0 Likes
1,187

My requirement is to post the Invoice not park.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,188

Look better for the BAPI, the amount fields are in CURRENCYAMOUNT, for the posting key, the system calculates it from type of line ACCOUNT[GL, RECEIVABLE, PAYABLE, TAX] which contains fields like DE_CRE_IND and SP_GL_IND.

Hint: read BAPI documentation, and use search tools there are already samples posted in scn.

Regards,

Raymond

Read only

0 Likes
1,187

Hi,

Where I can pass the indicator for Invoice and credit memo's. If system automatically calculates the posting key then I need to pass some indicator whether I am posting Vendor Invoice or Credit Memo's?

Appreciate your help here.

Read only

0 Likes
1,187

With the sign of the amount, like


* Account payable is line 1

  wa_accountpayable-itemno_acc = '0000000001'.

  wa_accountpayable-vendor_no = i_lifnr.

  " etc. other require fields

APPEND wa_accountpayable TO lt_accountpayable.

* Total amount balance - invoice, so Credit, so negative

  wa_currencyamount-itemno_acc = '0000000001'.

  wa_currencyamount-curr_type = '00'. " document currency code

  wa_currencyamount-currency = i_waers.

  wa_currencyamount-amt_doccur = i_amount." e.g.-1234.56

  " etc. other require fields

APPEND wa_currencyamount TO lt_currencyamount.

CLEAR wa_curramt.

Regards,

Raymond

Read only

0 Likes
1,187

Thank you.

I will check and let you know whether this is working or not.