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

How to create an Accounting Document by calling BAPI

Former Member
0 Likes
1,975

Hai friends ,

please tell me how to call this BAPI and fulfill all the parameters .. Please help me , I dont know the head and tail of it ...

create an Accounting Document by calling BAPI BAPI_ACC_DOCUMENT_POST

Below is the step to fill the parameters for BAPI:

Enter company code, invoice no, invoice date, document type, header text into DOCUMENTHEADER

Enter customer, item text, company code, payment term into ACCOUNTRECEIVABLE

Enter offset account, company code, document type, item text into ACCOUNTGL

Enter currency type u201800u2019, currency, exchange rate, amount into CURRENCYAMOUNT. Please note there will be two rows in this table, one positive amount and one negative amount

Call the BAPI to create the AR document. If p_check is checked, call the BAPI only without COMMIT and then do the message processing

If p_check is initial, COMMIT the data to the database tables.

Check the RETURN table after each BAPI, if no u2018Eu2019 message type found, output the document no. Otherwise, output the error messge to the screen with the message type u2018Eu2019.

thanks in advance ...

Hai friends ,

please tell me how to call this BAPI and fulfill all the parameters .. Please help me , I dont know the head and tail of it ...

create an Accounting Document by calling BAPI BAPI_ACC_DOCUMENT_POST

Below is the step to fill the parameters for BAPI:

Enter company code, invoice no, invoice date, document type, header text into DOCUMENTHEADER

Enter customer, item text, company code, payment term into ACCOUNTRECEIVABLE

Enter offset account, company code, document type, item text into ACCOUNTGL

Enter currency type u201800u2019, currency, exchange rate, amount into CURRENCYAMOUNT. Please note there will be two rows in this table, one positive amount and one negative amount

Call the BAPI to create the AR document. If p_check is checked, call the BAPI only without COMMIT and then do the message processing

If p_check is initial, COMMIT the data to the database tables.

Check the RETURN table after each BAPI, if no u2018Eu2019 message type found, output the document no. Otherwise, output the error messge to the screen with the message type u2018Eu2019.

thanks in advance ...

3 REPLIES 3
Read only

Former Member
0 Likes
1,243

Did you read the function module documentation ? You should get everything from head to tail there.

regards,

Advait

Read only

0 Likes
1,243

I have already read the document. but i dont know the steps and object key for patricular tcode (f-22)