SAP Function Modules

API_RE_PR_CHANGE SAP Function module - Change Land







API_RE_PR_CHANGE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name API_RE_PR_CHANGE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: REBD_API_PROPERTY
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM API_RE_PR_CHANGE - API RE PR CHANGE





CALL FUNCTION 'API_RE_PR_CHANGE' "Change Land
* EXPORTING
*   id_bukrs =                  " bapi_re_property_intk-bukrs  Company Code
*   id_swenr =                  " bapi_re_property_intk-swenr  Business Entity Number
*   id_sgrnr =                  " bapi_re_property_intk-sgrnr  Land Number for BE
*   id_objnr =                  " recaobjnr     Object Number
*   id_intreno =                " recaintreno   Internal Key of Real Estate Object
*   io_object =                 " object
*   is_property =               " bapi_re_property_int  Land
*   is_property_x =             " bapi_re_property_intx  Land Change
*   is_object_address =         " bapi_re_obj_address_int  Address
*   is_object_address_x =       " bapi_re_obj_address_intx  Address Change
*   is_cosettle_param =         " bapi_re_cosettle_par_int  CO Settlement Rule: Parameter
*   is_cosettle_param_x =       " bapi_re_cosettle_par_intx
*   it_term_org_assignment =    " bapi_re_t_term_oa_intc  Organizational Assignment
*   it_measurement =            " bapi_re_t_measurement_intc  Measurements
*   it_infrastructure =         " bapi_re_t_infra_intc  Infrastructure
*   it_partner =                " bapi_re_t_partner_intc  Partner
*   it_option_rate =            " bapi_re_t_option_rate_intc  Option Rates
*   it_cosettle_rule =          " bapi_re_t_cosettle_rl_intc
*   it_charact =                " bapi_re_t_charact_intc  Fixtures and Fittings Characteristics
*   it_obj_assign =             " bapi_re_t_obj_assign_intc  Object Assignment
*   it_arch_rel =               " bapi_re_t_arch_rel_intc  Architectural Linkage Objects
*   it_arch_relms =             " bapi_re_t_arch_relms_intc  Architectural Linkage Object Parts
*   it_resubm_rule =            " bapi_re_t_resubm_rule_intc  Reminder Rules
*   it_resubm_date =            " bapi_re_t_resubm_date_intc  Reminder Dates
*   it_status =                 " bapi_re_t_status_intc  Status
*   is_ci_data =                " rebd_property_ci  Data of CI Include
*   if_ci_data_x = ' '          " recabool
*   it_ext_data =               " re_t_ext_data  Enhancements: Data
*   id_trans =                  " bapi_re_additional_fields-trans  Business Transaction
*   if_test_run = ' '           " bapi_re_additional_fields-testrun
*   if_msglist_instead_of_exc = ' '  " recabool
*   io_msglist =                " object
  IMPORTING
    ef_stored =                 " recabool
  EXCEPTIONS
    ERROR = 1                   "               Change Error
    .  "  API_RE_PR_CHANGE

ABAP code example for Function Module API_RE_PR_CHANGE





The ABAP code below is a full code listing to execute function module API_RE_PR_CHANGE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ef_stored  TYPE RECABOOL .


DATA(ld_id_bukrs) = some text here

DATA(ld_id_swenr) = some text here

DATA(ld_id_sgrnr) = some text here
DATA(ld_id_objnr) = 'Check type of data required'.
DATA(ld_id_intreno) = 'Check type of data required'.
DATA(ld_io_object) = 'Check type of data required'.
DATA(ld_is_property) = 'Check type of data required'.
DATA(ld_is_property_x) = 'Check type of data required'.
DATA(ld_is_object_address) = 'Check type of data required'.
DATA(ld_is_object_address_x) = 'Check type of data required'.
DATA(ld_is_cosettle_param) = 'Check type of data required'.
DATA(ld_is_cosettle_param_x) = 'Check type of data required'.
DATA(ld_it_term_org_assignment) = 'Check type of data required'.
DATA(ld_it_measurement) = 'Check type of data required'.
DATA(ld_it_infrastructure) = 'Check type of data required'.
DATA(ld_it_partner) = 'Check type of data required'.
DATA(ld_it_option_rate) = 'Check type of data required'.
DATA(ld_it_cosettle_rule) = 'Check type of data required'.
DATA(ld_it_charact) = 'Check type of data required'.
DATA(ld_it_obj_assign) = 'Check type of data required'.
DATA(ld_it_arch_rel) = 'Check type of data required'.
DATA(ld_it_arch_relms) = 'Check type of data required'.
DATA(ld_it_resubm_rule) = 'Check type of data required'.
DATA(ld_it_resubm_date) = 'Check type of data required'.
DATA(ld_it_status) = 'Check type of data required'.
DATA(ld_is_ci_data) = 'Check type of data required'.
DATA(ld_if_ci_data_x) = 'Check type of data required'.
DATA(ld_it_ext_data) = 'Check type of data required'.

DATA(ld_id_trans) = some text here

