SAP COM_PRODUCT_ADD_MESSAGE Function Module for









COM_PRODUCT_ADD_MESSAGE is a standard com product add message 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 com product add message FM, simply by entering the name COM_PRODUCT_ADD_MESSAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function COM_PRODUCT_ADD_MESSAGE 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 'COM_PRODUCT_ADD_MESSAGE'"
EXPORTING
IV_FELDNAME = "
* IV_LINENUMBER = "ABAP System Fields
* IV_PR_ORG_TYPE = "
* IV_PR_ORG_ID = "Identification of an organizational unit
* IV_PRWB_NAVIGATION = "
* IV_MULT_VAL_FLAG = "
* IS_MSG_PARAMS = "Application log: Parameters

IMPORTING
EV_LOGMSGH = "Application Log: Message handle
.



IMPORTING Parameters details for COM_PRODUCT_ADD_MESSAGE

IV_FELDNAME -

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

IV_LINENUMBER - ABAP System Fields

Data type:
Optional: Yes
Call by Reference: Yes

IV_PR_ORG_TYPE -

Data type: COMT_PR_ORG_TYPE
Optional: Yes
Call by Reference: Yes

IV_PR_ORG_ID - Identification of an organizational unit

Data type: COMT_PR_ORG_ID
Optional: Yes
Call by Reference: Yes

IV_PRWB_NAVIGATION -

Data type: BOOLEAN
Optional: Yes
Call by Reference: Yes

IV_MULT_VAL_FLAG -

Data type: COMT_MULTIVALUE
Optional: Yes
Call by Reference: Yes

IS_MSG_PARAMS - Application log: Parameters

Data type: BAL_S_PARM
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for COM_PRODUCT_ADD_MESSAGE

EV_LOGMSGH - Application Log: Message handle

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

Copy and paste ABAP code example for COM_PRODUCT_ADD_MESSAGE 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_ev_logmsgh  TYPE BALMSGHNDL, "   
lv_iv_feldname  TYPE COMT_PRWB_FIELDNAME, "   
lv_iv_linenumber  TYPE COMT_PRWB_FIELDNAME, "   
lv_iv_pr_org_type  TYPE COMT_PR_ORG_TYPE, "   
lv_iv_pr_org_id  TYPE COMT_PR_ORG_ID, "   
lv_iv_prwb_navigation  TYPE BOOLEAN, "   
lv_iv_mult_val_flag  TYPE COMT_MULTIVALUE, "   
lv_is_msg_params  TYPE BAL_S_PARM. "   

  CALL FUNCTION 'COM_PRODUCT_ADD_MESSAGE'  "
    EXPORTING
         IV_FELDNAME = lv_iv_feldname
         IV_LINENUMBER = lv_iv_linenumber
         IV_PR_ORG_TYPE = lv_iv_pr_org_type
         IV_PR_ORG_ID = lv_iv_pr_org_id
         IV_PRWB_NAVIGATION = lv_iv_prwb_navigation
         IV_MULT_VAL_FLAG = lv_iv_mult_val_flag
         IS_MSG_PARAMS = lv_is_msg_params
    IMPORTING
         EV_LOGMSGH = lv_ev_logmsgh
. " COM_PRODUCT_ADD_MESSAGE




ABAP code using 7.40 inline data declarations to call FM COM_PRODUCT_ADD_MESSAGE

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.

 
 
 
 
 
 
 
 


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!