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 code for F-02

Former Member
0 Likes
735

Hi,

i need to write a interface to f-02,i have found bapi for that BAPI_ACC_DOCUMENT_POST,any one can help me to pass the parameter using abap code.

Thanks

kanishka

4 REPLIES 4
Read only

Former Member
0 Likes
627

Hi,

This all depends on your requiremnt that what parameters you

have to pass in it and on what conditions,

Through Se37 you can check this function module

that in its import tab the parameters it is taking are all

structures and in th internal tables tab you have to pass

internal tables and likewise.

Hope it helps

Regards

Mansi

Read only

0 Likes
627

yes ,but i have 4 line item to post with cost centers ,how can i pass those recrds

Read only

0 Likes
627

Hi,

You can use an excel sheet to upload the data...

First filed should be an control filed(No. of accounting documents), and then header data (which will repeat until unless the new acc. document comes), field item data..

check my reply in this thread

here I have provided a example for BAPI_PO_Create1 with multiple line items...check it for your refrence..

Sachin

Read only

Former Member
0 Likes
627

Hi kanishka,

First test the BAPI itself using this functionality:

Function Module Test Sequence

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/functionModuleTest+Sequence

If you get the sucess in that you can write a code for the same... A few fileds that are used in F-02 are as under: (it may vary for your configuration)

Document_Date Type Company_Code Posting_date Period Currency Reference Posting Key Account Amount Business_area Cost_center Value_date Text Post_key Account Amount Text

Sachin