SAP CNLS_AT_OBJEKT_USER_COMMAND Function Module for NOTRANSL: Projekt-Infosystem: Liste anzeigen (mit OK-Code-Verarbeitung)
CNLS_AT_OBJEKT_USER_COMMAND is a standard cnls at objekt user command 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: Projekt-Infosystem: Liste anzeigen (mit OK-Code-Verarbeitung) 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 cnls at objekt user command FM, simply by entering the name CNLS_AT_OBJEKT_USER_COMMAND into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNLS
Program Name: SAPLCNLS
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNLS_AT_OBJEKT_USER_COMMAND 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 'CNLS_AT_OBJEKT_USER_COMMAND'"NOTRANSL: Projekt-Infosystem: Liste anzeigen (mit OK-Code-Verarbeitung).
EXPORTING
I_MCINF_TAB = "Table Name
* I_USERCOMMAND = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_USERCOMMAND = "DE-EN-LANG-SWITCH-NO-TRANSLATION
CHANGING
* SUM_REST = "Remainder line
MAX_FIELDS = "
SUM_FIELDS = "
UNITS = "
SUM_UNITS = "
TABLES
AUS_S000 = "Output Table
INT_S000 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
SUM_S000 = "Totals Table
PUFFERTAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
XXL_DATA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
CALL_WITHOUT_INITIALIZATION = 1
IMPORTING Parameters details for CNLS_AT_OBJEKT_USER_COMMAND
I_MCINF_TAB - Table Name
Data type: DFIES-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_USERCOMMAND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CNLS_AT_OBJEKT_USER_COMMAND
E_USERCOMMAND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CNLS_AT_OBJEKT_USER_COMMAND
SUM_REST - Remainder line
Data type:Optional: Yes
Call by Reference: Yes
MAX_FIELDS -
Data type:Optional: No
Call by Reference: Yes
SUM_FIELDS -
Data type:Optional: No
Call by Reference: Yes
UNITS -
Data type:Optional: No
Call by Reference: Yes
SUM_UNITS -
Data type:Optional: No
Call by Reference: Yes
TABLES Parameters details for CNLS_AT_OBJEKT_USER_COMMAND
AUS_S000 - Output Table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INT_S000 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SUM_S000 - Totals Table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PUFFERTAB - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
XXL_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CALL_WITHOUT_INITIALIZATION - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNLS_AT_OBJEKT_USER_COMMAND 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: | ||||
| lt_aus_s000 | TYPE STANDARD TABLE OF STRING, " | |||
| lv_sum_rest | TYPE STRING, " | |||
| lv_i_mcinf_tab | TYPE DFIES-TABNAME, " | |||
| lv_e_usercommand | TYPE DFIES, " | |||
| lv_call_without_initialization | TYPE DFIES, " | |||
| lt_int_s000 | TYPE STANDARD TABLE OF DFIES, " | |||
| lv_max_fields | TYPE DFIES, " | |||
| lv_i_usercommand | TYPE DFIES, " | |||
| lt_sum_s000 | TYPE STANDARD TABLE OF DFIES, " | |||
| lv_sum_fields | TYPE DFIES, " | |||
| lv_units | TYPE DFIES, " | |||
| lt_puffertab | TYPE STANDARD TABLE OF DFIES, " | |||
| lt_xxl_data | TYPE STANDARD TABLE OF DFIES, " | |||
| lv_sum_units | TYPE DFIES. " |
|   CALL FUNCTION 'CNLS_AT_OBJEKT_USER_COMMAND' "NOTRANSL: Projekt-Infosystem: Liste anzeigen (mit OK-Code-Verarbeitung) |
| EXPORTING | ||
| I_MCINF_TAB | = lv_i_mcinf_tab | |
| I_USERCOMMAND | = lv_i_usercommand | |
| IMPORTING | ||
| E_USERCOMMAND | = lv_e_usercommand | |
| CHANGING | ||
| SUM_REST | = lv_sum_rest | |
| MAX_FIELDS | = lv_max_fields | |
| SUM_FIELDS | = lv_sum_fields | |
| UNITS | = lv_units | |
| SUM_UNITS | = lv_sum_units | |
| TABLES | ||
| AUS_S000 | = lt_aus_s000 | |
| INT_S000 | = lt_int_s000 | |
| SUM_S000 | = lt_sum_s000 | |
| PUFFERTAB | = lt_puffertab | |
| XXL_DATA | = lt_xxl_data | |
| EXCEPTIONS | ||
| CALL_WITHOUT_INITIALIZATION = 1 | ||
| . " CNLS_AT_OBJEKT_USER_COMMAND | ||
ABAP code using 7.40 inline data declarations to call FM CNLS_AT_OBJEKT_USER_COMMAND
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 TABNAME FROM DFIES INTO @DATA(ld_i_mcinf_tab). | ||||
Search for further information about these or an SAP related objects