‎2007 Apr 27 10:32 AM
hi friends
Here is my query on BAPI.
I want to call a BAPI from an ABAP Program,plz help me on this.
thanks
mrutyun^
‎2007 Apr 27 11:37 AM
just call it like any other function module, eg:
DATA: user TYPE bapibname-bapibname,
address TYPE bapiaddr3.
user = tusr02-bname.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = user
IMPORTING
address = address
TABLES
return = return
.
and specify the RFC destination,if you call into another system. You can find this out via transaction SM59 in the caller system. If you don't find the destination you have to configure it.
call function 'BAPI_USER_GET_DETAIL' destination 'NONE'
‎2007 Apr 27 10:36 AM
Hi,
In ABAP programs BAPI's are called as general FM's...
find the BAPI use pattern to copy the FM interface into your program and go ahead
santhosh
‎2007 Apr 27 10:43 AM
Hi,
As suggested,use pattern function to ccall the bapi.
Pass the parameters as you pass for normal function module.
‎2007 Apr 27 11:37 AM
just call it like any other function module, eg:
DATA: user TYPE bapibname-bapibname,
address TYPE bapiaddr3.
user = tusr02-bname.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = user
IMPORTING
address = address
TABLES
return = return
.
and specify the RFC destination,if you call into another system. You can find this out via transaction SM59 in the caller system. If you don't find the destination you have to configure it.
call function 'BAPI_USER_GET_DETAIL' destination 'NONE'