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/interface

Former Member
0 Likes
868

Hi

I got some requirements to create the interface and breif idea is to use BAPI's.

I would like to know some information can BAPI function modules replace the call transaction or session which we use for interfaces.

an we avoid that lengthy code?

Where do we start when we are using BAPI'S,?do we need to upload flat files and where we avoid?

Where we can find BAPI fm?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
776

Hi,

GO to the transaction BAPI..Where you can find the BAPIs..

THanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
777

Hi,

GO to the transaction BAPI..Where you can find the BAPIs..

THanks,

Naren

Read only

Former Member
0 Likes
776

Hi,

You can upload the data from the Flat files and fill the BAPI structures and call the BAPI function module. You can find all the bapi's in transaction code BAPI, and also there you will get good Documentaion for each and every BAPI

Regards

Sudheer

Read only

0 Likes
776

Hi Sudheer,

Thanks for that.

Upload the data fro flat files to where?you mean do we need to create the structures aain?

Assume iam using standard BAPI functon module.

If i upload the data to internal table from flat files and i can call the BAPI fm??

any inputs please.

Thanks

Read only

0 Likes
776

Hi,

Upload the data in internal tables & fill the different structures & pass all the structures to BAPI.

And also call BAPI_TRANSACTION_COMMIT function module after the main bapi.

Append the data of RETURN table into an internal table. It will give you the details of error as well as success records.

Ashven

Read only

Former Member
0 Likes
776

Hi,

you can use transaction code BAPI to display all the business objects & BAPI names & details.

If you want u can search a particular BAPI form Transaction Code SE37. Here Serach like BAPI*. & it will display all the available bapi.

Go in display mode for a particular BAPI & find out which are mandatory parameters.

After calling particular bapi you need to call BAPI commit function module otherwise changes will not take place in database.

e.g. suppose you have used the following bapi:

BAPI_ACC_DOCUMENT_POST'.

After calling above bapi you need to use the following:

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

For more details check out the following link:

http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5e114a4a1611d1894c0000e829fbbd/frameset.htm

Ashvender