Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with BAPI_ISUPARTNER_CHANGE

Former Member
0 Likes
1,424

I need to change the bank and payment card information regarding an IS-U business partner and I´ve been trying to use the BAPI BAPI_ISUPARTNER_CHANGE. When it executes it doesn´t change the information in the business partner and the return structure comes out empty! I don´t understand why this is hapenning and this is only BAPI I´ve found that can change de Business Partner fields I need to change...Any help ?

I need to change the bank and payment card information regarding an IS-U business partner and I´ve been trying to use the BAPI BAPI_ISUPARTNER_CHANGE. When it executes it doesn´t change the information in the business partner and the return structure comes out empty! I don´t understand why this is hapenning and this is only BAPI I´ve found that can change de Business Partner fields I need to change...Any help ?

5 REPLIES 5
Read only

Former Member
0 Likes
1,037

HI,

Are you passing X to the field's in TBANKDATAX TCCARDDATAX tables for the corresponding fields fields populated in table TBANKDATA TCCARDDATA..while passing to FM.

And same in case of PARTNERDATA PARTNERDATAX.

Can you paste the FM call here..

Read only

0 Likes
1,037

I´ve filled all structures, including tbankdatax and tccarddatax,below is the FM call code

DATA: banc_data LIKE TABLE OF bapiisubpb WITH HEADER LINE,

banc_data_x LIKE TABLE OF bapiisubpbx WITH HEADER LINE.

DATA: card_data LIKE TABLE OF bapiisubpc WITH HEADER LINE,

card_data_x LIKE TABLE OF bapiisubpcx WITH HEADER LINE.

APPEND banc_data.

APPEND banc_data_x.

APPEND card_data.

APPEND card_data_x.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

CLEAR: ret[],ret.

CALL FUNCTION 'BAPI_ISUPARTNER_CHANGE'

EXPORTING

partner = bpartner

  • VALIDDATE =

partnerdata = partner_data

partnerdatax = partner_data_x

  • TESTRUN =

  • TAX_USE =

  • ACCEPT_ERROR = 'X'

  • ROLE_CATEGORY =

IMPORTING

return = ret

TABLES

  • TADDRESS =

  • TADDRESSX =

tbankdata = banc_data

tbankdatax = banc_data_x

tccarddata = card_data

tccarddatax = card_data_x

  • EXTENSIONIN =

  • TTAXDATA =

  • TTAXDATADEL =

  • TELEFONDATANONADDRESS =

  • TELEFONDATANONADDRESSX =

  • E_MAILDATANONADDRESS =

  • E_MAILDATANONADDRESSX =

  • TADRUSE =

  • TADRUSEX =

.

READ TABLE ret WITH KEY type = 'E'.

IF sy-subrc = 0.

CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

l_err = 'X'.

ENDIF.

CHECK l_err IS INITIAL.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Read only

0 Likes
1,037

Hi,

Try passing sy-datum to VALIDDATE .

Read only

0 Likes
1,037

I placed sy-datum in the VALIDATE parameter and no changes. The problem is I´ve used this FM in another report, to change data in the partner_data structure and it worked!

Read only

0 Likes
1,037

Hi,

I need to update the partner's telephone numbers including mobile numbers. can you please let me know how to do this?

Thanks,

Kishore