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

Former Member
0 Likes
321

can anyone explain how to use an existing/standard fm in bapi (not to create a new bapi)

if possible with steps

THANKS IN ADVANCE.

2 REPLIES 2
Read only

Former Member
0 Likes
285

Hi Nagini,

It will be same as using any Function Module.

The only difference here will be you will have certain

structure or table fields to populate before executing the BAPI.

call commit after calling BAPI.

<b> CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.</b>

Eg:

REFRESH i_bapi_return.

CHECK NOT i_profile[] IS INITIAL.

CALL FUNCTION 'BAPI_ISUPROFILE_IMPORT'

EXPORTING

uploadinfo = i_mr_input

TABLES

profilevalues = i_profile

return = i_bapi_return.

REFRESH: i_profile.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Reward points if this helps.

Manish

Read only

ferry_lianto
Active Contributor
0 Likes
285

Hi Nagini,

BAPIs are function modules that can "simply" be called by a CALL FUNCTION from ABAP-Code. You can use the SAP-BAPI-Exporer (T-Code BAPI) to find usefull bapis and see what they do and how thier parametes should be filled.

Please check this links for BAPI usage.

http://www.sapgenie.com/abap/bapi/example.htm

http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html

Hope this will help.

Regards,

Ferry Lianto