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

BAPI bapi_re_bu_change

former_member852447
Active Participant
0 Likes
527

Hello Abappers,

I need to use BAPI 'bapi_re_bu_change' to change the partner on the role. My code is as follows:

CALL FUNCTION 'BAPI_RE_BU_CHANGE'

EXPORTING

COMPCODE = 'TEST1'

BUSINESSENTITYNUMBER = '27'

BUILDINGNUMBER = '14'

  • BUILDING =

  • BUILDING_X =

  • OBJECT_ADDRESS =

  • OBJECT_ADDRESS_X =

  • COSETTLE_PARAM =

  • COSETTLE_PARAM_X =

  • TRANS =

  • TEST_RUN = ' '

TABLES

  • TERM_ORG_ASSIGNMENT =

  • MEASUREMENT =

PARTNER = gs_partner

  • OPTION_RATE =

  • COSETTLE_RULE =

  • CHARACT =

  • OBJ_ASSIGN =

  • RESUBM_RULE =

  • RESUBM_DATE =

  • ARCH_REL =

  • ARCH_RELMS =

  • STATUS =

  • EXTENSION_IN =

RETURN = return

  • INFRASTRUCTURE =

gs_partner is populated with the change indicator 'U', the role-type, the partner number and the valid from.

However the BAPI does not make any changes.

Does anybody know what could be causing this as it is possible to manually make the changes with the submitted data.

Thank you

2 REPLIES 2
Read only

Former Member
0 Likes
434

What messages are in the RETURN table?

Rob

Read only

former_member852447
Active Participant
0 Likes
434

Hello Rob,

The return code message is as follows:

'Business Partner ORG32-00 is not assigned in role ZRERPO' 'Type ERROR'

However it is possible to change the business partner ORG32-00 to the role type manually.

I have read the documentation on this BAPI and the only field which is not completed on the PARTNER table is role Sub_type because it is not set up in config so hpefully that is not causing the error.

Thanks