‎2010 Jun 17 6:46 PM
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
‎2010 Jun 17 7:10 PM
‎2010 Jun 17 7:20 PM
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