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 for a t.code

Former Member
0 Likes
657

Hi All,

Wat are the different ways of finding a BAPI for any transaction code?

Thanks

John

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
619

SEARCH in SCN you have so many posts on the same.

[find bapi|https://forums.sdn.sap.com/click.jspa?searchID=20588358&messageID=5938763]

Read only

Former Member
0 Likes
619

Hi.

1.BAPI ,

2 if you know the bapi name use tcode SE37.

Regards.

Jay

Read only

Former Member
0 Likes
619

Hi

If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use.

Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.

1. Find out the package of the transaction.

Start Va01 go to system --> status.

Double click on transaction

Package is VA

Open this package in SE80

Open business engineering-->Business object types

Find the BO which sounds the most appropriate

I would suggest BUS2032 Sales Order

Double click.

Open methods.

Find the released method with from data or something similar in the name

, Createfromdat2

Position the cursor in it and click the program button

Scroll down to find the bapi used in this method

With this way you can also find out programs and FM's

2. Start va01 go to system-->status

Double click transaction VA01

Double click on package

Read the application component. (this is SD-SLS Sales)

Then open the transaction BAPI

Sales and distribution>Sales>sales order

createfromdat2

Read only

Former Member
0 Likes
619

Hi,

Check this , This is one method

http://www.sap-img.com/abap/how-to-find-bapi-for-particular-transaction-in-sap.htm

and u can find out through BAPI trxn

goto BAPI transaction-->

For example

If u want BAPI for Vendor creation-->search on vendor

likewise u can search.

Read only

Former Member
0 Likes
619

Hi John,

either you can search using Tcode BAPI

Or the other way as suggested here ... but the only difference i would like to add is.. Once you get to know the business object type, dobule click on it..then no need to scroll and search in program

Click on Methods->Select the appropriate method->dobule click on it->Select the ABAP tab

You will get the BAPI name used.

Regards,

Sachin