‎2008 Jan 23 6:55 AM
hello , can you please tell me which table the FM BAPI_ACC_DOCUMENT_POST updates after it has been executed.thanks
‎2008 Jan 23 7:02 AM
‎2008 Jan 23 7:02 AM
Hi
Go thru this code, hope it will help you.
Reward if help.
BAPI_ACC_GL_POSTING_CHECK
CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
EXPORTING
documentheader = w_documentheader
TABLES
accountgl = it_accountgl
currencyamount = it_currencyamount
return = it_return.
Populate the corresponding tables with the data you have.
For the Date do convert it.
PERFORM convert_date USING it_header-bldat
CHANGING w_documentheader-doc_date.
w_documentheader-comp_code = 'z998'
w_documentheader-doc_type = 'SA'
"and fill the respective tables this way .
<b>
BAPI_ACC_GL_POSTING_POST
</b>
call function 'BAPI_ACC_GL_POSTING_POST'
exporting
documentheader = doc_header
IMPORTING
OBJ_TYPE = l_objtype
OBJ_KEY =
OBJ_SYS =
tables
accountgl = t_accountgl
currencyamount = t_curramt
return = t_return
EXTENSION1 =
.
‎2008 Jan 23 7:02 AM
‎2008 Jan 23 7:03 AM