SAP Function Modules

RSCRM_MEMBERS_F4_RFC SAP Function module







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

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


Pattern for FM RSCRM_MEMBERS_F4_RFC - RSCRM MEMBERS F4 RFC





CALL FUNCTION 'RSCRM_MEMBERS_F4_RFC' "
  EXPORTING
*   i_infocube =                " rsd_infocube
    i_chanm =                   " rsd_chanm
*   i_dateto = SY-DATUM         " rsd_dateto
*   i_f4_mode = 'M'             " rscrmbool
*   i_no_dialogue = RS_C_FALSE  " rs_bool
*   i_title =                   " dd04v-ddtext
*   i_multiple_choice = RS_C_FALSE  " rs_bool
*   i_t_req_atr =               " rsdm_t_req_atr
*   i_hienm =                   " rshiedir-hienm
*   i_version =                 " rshiedir-version
  IMPORTING
    e_t_chavt =                 " rsdm_t_chavt
    e_t_nodet =                 " rsdm_t_nodet
    e_tx_attribute =            " rsdm_tx_shlpreturn
    e_t_attribute =             " rssem_yt_chavl
    e_t_return =                " bapiret2_t
    e_cancelled =               " rs_bool
* CHANGING
*   c_t_shlpselopt =            " rsdm_t_shlpselopt
  EXCEPTIONS
    ILLEGAL_INFOOBJECT = 1      "
    NO_F4_AVAILABLE = 2         "
    DIALOGUE_CANCELED = 3       "
    NO_VALUES_AVAILABLE = 4     "
    ILLEGAL_INPUT = 5           "
    INHERITED_ERROR = 6         "
    .  "  RSCRM_MEMBERS_F4_RFC

ABAP code example for Function Module RSCRM_MEMBERS_F4_RFC





The ABAP code below is a full code listing to execute function module RSCRM_MEMBERS_F4_RFC 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_e_t_chavt  TYPE RSDM_T_CHAVT ,
ld_e_t_nodet  TYPE RSDM_T_NODET ,
ld_e_tx_attribute  TYPE RSDM_TX_SHLPRETURN ,
ld_e_t_attribute  TYPE RSSEM_YT_CHAVL ,
ld_e_t_return  TYPE BAPIRET2_T ,
ld_e_cancelled  TYPE RS_BOOL .

DATA(ld_c_t_shlpselopt) = 'Check type of data required'.
DATA(ld_i_infocube) = 'Check type of data required'.
DATA(ld_i_chanm) = 'Check type of data required'.
DATA(ld_i_dateto) = 'Check type of data required'.
DATA(ld_i_f4_mode) = 'Check type of data required'.
DATA(ld_i_no_dialogue) = 'Check type of data required'.

SELECT single DDTEXT
FROM DD04V
INTO @DATA(ld_i_title).

DATA(ld_i_multiple_choice) = 'Check type of data required'.
DATA(ld_i_t_req_atr) = 'Check type of data required'.

SELECT single HIENM
FROM RSHIEDIR
INTO @DATA(ld_i_hienm).


SELECT single VERSION
FROM RSHIEDIR
INTO @DATA(ld_i_version).
. CALL FUNCTION 'RSCRM_MEMBERS_F4_RFC' EXPORTING * i_infocube = ld_i_infocube i_chanm = ld_i_chanm * i_dateto = ld_i_dateto * i_f4_mode = ld_i_f4_mode * i_no_dialogue = ld_i_no_dialogue * i_title = ld_i_title * i_multiple_choice = ld_i_multiple_choice * i_t_req_atr = ld_i_t_req_atr * i_hienm = ld_i_hienm * i_version = ld_i_version IMPORTING e_t_chavt = ld_e_t_chavt e_t_nodet = ld_e_t_nodet e_tx_attribute = ld_e_tx_attribute e_t_attribute = ld_e_t_attribute e_t_return = ld_e_t_return e_cancelled = ld_e_cancelled * CHANGING * c_t_shlpselopt = ld_c_t_shlpselopt EXCEPTIONS ILLEGAL_INFOOBJECT = 1 NO_F4_AVAILABLE = 2 DIALOGUE_CANCELED = 3 NO_VALUES_AVAILABLE = 4 ILLEGAL_INPUT = 5 INHERITED_ERROR = 6 . " RSCRM_MEMBERS_F4_RFC
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "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_c_t_shlpselopt  TYPE RSDM_T_SHLPSELOPT ,
ld_e_t_chavt  TYPE RSDM_T_CHAVT ,
ld_i_infocube  TYPE RSD_INFOCUBE ,
ld_e_t_nodet  TYPE RSDM_T_NODET ,
ld_i_chanm  TYPE RSD_CHANM ,
ld_e_tx_attribute  TYPE RSDM_TX_SHLPRETURN ,
ld_i_dateto  TYPE RSD_DATETO ,
ld_e_t_attribute  TYPE RSSEM_YT_CHAVL ,
ld_i_f4_mode  TYPE RSCRMBOOL ,
ld_i_no_dialogue  TYPE RS_BOOL ,
ld_e_t_return  TYPE BAPIRET2_T ,
ld_i_title  TYPE DD04V-DDTEXT ,
ld_e_cancelled  TYPE RS_BOOL ,
ld_i_multiple_choice  TYPE RS_BOOL ,
ld_i_t_req_atr  TYPE RSDM_T_REQ_ATR ,
ld_i_hienm  TYPE RSHIEDIR-HIENM ,
ld_i_version  TYPE RSHIEDIR-VERSION .

ld_c_t_shlpselopt = 'Check type of data required'.
ld_i_infocube = 'Check type of data required'.
ld_i_chanm = 'Check type of data required'.
ld_i_dateto = 'Check type of data required'.
ld_i_f4_mode = 'Check type of data required'.
ld_i_no_dialogue = 'Check type of data required'.

SELECT single DDTEXT
FROM DD04V
INTO ld_i_title.

ld_i_multiple_choice = 'Check type of data required'.
ld_i_t_req_atr = 'Check type of data required'.

SELECT single HIENM
FROM RSHIEDIR
INTO ld_i_hienm.


SELECT single VERSION
FROM RSHIEDIR
INTO ld_i_version.

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 RSCRM_MEMBERS_F4_RFC or its description.