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

Using BAPI_ACC_DOCUMENT_POST to post in FB70

Jay_Kamdar
Participant
0 Likes
2,724

Hello Experts,

I am doing this for the first time so i need ur help,

I have a requirement regarding transaction FB70 as follows :

1. user will upload an excel sheet containing the below fields  : (for example)

CustomerDocument DateReferenceAmountcurrencyTextG/L AccountInternal OrderAssignmentHeaderTextRef.key 1Ref.key 2Ref.key 3
10002128.04.2013Jay50INRa7000400R10000031zasqwrt

SAP fieldnames:

accnt TYPE invfo-accnt, "Customer
   bldat TYPE invfo-bldat,"Invoice Date
   xblnr TYPE invfo-xblnr,"Reference
   wrbtr TYPE invfo-wrbtr,"Amount
   waers TYPE invfo-waers,"Currency
*  mwskz TYPE invfo-mwskz,"Tax Code
   sgtxt TYPE invfo-sgtxt, "Text
  hkont type acgl_item-hkont,"G/L account
  aufnr type acgl_item-aufnr,"Order
   zuonr TYPE invfo-zuonr,"Assignment
   bktxt TYPE invfo-bktxt,"Header Text
   xref1 TYPE invfo-xref1,"Reference Key 1
   xref2 TYPE invfo-xref2,"Reference Key 2
   xref3 TYPE invfo-xref3,"Reference Key 3

I have to POST this data into transaction FB70.


I have completed the conversion part of converting the excel file into SAP format and stored it in Internal Table - it_data.

How to use BAPI_ACC_DOCUMENT_POST using the above information ?

How am i supposed to find that which field in the above field-list belongs to which table in the Tables list of the BAPI ????

What should i export to the import field DOCUMENTHEADER in the BAPI considering the above explanation?

Will the export fields of the BAPI be required?

2 REPLIES 2
Read only

Former Member
0 Likes
1,488

Hi,

You can use where used list to find program where the BAPI is used .Please find some links

with helpful content.

http://www.saptechnical.com/Tutorials/BAPI/FI/Index.htm

https://scn.sap.com/thread/228177

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,488

How to use BAPI_ACC_DOCUMENT_POST using the above information ?

Reading the BAPI documentation, searching for sample at scn

How am i supposed to find that which field in the above field-list belongs to which table in the Tables list of the BAPI ????

Using data elements, reading parameter documentation

What should i export to the import field DOCUMENTHEADER in the BAPI considering the above explanation?

Reading the documentation of the parameter

Will the export fields of the BAPI be required?

Reading the documentation of the parameters

Also perform some where-used to find SAP sample like ACC_BAPI_SXDA_DOCUMENT_POST or

ACC_BAPI_TEST_DOCUMENT.

In OSS you could find Note 306504 - Collective note: BAPIs for the AC interface  and Note 626235 - Tax postings with accounting BAPIs.

Regards,

Raymond