SAP Function Modules

API_RE_PG_GET_DETAIL SAP Function module







API_RE_PG_GET_DETAIL 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_GET_DETAIL 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_GET_DETAIL - API RE PG GET DETAIL





CALL FUNCTION 'API_RE_PG_GET_DETAIL' "
* 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
*   id_detail_data_from =       " bapi_re_additional_fields_int-detailvalidfrom
*   id_detail_data_to =         " bapi_re_additional_fields_int-detailvalidto
*   if_old_data = ' '           " recabool
  IMPORTING
    es_particip_group =         " bapi_re_particip_grp_int
    et_particip_obj =           " bapi_re_t_particip_obj_int
    et_resubm_rule =            " bapi_re_t_resubm_rule_int
    et_resubm_date =            " bapi_re_t_resubm_date_int
    et_status =                 " bapi_re_t_status_int
    es_ci_data =                " resc_particip_group_ci
    et_ext_data =               " re_t_ext_data
  EXCEPTIONS
    ERROR = 1                   "
    .  "  API_RE_PG_GET_DETAIL

ABAP code example for Function Module API_RE_PG_GET_DETAIL





The ABAP code below is a full code listing to execute function module API_RE_PG_GET_DETAIL 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_es_particip_group  TYPE BAPI_RE_PARTICIP_GRP_INT ,
ld_et_particip_obj  TYPE BAPI_RE_T_PARTICIP_OBJ_INT ,
ld_et_resubm_rule  TYPE BAPI_RE_T_RESUBM_RULE_INT ,
ld_et_resubm_date  TYPE BAPI_RE_T_RESUBM_DATE_INT ,
ld_et_status  TYPE BAPI_RE_T_STATUS_INT ,
ld_es_ci_data  TYPE RESC_PARTICIP_GROUP_CI ,
ld_et_ext_data  TYPE RE_T_EXT_DATA .


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_id_detail_data_from) = 20210129

DATA(ld_id_detail_data_to) = 20210129
DATA(ld_if_old_data) = 'Check type of data required'. . CALL FUNCTION 'API_RE_PG_GET_DETAIL' * 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 * id_detail_data_from = ld_id_detail_data_from * id_detail_data_to = ld_id_detail_data_to * if_old_data = ld_if_old_data IMPORTING es_particip_group = ld_es_particip_group et_particip_obj = ld_et_particip_obj et_resubm_rule = ld_et_resubm_rule et_resubm_date = ld_et_resubm_date et_status = ld_et_status es_ci_data = ld_es_ci_data et_ext_data = ld_et_ext_data EXCEPTIONS ERROR = 1 . " API_RE_PG_GET_DETAIL
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_es_particip_group  TYPE BAPI_RE_PARTICIP_GRP_INT ,
ld_id_bukrs  TYPE BAPI_RE_PARTICIP_GRP_INTK-BUKRS ,
ld_et_particip_obj  TYPE BAPI_RE_T_PARTICIP_OBJ_INT ,
ld_id_swenr  TYPE BAPI_RE_PARTICIP_GRP_INTK-SWENR ,
ld_et_resubm_rule  TYPE BAPI_RE_T_RESUBM_RULE_INT ,
ld_id_pgid  TYPE BAPI_RE_PARTICIP_GRP_INTK-PGID ,
ld_et_resubm_date  TYPE BAPI_RE_T_RESUBM_DATE_INT ,
ld_id_objnr  TYPE RECAOBJNR ,
ld_et_status  TYPE BAPI_RE_T_STATUS_INT ,
ld_id_intreno  TYPE RECAINTRENO ,
ld_es_ci_data  TYPE RESC_PARTICIP_GROUP_CI ,
ld_io_object  TYPE OBJECT ,
ld_et_ext_data  TYPE RE_T_EXT_DATA ,
ld_id_detail_data_from  TYPE BAPI_RE_ADDITIONAL_FIELDS_INT-DETAILVALIDFROM ,
ld_id_detail_data_to  TYPE BAPI_RE_ADDITIONAL_FIELDS_INT-DETAILVALIDTO ,
ld_if_old_data  TYPE RECABOOL .


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_id_detail_data_from = 20210129

ld_id_detail_data_to = 20210129
ld_if_old_data = '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_GET_DETAIL or its description.