I am trying to add the bank details to the existing SAP business partner !
Here is the code which I am using!
data: bankdata type BAPIBUS1006_BANKDETAIL.
data: detail type BAPIBUS1006_HEAD.
data: my_Table type standard table of BAPIRET2 with default key, wa_myTab like line of my_Table.
bankdata-BANK_CTRY = 'DE'.
bankdata-BANK_KEY = '00000001'.
bankdata-BANK_ACCT = '3'.
CALL FUNCTION 'BAPI_BUPA_BANKDETAIL_ADD'
BUSINESSPARTNER = '0000000011'
BANKDETAILID = '1'
BANKDETAILDATA = bankdata
BANKDETAILIDOUT = detail
RETURN = my_Table
When I execute this code it gives me exception!
PS: The BUSINESSPARTNER already exits in the system!
Any idea or suggestion, what is possibly wrong!