DATA(ld_if_test_run) = some text here
DATA(ld_if_msglist_instead_of_exc) = 'Check type of data required'.
DATA(ld_io_msglist) = 'Check type of data required'. . CALL FUNCTION 'API_RE_PR_CHANGE' * EXPORTING * id_bukrs = ld_id_bukrs * id_swenr = ld_id_swenr * id_sgrnr = ld_id_sgrnr * id_objnr = ld_id_objnr * id_intreno = ld_id_intreno * io_object = ld_io_object * is_property = ld_is_property * is_property_x = ld_is_property_x * is_object_address = ld_is_object_address * is_object_address_x = ld_is_object_address_x * is_cosettle_param = ld_is_cosettle_param * is_cosettle_param_x = ld_is_cosettle_param_x * it_term_org_assignment = ld_it_term_org_assignment * it_measurement = ld_it_measurement * it_infrastructure = ld_it_infrastructure * it_partner = ld_it_partner * it_option_rate = ld_it_option_rate * it_cosettle_rule = ld_it_cosettle_rule * it_charact = ld_it_charact * it_obj_assign = ld_it_obj_assign * it_arch_rel = ld_it_arch_rel * it_arch_relms = ld_it_arch_relms * it_resubm_rule = ld_it_resubm_rule * it_resubm_date = ld_it_resubm_date * it_status = ld_it_status * is_ci_data = ld_is_ci_data * if_ci_data_x = ld_if_ci_data_x * it_ext_data = ld_it_ext_data * id_trans = ld_id_trans * if_test_run = ld_if_test_run * if_msglist_instead_of_exc = ld_if_msglist_instead_of_exc * io_msglist = ld_io_msglist IMPORTING ef_stored = ld_ef_stored EXCEPTIONS ERROR = 1 . " API_RE_PR_CHANGE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ef_stored  TYPE RECABOOL ,
ld_id_bukrs  TYPE BAPI_RE_PROPERTY_INTK-BUKRS ,
ld_id_swenr  TYPE BAPI_RE_PROPERTY_INTK-SWENR ,
ld_id_sgrnr  TYPE BAPI_RE_PROPERTY_INTK-SGRNR ,
ld_id_objnr  TYPE RECAOBJNR ,
ld_id_intreno  TYPE RECAINTRENO ,
ld_io_object  TYPE OBJECT ,
ld_is_property  TYPE BAPI_RE_PROPERTY_INT ,
ld_is_property_x  TYPE BAPI_RE_PROPERTY_INTX ,
ld_is_object_address  TYPE BAPI_RE_OBJ_ADDRESS_INT ,
ld_is_object_address_x  TYPE BAPI_RE_OBJ_ADDRESS_INTX ,
ld_is_cosettle_param  TYPE BAPI_RE_COSETTLE_PAR_INT ,
ld_is_cosettle_param_x  TYPE BAPI_RE_COSETTLE_PAR_INTX ,
ld_it_term_org_assignment  TYPE BAPI_RE_T_TERM_OA_INTC ,
ld_it_measurement  TYPE BAPI_RE_T_MEASUREMENT_INTC ,
ld_it_infrastructure  TYPE BAPI_RE_T_INFRA_INTC ,
ld_it_partner  TYPE BAPI_RE_T_PARTNER_INTC ,
ld_it_option_rate  TYPE BAPI_RE_T_OPTION_RATE_INTC ,
ld_it_cosettle_rule  TYPE BAPI_RE_T_COSETTLE_RL_INTC ,
ld_it_charact  TYPE BAPI_RE_T_CHARACT_INTC ,
ld_it_obj_assign  TYPE BAPI_RE_T_OBJ_ASSIGN_INTC ,
ld_it_arch_rel  TYPE BAPI_RE_T_ARCH_REL_INTC ,
ld_it_arch_relms  TYPE BAPI_RE_T_ARCH_RELMS_INTC ,
ld_it_resubm_rule  TYPE BAPI_RE_T_RESUBM_RULE_INTC ,
ld_it_resubm_date  TYPE BAPI_RE_T_RESUBM_DATE_INTC ,
ld_it_status  TYPE BAPI_RE_T_STATUS_INTC ,
ld_is_ci_data  TYPE REBD_PROPERTY_CI ,
ld_if_ci_data_x  TYPE RECABOOL ,
ld_it_ext_data  TYPE RE_T_EXT_DATA ,
ld_id_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS ,
ld_if_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN ,
ld_if_msglist_instead_of_exc  TYPE RECABOOL ,
ld_io_msglist  TYPE OBJECT .


ld_id_bukrs = some text here

ld_id_swenr = some text here

ld_id_sgrnr = some text here
ld_id_objnr = 'Check type of data required'.
ld_id_intreno = 'Check type of data required'.
ld_io_object = 'Check type of data required'.
ld_is_property = 'Check type of data required'.
ld_is_property_x = 'Check type of data required'.
ld_is_object_address = 'Check type of data required'.
ld_is_object_address_x = 'Check type of data required'.
ld_is_cosettle_param = 'Check type of data required'.
ld_is_cosettle_param_x = 'Check type of data required'.
ld_it_term_org_assignment = 'Check type of data required'.
ld_it_measurement = 'Check type of data required'.
ld_it_infrastructure = 'Check type of data required'.
ld_it_partner = 'Check type of data required'.
ld_it_option_rate = 'Check type of data required'.
ld_it_cosettle_rule = 'Check type of data required'.
ld_it_charact = 'Check type of data required'.
ld_it_obj_assign = 'Check type of data required'.
ld_it_arch_rel = 'Check type of data required'.
ld_it_arch_relms = 'Check type of data required'.
ld_it_resubm_rule = 'Check type of data required'.
ld_it_resubm_date = 'Check type of data required'.
ld_it_status = 'Check type of data required'.
ld_is_ci_data = 'Check type of data required'.
ld_if_ci_data_x = 'Check type of data required'.
ld_it_ext_data = 'Check type of data required'.

ld_id_trans = some text here

ld_if_test_run = some text here
ld_if_msglist_instead_of_exc = 'Check type of data required'.
ld_io_msglist = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name API_RE_PR_CHANGE or its description.