SAP Function Modules

RCP718_RCP_FIND_BY_PPV_CMD SAP Function module







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

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


Pattern for FM RCP718_RCP_FIND_BY_PPV_CMD - RCP718 RCP FIND BY PPV CMD





CALL FUNCTION 'RCP718_RCP_FIND_BY_PPV_CMD' "
  EXPORTING
    i_command =                 " esp12_extsea_cmdfunc_cmd_type
  IMPORTING
    e_flg_para_exist =          " esp1_boolean
  TABLES
    x_parameter_tab =           " tcgsgp
* CHANGING
*   x_additional_params =       " esp12_extsea_cmdfunc_type
  EXCEPTIONS
    UNKNOWN_COMMAND = 1         "
    .  "  RCP718_RCP_FIND_BY_PPV_CMD

ABAP code example for Function Module RCP718_RCP_FIND_BY_PPV_CMD





The ABAP code below is a full code listing to execute function module RCP718_RCP_FIND_BY_PPV_CMD 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_flg_para_exist  TYPE ESP1_BOOLEAN ,
it_x_parameter_tab  TYPE STANDARD TABLE OF TCGSGP,"TABLES PARAM
wa_x_parameter_tab  LIKE LINE OF it_x_parameter_tab .

DATA(ld_x_additional_params) = 'Check type of data required'.
DATA(ld_i_command) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_parameter_tab to it_x_parameter_tab. . CALL FUNCTION 'RCP718_RCP_FIND_BY_PPV_CMD' EXPORTING i_command = ld_i_command IMPORTING e_flg_para_exist = ld_e_flg_para_exist TABLES x_parameter_tab = it_x_parameter_tab * CHANGING * x_additional_params = ld_x_additional_params EXCEPTIONS UNKNOWN_COMMAND = 1 . " RCP718_RCP_FIND_BY_PPV_CMD
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_x_additional_params  TYPE ESP12_EXTSEA_CMDFUNC_TYPE ,
ld_e_flg_para_exist  TYPE ESP1_BOOLEAN ,
ld_i_command  TYPE ESP12_EXTSEA_CMDFUNC_CMD_TYPE ,
it_x_parameter_tab  TYPE STANDARD TABLE OF TCGSGP ,
wa_x_parameter_tab  LIKE LINE OF it_x_parameter_tab.

ld_x_additional_params = 'Check type of data required'.
ld_i_command = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_parameter_tab to it_x_parameter_tab.

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