SAP TR_SORT_AND_COMPRESS_COMM Function Module for









TR_SORT_AND_COMPRESS_COMM is a standard tr sort and compress comm 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 tr sort and compress comm FM, simply by entering the name TR_SORT_AND_COMPRESS_COMM into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCTS_SORT
Program Name: SAPLSCTS_SORT
Main Program: SAPLSCTS_SORT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TR_SORT_AND_COMPRESS_COMM 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 'TR_SORT_AND_COMPRESS_COMM'"
EXPORTING
IV_TRKORR = "Request
* IV_DIALOG = ' ' "

IMPORTING
ES_REQUEST = "

EXCEPTIONS
TRKORR_NOT_FOUND = 1 ORDER_RELEASED = 2 ERROR_WHILE_MODIFYING_OBJ_LIST = 3 TR_ENQUEUE_FAILED = 4 NO_AUTHORIZATION = 5
.



IMPORTING Parameters details for TR_SORT_AND_COMPRESS_COMM

IV_TRKORR - Request

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

IV_DIALOG -

Data type: TRPARI-W_DIALOG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TR_SORT_AND_COMPRESS_COMM

ES_REQUEST -

Data type: TRWBO_REQUEST
Optional: No
Call by Reference: Yes

EXCEPTIONS details

TRKORR_NOT_FOUND -

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

ORDER_RELEASED -

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

ERROR_WHILE_MODIFYING_OBJ_LIST -

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

TR_ENQUEUE_FAILED -

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

NO_AUTHORIZATION -

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

Copy and paste ABAP code example for TR_SORT_AND_COMPRESS_COMM 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_iv_trkorr  TYPE E071-TRKORR, "   
lv_es_request  TYPE TRWBO_REQUEST, "   
lv_trkorr_not_found  TYPE TRWBO_REQUEST, "   
lv_iv_dialog  TYPE TRPARI-W_DIALOG, "   ' '
lv_order_released  TYPE TRPARI, "   
lv_error_while_modifying_obj_list  TYPE TRPARI, "   
lv_tr_enqueue_failed  TYPE TRPARI, "   
lv_no_authorization  TYPE TRPARI. "   

  CALL FUNCTION 'TR_SORT_AND_COMPRESS_COMM'  "
    EXPORTING
         IV_TRKORR = lv_iv_trkorr
         IV_DIALOG = lv_iv_dialog
    IMPORTING
         ES_REQUEST = lv_es_request
    EXCEPTIONS
        TRKORR_NOT_FOUND = 1
        ORDER_RELEASED = 2
        ERROR_WHILE_MODIFYING_OBJ_LIST = 3
        TR_ENQUEUE_FAILED = 4
        NO_AUTHORIZATION = 5
. " TR_SORT_AND_COMPRESS_COMM




ABAP code using 7.40 inline data declarations to call FM TR_SORT_AND_COMPRESS_COMM

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 TRKORR FROM E071 INTO @DATA(ld_iv_trkorr).
 
 
 
"SELECT single W_DIALOG FROM TRPARI INTO @DATA(ld_iv_dialog).
DATA(ld_iv_dialog) = ' '.
 
 
 
 
 


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!