SAP Function Modules

COM_FRGTYPE_READ_MULTIPLE SAP Function module







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

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


Pattern for FM COM_FRGTYPE_READ_MULTIPLE - COM FRGTYPE READ MULTIPLE





CALL FUNCTION 'COM_FRGTYPE_READ_MULTIPLE' "
  EXPORTING
    it_frgtype_guid =           " comt_frgtypeguid_tab  Product Set Type GUID
*   iv_with_text = 'X'          " comt_boolean  Read Text
*   iv_langu = SY-LANGU         " spras         Language Key
*   iv_item =                   " xfeld         Checkbox
*   iv_generated =              " xfeld         Checkbox
  IMPORTING
    et_frgtype =                " comt_frgtype_tab_ext
    et_frgtype_t =              " comt_frgtype_t_tab_ext
  EXCEPTIONS
    NOTHING_FOUND = 1           "
    .  "  COM_FRGTYPE_READ_MULTIPLE

ABAP code example for Function Module COM_FRGTYPE_READ_MULTIPLE





The ABAP code below is a full code listing to execute function module COM_FRGTYPE_READ_MULTIPLE 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_et_frgtype  TYPE COMT_FRGTYPE_TAB_EXT ,
ld_et_frgtype_t  TYPE COMT_FRGTYPE_T_TAB_EXT .

DATA(ld_it_frgtype_guid) = 'Check type of data required'.
DATA(ld_iv_with_text) = 'Check type of data required'.
DATA(ld_iv_langu) = 'Check type of data required'.
DATA(ld_iv_item) = 'Check type of data required'.
DATA(ld_iv_generated) = 'Check type of data required'. . CALL FUNCTION 'COM_FRGTYPE_READ_MULTIPLE' EXPORTING it_frgtype_guid = ld_it_frgtype_guid * iv_with_text = ld_iv_with_text * iv_langu = ld_iv_langu * iv_item = ld_iv_item * iv_generated = ld_iv_generated IMPORTING et_frgtype = ld_et_frgtype et_frgtype_t = ld_et_frgtype_t EXCEPTIONS NOTHING_FOUND = 1 . " COM_FRGTYPE_READ_MULTIPLE
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_et_frgtype  TYPE COMT_FRGTYPE_TAB_EXT ,
ld_it_frgtype_guid  TYPE COMT_FRGTYPEGUID_TAB ,
ld_et_frgtype_t  TYPE COMT_FRGTYPE_T_TAB_EXT ,
ld_iv_with_text  TYPE COMT_BOOLEAN ,
ld_iv_langu  TYPE SPRAS ,
ld_iv_item  TYPE XFELD ,
ld_iv_generated  TYPE XFELD .

ld_it_frgtype_guid = 'Check type of data required'.
ld_iv_with_text = 'Check type of data required'.
ld_iv_langu = 'Check type of data required'.
ld_iv_item = 'Check type of data required'.
ld_iv_generated = '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 COM_FRGTYPE_READ_MULTIPLE or its description.