Skip to Content
-1
Jun 14, 2018 at 09:00 AM

I am trying to update BSEG- WRBTR by using BAPI_ACC_DOCUMENT_POST,But It is not getting updated.

463 Views

Hi Everyone,

I am trying to update BSEG-WRBTR using BAPI_ACC_DOCUMENT_POST,But amount in document currency (WRBTR) is not getting Updated.I am filling the following structures of BAPI.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gs_doc_header
IMPORTING
obj_type = gs_doc_header-obj_type
obj_key = gs_doc_header-obj_key
obj_sys = gs_doc_header-obj_sys
TABLES
accountgl = gt_accountgl
currencyamount = gt_currencyamount
return = treturn.

Can somebody please let me know why the amount is not getting updated.