SAP Function Modules

RDM_OPT_PROCESS_DC4STORE_RFC SAP Function module







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

Associated Function Group: RDM_OPT_PARALLEL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM RDM_OPT_PROCESS_DC4STORE_RFC - RDM OPT PROCESS DC4STORE RFC





CALL FUNCTION 'RDM_OPT_PROCESS_DC4STORE_RFC' "
  EXPORTING
    i_vkorg =                   " vkorg
    i_vtweg =                   " vtweg
    i_business_system =         " rdm_business_system
    i_werks =                   " werks_d
    ito_matnr_vrkme =           " rdm_to_matnr_vrkme
    i_package_size =            " rdm_package_size
  IMPORTING
    eth_message_info =          " rdm_th_message_info
    et_messages =               " bal_t_msg
  EXCEPTIONS
    WRONG_PARAMETERS = 1        "
    .  "  RDM_OPT_PROCESS_DC4STORE_RFC

ABAP code example for Function Module RDM_OPT_PROCESS_DC4STORE_RFC





The ABAP code below is a full code listing to execute function module RDM_OPT_PROCESS_DC4STORE_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_eth_message_info  TYPE RDM_TH_MESSAGE_INFO ,
ld_et_messages  TYPE BAL_T_MSG .

DATA(ld_i_vkorg) = 'Check type of data required'.
DATA(ld_i_vtweg) = 'Check type of data required'.
DATA(ld_i_business_system) = '20210129'.
DATA(ld_i_werks) = 'some text here'.
DATA(ld_ito_matnr_vrkme) = 'some text here'.
DATA(ld_i_package_size) = 'some text here'. . CALL FUNCTION 'RDM_OPT_PROCESS_DC4STORE_RFC' EXPORTING i_vkorg = ld_i_vkorg i_vtweg = ld_i_vtweg i_business_system = ld_i_business_system i_werks = ld_i_werks ito_matnr_vrkme = ld_ito_matnr_vrkme i_package_size = ld_i_package_size IMPORTING eth_message_info = ld_eth_message_info et_messages = ld_et_messages EXCEPTIONS WRONG_PARAMETERS = 1 . " RDM_OPT_PROCESS_DC4STORE_RFC
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_eth_message_info  TYPE RDM_TH_MESSAGE_INFO ,
ld_i_vkorg  TYPE VKORG ,
ld_et_messages  TYPE BAL_T_MSG ,
ld_i_vtweg  TYPE VTWEG ,
ld_i_business_system  TYPE RDM_BUSINESS_SYSTEM ,
ld_i_werks  TYPE WERKS_D ,
ld_ito_matnr_vrkme  TYPE RDM_TO_MATNR_VRKME ,
ld_i_package_size  TYPE RDM_PACKAGE_SIZE .

ld_i_vkorg = 'some text here'.
ld_i_vtweg = 'some text here'.
ld_i_business_system = '20210129'.
ld_i_werks = 'some text here'.
ld_ito_matnr_vrkme = 'some text here'.
ld_i_package_size = 'some text here'.

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