SAP Function Modules

FRML710_FRML_FIND_BY_COMP_CMD SAP Function module







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

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


Pattern for FM FRML710_FRML_FIND_BY_COMP_CMD - FRML710 FRML FIND BY COMP CMD





CALL FUNCTION 'FRML710_FRML_FIND_BY_COMP_CMD' "
  EXPORTING
    i_command =                 " esp12_extsea_cmdfunc_cmd_type  Command to Be Executed (Compare Type Group ESP12)
*   i_objtype =                 " tcgobj-objtype  Specification Category
  IMPORTING
    e_flg_para_exist =          " esp1_boolean  Indicator: Search Criteria Exist (After RESTORE)
  TABLES
    x_parameter_tab =           " tcgsgp        Search Criteria
* CHANGING
*   x_additional_params =       " esp12_extsea_cmdfunc_type  Additional Parameters
  EXCEPTIONS
    UNKNOWN_COMMAND = 1         "               Command Not Supported
    .  "  FRML710_FRML_FIND_BY_COMP_CMD

ABAP code example for Function Module FRML710_FRML_FIND_BY_COMP_CMD





The ABAP code below is a full code listing to execute function module FRML710_FRML_FIND_BY_COMP_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'.

SELECT single OBJTYPE
FROM TCGOBJ
INTO @DATA(ld_i_objtype).


"populate fields of struture and append to itab
append wa_x_parameter_tab to it_x_parameter_tab. . CALL FUNCTION 'FRML710_FRML_FIND_BY_COMP_CMD' EXPORTING i_command = ld_i_command * i_objtype = ld_i_objtype 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 . " FRML710_FRML_FIND_BY_COMP_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_i_objtype  TYPE TCGOBJ-OBJTYPE .

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.

SELECT single OBJTYPE
FROM TCGOBJ
INTO ld_i_objtype.

SAP Documentation for FM FRML710_FRML_FIND_BY_COMP_CMD


This function serves to convert user actions (commands) for the search function Formula Contains Ingredient... ( ...See here for full SAP fm documentation


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