There Are 2 Types of Bapi's
There Are 2 Types of Bapi's
1.Instance independent bapi : For which bapi's, we no need to provide the input thant bapi's are called
instance independent bapi
ex: GETLIST( ) bapi's are called instance independent bapi
2.Instance dependent bapi : For which bapi's, we must provide the input thant bapi's are called instance
dependent bapi
ex : GETDETAIL( ), GETSTATUS( ),...bapi's are called instance dependent bapi.
Execute FI02.
provide bank country key (IN),
bank key (121516). Enter.
Provide the street (SR Nagar),
city (HYD).
Save.
REPORT ZSPRAO_O_BAPI3.
WA_ADD-STREET = P_STREET.
WA_ADD-CITY = P_CITY.
WA_ADDX-STREET = 'X'.
WA_ADDX-CITY = 'X'.
REPORT ZSPRAO_O_BAPI4.
WA_ADDX-STREET = 'X'.
WA_ADDX-CITY = 'X'.
CALL FUNCTION 'BAPI_BANK_CHANGE'
EXPORTING
BANKCOUNTRY = WA_BANK-BCTRY
BANKKEY = WA_BANK-BKEY
BANK_ADDRESS = WA_ADD
BANK_ADDRESSX = WA_ADDX
IMPORTING
RETURN = WA_RETURN .
ENDLOOP.
Differences between BAPI and RFC(Remote function call)
Note: - BAPI is used to connecting from SAP to SAP as well as SAP to NON – SAP. Where as RFC is
used to connecting from SAP-SAP only.