SAP Function Modules

API_RE_PG_CHANGE SAP Function module







API_RE_PG_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_PG_CHANGE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM API_RE_PG_CHANGE - API RE PG CHANGE





CALL FUNCTION 'API_RE_PG_CHANGE' "
* EXPORTING
*   id_bukrs =                  " bapi_re_particip_grp_intk-bukrs
*   id_swenr =                  " bapi_re_particip_grp_intk-swenr
*   id_pgid =                   " bapi_re_particip_grp_intk-pgid
*   id_objnr =                  " recaobjnr
*   id_intreno =                " recaintreno
*   io_object =                 " object
*   is_particip_group =         " bapi_re_particip_grp_int
*   is_particip_group_x =       " bapi_re_particip_grp_intx
*   it_particip_obj =           " bapi_re_t_particip_obj_intc
*   it_resubm_rule =            " bapi_re_t_resubm_rule_intc
*   it_resubm_date =            " bapi_re_t_resubm_date_intc
*   it_status =                 " bapi_re_t_status_intc
*   is_ci_data =                " resc_particip_group_ci
*   if_ci_data_x = ' '          " recabool
*   it_ext_data =               " re_t_ext_data
*   id_trans =                  " bapi_re_additional_fields-trans
*   if_test_run = ' '           " bapi_re_additional_fields-testrun
*   if_msglist_instead_of_exc = ' '  " recabool
*   io_msglist =                " object
  IMPORTING
    ef_stored =                 " recabool
  EXCEPTIONS
    ERROR = 1                   "
    .  "  API_RE_PG_CHANGE

ABAP code example for Function Module API_RE_PG_CHANGE





The ABAP code below is a full code listing to execute function module API_RE_PG_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_pgid) = 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_particip_group) = 'Check type of data required'.
DATA(ld_is_particip_group_x) = 'Check type of data required'.
DATA(ld_it_particip_obj) = '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_PG_CHANGE' * EXPORTING * id_bukrs = ld_id_bukrs * id_swenr = ld_id_swenr * id_pgid = ld_id_pgid * id_objnr = ld_id_objnr * id_intreno = ld_id_intreno * io_object = ld_io_object * is_particip_group = ld_is_particip_group * is_particip_group_x = ld_is_particip_group_x * it_particip_obj = ld_it_particip_obj * 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_PG_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_PARTICIP_GRP_INTK-BUKRS ,
ld_id_swenr  TYPE BAPI_RE_PARTICIP_GRP_INTK-SWENR ,
ld_id_pgid  TYPE BAPI_RE_PARTICIP_GRP_INTK-PGID ,
ld_id_objnr  TYPE RECAOBJNR ,
ld_id_intreno  TYPE RECAINTRENO ,
ld_io_object  TYPE OBJECT ,
ld_is_particip_group  TYPE BAPI_RE_PARTICIP_GRP_INT ,
ld_is_particip_group_x  TYPE BAPI_RE_PARTICIP_GRP_INTX ,
ld_it_particip_obj  TYPE BAPI_RE_T_PARTICIP_OBJ_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 RESC_PARTICIP_GROUP_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_pgid = 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_particip_group = 'Check type of data required'.
ld_is_particip_group_x = 'Check type of data required'.
ld_it_particip_obj = '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_PG_CHANGE or its description.