SAP COM_FRGTYPE_READ_SINGLE Function Module for
COM_FRGTYPE_READ_SINGLE is a standard com frgtype read single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for com frgtype read single FM, simply by entering the name COM_FRGTYPE_READ_SINGLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: COM_SETTYPE_OBJ
Program Name: SAPLCOM_SETTYPE_OBJ
Main Program: SAPLCOM_SETTYPE_OBJ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function COM_FRGTYPE_READ_SINGLE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'COM_FRGTYPE_READ_SINGLE'".
EXPORTING
* IV_FRGTYPE_GUID = "
* IV_FRGTYPE_ID = "Set Type
* IV_LANGU = SY-LANGU "Language Key
* IV_WITH_TEXT = ' ' "Checkbox
* IV_ITEM = ' ' "
IMPORTING
ES_FRGTYPE = "Set type
ES_FRGTYPE_T = "Set Type Text
EXCEPTIONS
NOT_FOUND = 1 NO_IMPORT_VALUES = 2 NO_TEXT_FOUND = 3
IMPORTING Parameters details for COM_FRGTYPE_READ_SINGLE
IV_FRGTYPE_GUID -
Data type: COMT_FRGTYPE_GUIDOptional: Yes
Call by Reference: Yes
IV_FRGTYPE_ID - Set Type
Data type: COMT_FRGTYPE_IDOptional: Yes
Call by Reference: Yes
IV_LANGU - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
IV_WITH_TEXT - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_ITEM -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for COM_FRGTYPE_READ_SINGLE
ES_FRGTYPE - Set type
Data type: COMM_FRGTYPE_EXTOptional: No
Call by Reference: Yes
ES_FRGTYPE_T - Set Type Text
Data type: COMT_FRGTYPE_T_EXTOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_IMPORT_VALUES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TEXT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for COM_FRGTYPE_READ_SINGLE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_not_found | TYPE STRING, " | |||
lv_es_frgtype | TYPE COMM_FRGTYPE_EXT, " | |||
lv_iv_frgtype_guid | TYPE COMT_FRGTYPE_GUID, " | |||
lv_es_frgtype_t | TYPE COMT_FRGTYPE_T_EXT, " | |||
lv_iv_frgtype_id | TYPE COMT_FRGTYPE_ID, " | |||
lv_no_import_values | TYPE COMT_FRGTYPE_ID, " | |||
lv_iv_langu | TYPE SPRAS, " SY-LANGU | |||
lv_no_text_found | TYPE SPRAS, " | |||
lv_iv_with_text | TYPE XFELD, " SPACE | |||
lv_iv_item | TYPE XFELD. " SPACE |
  CALL FUNCTION 'COM_FRGTYPE_READ_SINGLE' " |
EXPORTING | ||
IV_FRGTYPE_GUID | = lv_iv_frgtype_guid | |
IV_FRGTYPE_ID | = lv_iv_frgtype_id | |
IV_LANGU | = lv_iv_langu | |
IV_WITH_TEXT | = lv_iv_with_text | |
IV_ITEM | = lv_iv_item | |
IMPORTING | ||
ES_FRGTYPE | = lv_es_frgtype | |
ES_FRGTYPE_T | = lv_es_frgtype_t | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
NO_IMPORT_VALUES = 2 | ||
NO_TEXT_FOUND = 3 | ||
. " COM_FRGTYPE_READ_SINGLE |
ABAP code using 7.40 inline data declarations to call FM COM_FRGTYPE_READ_SINGLE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.DATA(ld_iv_langu) | = SY-LANGU. | |||
DATA(ld_iv_with_text) | = ' '. | |||
DATA(ld_iv_item) | = ' '. | |||
Search for further information about these or an SAP related objects