Hi all,
I have to perform a simple update on many objects in Real Estate Flexible (buildings)
I select the buildings that require changes using the standard logical DB, then i perform the updates, using the appropriate (I hope!) BAPI; the structure edifw contains the updated general building data (checked with debugger):
CALL FUNCTION 'BAPI_RE_BU_CHANGE'
EXPORTING
COMPCODE = BUILDING-BUKRS
BUSINESSENTITYNUMBER = BUILDING-SWENR
BUILDINGNUMBER = BUILDING-SGENR
BUILDING = edifw
* BUILDING_X =
* OBJECT_ADDRESS =
* OBJECT_ADDRESS_X =
* COSETTLE_PARAM =
* COSETTLE_PARAM_X =
* TRANS =
TEST_RUN = P_TEST
TABLES
* TERM_ORG_ASSIGNMENT =
* MEASUREMENT =
* PARTNER =
* OPTION_RATE =
* COSETTLE_RULE =
* CHARACT =
* OBJ_ASSIGN =
* RESUBM_RULE =
* RESUBM_DATE =
* ARCH_REL =
* ARCH_RELMS =
* STATUS =
* EXTENSION_IN =
RETURN = bapir
* INFRASTRUCTURE =
.
The parameter P_TEST is set to space.
The BAPI returns a 'S' message (update was performed.
Next I call the COMMIT function:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = bapiret
.
The commit BAPI is performed correctly, then the program exits.
The building data appears unchanged. Anyone can suggest why?
I have also tried to execute the two transactions using the test sequence function of SE37.
The result is the same.
Thanks,
Massimo