‎2006 Nov 08 5:01 PM
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.
‎2006 Nov 08 5:16 PM
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
‎2006 Nov 08 5:20 PM
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