Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_INVOICE_RECEIPT_POST with bschl

Former Member
0 Likes
662

Hi

How to create an invoice by FM BAPI with parameter Posting key?

4 REPLIES 4
Read only

Former Member
0 Likes
612

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

Read only

Former Member
0 Likes
612

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)

Read only

Former Member
Read only

Former Member
0 Likes
612

It was in extensions module