Skip to Content
0
Former Member
Nov 30, 2004 at 07:41 PM

BAPI to add bank details

189 Views

Hello Friends,

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'

EXPORTING

BUSINESSPARTNER = '0000000011'

BANKDETAILID = '1'

BANKDETAILDATA = bankdata

IMPORTING

BANKDETAILIDOUT = detail

TABLES

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!

Many thanks

Marke