‎2008 Feb 07 2:47 PM
Hi
How to create an invoice by FM BAPI with parameter Posting key?
‎2008 Feb 07 2:49 PM
hi
hope it will help you.
<REMOVED BY MODERATOR>
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 =
.
Edited by: Alvaro Tejada Galindo on Feb 7, 2008 9:51 AM
‎2008 Feb 07 3:02 PM
I know how to create an invoice but don't know how to set parameter bschl (it has value 31 or 50 in bkpf-bschl)
‎2008 Feb 07 3:07 PM
‎2008 Feb 08 2:57 PM