SAP COMH_PROCESS_MESSAGE_CHARS Function Module for NOTRANSL: Meldungsmerkmale Anzeigen bzw. Bearbeiten









COMH_PROCESS_MESSAGE_CHARS is a standard comh process message chars 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: Meldungsmerkmale Anzeigen bzw. Bearbeiten 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 comh process message chars FM, simply by entering the name COMH_PROCESS_MESSAGE_CHARS into the relevant SAP transaction such as SE37 or SE38.

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



Function COMH_PROCESS_MESSAGE_CHARS 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 'COMH_PROCESS_MESSAGE_CHARS'"NOTRANSL: Meldungsmerkmale Anzeigen bzw. Bearbeiten
EXPORTING
I_MODUS = "Change mode
I_SCREEN_TITLE = "GUI title

IMPORTING
E_OK_CODE = "Function executed most recently

TABLES
I_COMH_TAB = "Message headers
I_COME_TAB = "Message characteristics
* X_COMH_TAB = "Headers of changed messages
* X_COME_TAB = "Message characteristics after changing message

EXCEPTIONS
CHAR_NOT_VALID = 1 DDB_ERROR = 2
.



IMPORTING Parameters details for COMH_PROCESS_MESSAGE_CHARS

I_MODUS - Change mode

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

I_SCREEN_TITLE - GUI title

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

EXPORTING Parameters details for COMH_PROCESS_MESSAGE_CHARS

E_OK_CODE - Function executed most recently

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

TABLES Parameters details for COMH_PROCESS_MESSAGE_CHARS

I_COMH_TAB - Message headers

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

I_COME_TAB - Message characteristics

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

X_COMH_TAB - Headers of changed messages

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

X_COME_TAB - Message characteristics after changing message

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

EXCEPTIONS details

CHAR_NOT_VALID - Error when accessing characteristic data

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

DDB_ERROR - Error in dynamic data base (characteristic syst.)

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

Copy and paste ABAP code example for COMH_PROCESS_MESSAGE_CHARS 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_i_modus  TYPE C, "   
lv_e_ok_code  TYPE RSEU1-FUNC, "   
lt_i_comh_tab  TYPE STANDARD TABLE OF COMH, "   
lv_char_not_valid  TYPE COMH, "   
lv_ddb_error  TYPE COMH, "   
lt_i_come_tab  TYPE STANDARD TABLE OF COME, "   
lv_i_screen_title  TYPE RSEU1-TIT_CODE, "   
lt_x_comh_tab  TYPE STANDARD TABLE OF RCOMH, "   
lt_x_come_tab  TYPE STANDARD TABLE OF RCOME. "   

  CALL FUNCTION 'COMH_PROCESS_MESSAGE_CHARS'  "NOTRANSL: Meldungsmerkmale Anzeigen bzw. Bearbeiten
    EXPORTING
         I_MODUS = lv_i_modus
         I_SCREEN_TITLE = lv_i_screen_title
    IMPORTING
         E_OK_CODE = lv_e_ok_code
    TABLES
         I_COMH_TAB = lt_i_comh_tab
         I_COME_TAB = lt_i_come_tab
         X_COMH_TAB = lt_x_comh_tab
         X_COME_TAB = lt_x_come_tab
    EXCEPTIONS
        CHAR_NOT_VALID = 1
        DDB_ERROR = 2
. " COMH_PROCESS_MESSAGE_CHARS




ABAP code using 7.40 inline data declarations to call FM COMH_PROCESS_MESSAGE_CHARS

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 FUNC FROM RSEU1 INTO @DATA(ld_e_ok_code).
 
 
 
 
 
"SELECT single TIT_CODE FROM RSEU1 INTO @DATA(ld_i_screen_title).
 
 
 


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!