‎2007 Oct 24 5:02 AM
Hi all,
Can anybody List all the BAPI's Used in FICO Module.
My requirement is to Post a GL in FB01.( Interface Program Payroll - FI from Legacy to SAP). I tried with two BAPI's
1. BAPI_ACC_GL_POSTING_POST
2. BAPI_ACC_DOCUMENT_POST
These BAPI's didnt solve my requirement..
Please help...points will be awarded..
‎2007 Oct 24 5:08 AM
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Rewards if useful.............
Minal
‎2007 Oct 24 5:09 AM
Hi Gopi,
Try using this BAPI ''BAPI_ACC_INVOICE_RECEIPT_POST'.
And for all BAPI's related to FICO u can go to transaction 'BAPI' and drill down to FICO module to get the list.
Thanks
Vasudha
Message was edited by:
Vasudha L
‎2007 Oct 24 5:10 AM
Go to transaction BAPI, click on Financial Accounting and this will give you details about BAPIs and business objects available in FI.
Hope this helps.
ashish
‎2007 Oct 24 5:13 AM
Hi,
'BAPI_ACC_DOCUMENT_POST' should solve ur problem. please check whether you have popuplated all the tables.
See the sample code.
DATA:
l_item TYPE posnr_acc,
l_glacc TYPE hkont VALUE '0000540106',
l_curr TYPE waers_iso VALUE 'MYR',
l_uname TYPE sy-uname,
l_date TYPE string,
l_pdate TYPE budat,
l_amount TYPE dmbtr,
l_refdoc TYPE xblnr.
DATA:
ls_accountgl TYPE bapiacgl09,
ls_accountpayable TYPE bapiacap09,
ls_currencyamount TYPE bapiaccr09,
ls_items TYPE ty_items.
l_uname = sy-uname.
LOOP AT gt_items INTO ls_items.
Populate the document header table
gs_documentheader-bus_act = 'RFBU'.
gs_documentheader-username = l_uname.
gs_documentheader-comp_code = p_bukrs.
gs_documentheader-doc_type = 'RE'. "'KR'.
gs_documentheader-header_txt = ls_items-name1.
l_date = ls_items-bldat.
PERFORM convert_date CHANGING l_date.
CLEAR l_pdate.
l_pdate = l_date.
gs_documentheader-doc_date = l_pdate.
l_date = ls_items-budat.
PERFORM convert_date CHANGING l_date.
CLEAR l_pdate.
l_pdate = l_date.
gs_documentheader-pstng_date = l_pdate.
l_refdoc = ls_items-xblnr.
gs_documentheader-ref_doc_no = l_refdoc.
populate the accountGL internal table
l_item = 2.
ls_accountgl-itemno_acc = l_item.
ls_accountgl-gl_account = l_glacc.
ls_accountgl-item_text = ls_items-gltxt.
APPEND ls_accountgl TO gt_accountgl.
Populate the Account payable internal table
l_item = 1.
ls_accountpayable-itemno_acc = l_item.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ls_items-lifnr
IMPORTING
output = ls_accountpayable-vendor_no.
ls_accountpayable-item_text = ls_items-vetxt. APPEND ls_accountpayable TO gt_accountpayable.
Populate currency amount internal table
l_item = 1.
ls_currencyamount-itemno_acc = l_item.
ls_currencyamount-currency_iso = l_curr.
l_amount = ls_items-dmbtr.
ls_currencyamount-amt_doccur = l_amount.
APPEND ls_currencyamount TO gt_currencyamount.
CLEAR ls_currencyamount.
l_item = 2.
ls_currencyamount-itemno_acc = l_item.
ls_currencyamount-currency_iso = l_curr.
l_amount = ls_items-dmbtr.
l_amount = l_amount * -1.
ls_currencyamount-amt_doccur = l_amount.
APPEND ls_currencyamount TO gt_currencyamount.
Calling the BAPI to post the items
PERFORM call_bapi_to_post.
building the report to be displayed after the upload
PERFORM build_report USING ls_items .
CLEAR:
ls_currencyamount,
ls_accountpayable,
gs_documentheader,
ls_items.
REFRESH:
gt_accountgl,
gt_accountpayable,
gt_currencyamount,
gt_return.
ENDLOOP.
&----
*& Form call_BAPI_to_post
&----
BAPI to post the details
----
FORM call_bapi_to_post .
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gs_documentheader
TABLES
accountgl = gt_accountgl
accountpayable = gt_accountpayable
currencyamount = gt_currencyamount
return = gt_return.
ENDFORM. " call_BAPI_to_post
Reward points if useful
Regards,
Niyaz