‎2011 Jun 12 1:18 PM
Hi All,
I am posting a FI inovice using bapi BAPI_ACC_DOCUMENT_POST.
The document is getting posted successsfully and gets updated in the data base.
bu twhen I check the same document in fb03 or in fbl1n for the vendor the amount for the document is zero , and the amount in LC has the value that I have entered.
I tried creating a FI invoice manually using tcode fb60, when i chek this doc in fbl1n or fb03 the amount fields has some value and there is no amt in LC field .
I am trying to do payment(tcode f-53) for the invocie i created using the bapi, but here i see the amount is zero again.
Plese let me kno whow should i post the document from bapi so that the amount field is not zero.
plz help....
Regards,
Renuka
‎2011 Jun 12 2:45 PM
Hi Renuka,
not easy to give a hint without seeing how you filled the BAPI parameters.
We did like this:
ls_currencyamount-itemno_acc = 1.
ls_currencyamount-currency_iso = lv_currency_iso.
ls_currencyamount-amt_doccur = ps_alv_display-dmbtr_post.
APPEND ls_currencyamount TO lt_currencyamount.
ls_currencyamount-itemno_acc = 2.
ls_currencyamount-currency_iso = lv_currency_iso.
ls_currencyamount-amt_doccur = - ps_alv_display-dmbtr_post.
APPEND ls_currencyamount TO lt_currencyamount.and we took the currency_iso code from the company code:
SELECT isocd INTO p_isocd UP TO 1 ROWS
FROM t001
JOIN tcurc ON tcurc~waers = t001~waers
WHERE bukrs = p_bukrs.
ENDSELECT.Actually, code snippets are taken from
CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'but I thinks that works similar.
Regards,
Clemens
‎2011 Jun 23 12:58 PM
Hi Clemens ,
thanks for you response....
the issue is resolved .
Actually the client has maintained different currency code for COnpany code and Country...
Have you worked on BAPIs like BAPI_ENTRYSHEET_CREATE ?
pl reply...
thnx and regards,
Renuka