‎2009 Mar 25 7:32 AM
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
‎2009 Mar 25 7:38 AM
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
‎2009 Mar 25 7:42 AM
yes ,but i have 4 line item to post with cost centers ,how can i pass those recrds
‎2009 Mar 25 7:53 AM
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
‎2009 Mar 25 7:40 AM
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