2016 Aug 31 9:50 AM
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).
2016 Aug 31 2:46 PM
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
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
2016 Aug 31 12:15 PM
2016 Aug 31 12:19 PM
2016 Aug 31 2:46 PM
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
2016 Sep 01 9:56 AM
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.
2016 Sep 01 10:51 AM
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
2016 Sep 01 2:14 PM
Thank you.
I will check and let you know whether this is working or not.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |