SAP CO_MD_GET_SORTF Function Module for NOTRANSL: Eingabe Sortierfeld zu Komponente









CO_MD_GET_SORTF is a standard co md get sortf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Eingabe Sortierfeld zu Komponente processing and below is the pattern details for this FM, 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 co md get sortf FM, simply by entering the name CO_MD_GET_SORTF into the relevant SAP transaction such as SE37 or SE38.

Function Group: COMD
Program Name: SAPLCOMD
Main Program: SAPLCOMD
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CO_MD_GET_SORTF 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 'CO_MD_GET_SORTF'"NOTRANSL: Eingabe Sortierfeld zu Komponente
EXPORTING
AUTYP_IMP = "Order category

IMPORTING
SORTF_EXP = "Sort String
FILT_BGRP = "Selection indicator
FILT_SANFE = "Selection indicator
FILT_SANKO = "Selection indicator
FILT_ERSKZ = "Selection indicator
FILT_SANKA = "Selection indicator

EXCEPTIONS
ESCAPE = 1
.



IMPORTING Parameters details for CO_MD_GET_SORTF

AUTYP_IMP - Order category

Data type: AUFK-AUTYP
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CO_MD_GET_SORTF

SORTF_EXP - Sort String

Data type: RESBD-SORTF
Optional: No
Call by Reference: No ( called with pass by value option)

FILT_BGRP - Selection indicator

Data type: RC27X-FLG_SEL
Optional: No
Call by Reference: No ( called with pass by value option)

FILT_SANFE - Selection indicator

Data type: RC27X-FLG_SEL
Optional: No
Call by Reference: No ( called with pass by value option)

FILT_SANKO - Selection indicator

Data type: RC27X-FLG_SEL
Optional: No
Call by Reference: No ( called with pass by value option)

FILT_ERSKZ - Selection indicator

Data type: RC27X-FLG_SEL
Optional: No
Call by Reference: No ( called with pass by value option)

FILT_SANKA - Selection indicator

Data type: RC27X-FLG_SEL
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ESCAPE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CO_MD_GET_SORTF 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_escape  TYPE STRING, "   
lv_autyp_imp  TYPE AUFK-AUTYP, "   
lv_sortf_exp  TYPE RESBD-SORTF, "   
lv_filt_bgrp  TYPE RC27X-FLG_SEL, "   
lv_filt_sanfe  TYPE RC27X-FLG_SEL, "   
lv_filt_sanko  TYPE RC27X-FLG_SEL, "   
lv_filt_erskz  TYPE RC27X-FLG_SEL, "   
lv_filt_sanka  TYPE RC27X-FLG_SEL. "   

  CALL FUNCTION 'CO_MD_GET_SORTF'  "NOTRANSL: Eingabe Sortierfeld zu Komponente
    EXPORTING
         AUTYP_IMP = lv_autyp_imp
    IMPORTING
         SORTF_EXP = lv_sortf_exp
         FILT_BGRP = lv_filt_bgrp
         FILT_SANFE = lv_filt_sanfe
         FILT_SANKO = lv_filt_sanko
         FILT_ERSKZ = lv_filt_erskz
         FILT_SANKA = lv_filt_sanka
    EXCEPTIONS
        ESCAPE = 1
. " CO_MD_GET_SORTF




ABAP code using 7.40 inline data declarations to call FM CO_MD_GET_SORTF

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.

 
"SELECT single AUTYP FROM AUFK INTO @DATA(ld_autyp_imp).
 
"SELECT single SORTF FROM RESBD INTO @DATA(ld_sortf_exp).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_filt_bgrp).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_filt_sanfe).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_filt_sanko).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_filt_erskz).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_filt_sanka).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!