SAP /SDF/CMO_GET_BUFFER_LIST Function Module for Read unimported transports from buffer









/SDF/CMO_GET_BUFFER_LIST is a standard /sdf/cmo get buffer list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read unimported transports from buffer 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 /sdf/cmo get buffer list FM, simply by entering the name /SDF/CMO_GET_BUFFER_LIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SDF/CMO_COMP_REPOS
Program Name: /SDF/SAPLCMO_COMP_REPOS
Main Program: /SDF/SAPLCMO_COMP_REPOS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /SDF/CMO_GET_BUFFER_LIST 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 '/SDF/CMO_GET_BUFFER_LIST'"Read unimported transports from buffer
EXPORTING
* IV_BEGIN_DATE = "
* IV_END_DATE = "
* IV_SYSTEM = "

TABLES
* TT_BUFFER_ENTRIES = "
* TT_TRANSPORT_ERRORS = "
* TT_TRANSPORTS_TIME = "

EXCEPTIONS
TP_ERROR = 1 GET_DIR_NAMES_FAILED = 2 BUILD_TPPARAM_PATH_FAILED = 3 PERMISSION_DENIED = 4 OPEN_TPPARAM_FAILED = 5 BUFFER_IS_EMPTY = 6 TPPARAM_TOO_WIDE = 7
.



IMPORTING Parameters details for /SDF/CMO_GET_BUFFER_LIST

IV_BEGIN_DATE -

Data type: /SDF/CMO_E070-AS4DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_END_DATE -

Data type: /SDF/CMO_E070-AS4DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SYSTEM -

Data type: STPA-SYSNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /SDF/CMO_GET_BUFFER_LIST

TT_BUFFER_ENTRIES -

Data type: /SDF/CMO_TPBF_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_TRANSPORT_ERRORS -

Data type: /SDF/CMO_TRER_C
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_TRANSPORTS_TIME -

Data type: /SDF/CMO_COUNT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

TP_ERROR -

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

GET_DIR_NAMES_FAILED -

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

BUILD_TPPARAM_PATH_FAILED -

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

PERMISSION_DENIED -

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

OPEN_TPPARAM_FAILED -

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

BUFFER_IS_EMPTY -

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

TPPARAM_TOO_WIDE -

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

Copy and paste ABAP code example for /SDF/CMO_GET_BUFFER_LIST 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_tp_error  TYPE STRING, "   
lv_iv_begin_date  TYPE /SDF/CMO_E070-AS4DATE, "   
lt_tt_buffer_entries  TYPE STANDARD TABLE OF /SDF/CMO_TPBF_T, "   
lv_iv_end_date  TYPE /SDF/CMO_E070-AS4DATE, "   
lt_tt_transport_errors  TYPE STANDARD TABLE OF /SDF/CMO_TRER_C, "   
lv_get_dir_names_failed  TYPE /SDF/CMO_TRER_C, "   
lv_iv_system  TYPE STPA-SYSNAME, "   
lt_tt_transports_time  TYPE STANDARD TABLE OF /SDF/CMO_COUNT, "   
lv_build_tpparam_path_failed  TYPE /SDF/CMO_COUNT, "   
lv_permission_denied  TYPE /SDF/CMO_COUNT, "   
lv_open_tpparam_failed  TYPE /SDF/CMO_COUNT, "   
lv_buffer_is_empty  TYPE /SDF/CMO_COUNT, "   
lv_tpparam_too_wide  TYPE /SDF/CMO_COUNT. "   

  CALL FUNCTION '/SDF/CMO_GET_BUFFER_LIST'  "Read unimported transports from buffer
    EXPORTING
         IV_BEGIN_DATE = lv_iv_begin_date
         IV_END_DATE = lv_iv_end_date
         IV_SYSTEM = lv_iv_system
    TABLES
         TT_BUFFER_ENTRIES = lt_tt_buffer_entries
         TT_TRANSPORT_ERRORS = lt_tt_transport_errors
         TT_TRANSPORTS_TIME = lt_tt_transports_time
    EXCEPTIONS
        TP_ERROR = 1
        GET_DIR_NAMES_FAILED = 2
        BUILD_TPPARAM_PATH_FAILED = 3
        PERMISSION_DENIED = 4
        OPEN_TPPARAM_FAILED = 5
        BUFFER_IS_EMPTY = 6
        TPPARAM_TOO_WIDE = 7
. " /SDF/CMO_GET_BUFFER_LIST




ABAP code using 7.40 inline data declarations to call FM /SDF/CMO_GET_BUFFER_LIST

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 AS4DATE FROM /SDF/CMO_E070 INTO @DATA(ld_iv_begin_date).
 
 
"SELECT single AS4DATE FROM /SDF/CMO_E070 INTO @DATA(ld_iv_end_date).
 
 
 
"SELECT single SYSNAME FROM STPA INTO @DATA(ld_iv_system).
 
 
 
 
 
 
 


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!