SAP CRM_IST_WRITE_MSG_TO_BALLOG Function Module for Add messages to message protocol
CRM_IST_WRITE_MSG_TO_BALLOG is a standard crm ist write msg to ballog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Add messages to message protocol 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 crm ist write msg to ballog FM, simply by entering the name CRM_IST_WRITE_MSG_TO_BALLOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_IST_ORDER_TOOLS
Program Name: SAPLCRM_IST_ORDER_TOOLS
Main Program: SAPLCRM_IST_ORDER_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CRM_IST_WRITE_MSG_TO_BALLOG 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 'CRM_IST_WRITE_MSG_TO_BALLOG'"Add messages to message protocol.
EXPORTING
IP_APPLICATION_LOG = "Application Log: Log Handle
* IP_MSGTY = SY-MSGTY "Message Type
* IP_MSGID = SY-MSGID "Message Identification
* IP_MSGNO = SY-MSGNO "System message number
* IP_MSGV1 = SY-MSGV1 "Message Variable 01
* IP_MSGV2 = SY-MSGV2 "Message Variable 02
* IP_MSGV3 = SY-MSGV3 "Message Variable 03
* IP_MSGV4 = SY-MSGV4 "Message Variable 04
IMPORTING Parameters details for CRM_IST_WRITE_MSG_TO_BALLOG
IP_APPLICATION_LOG - Application Log: Log Handle
Data type: BALLOGHNDLOptional: No
Call by Reference: Yes
IP_MSGTY - Message Type
Data type: MSGTYDefault: SY-MSGTY
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_MSGID - Message Identification
Data type: MSGIDDefault: SY-MSGID
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_MSGNO - System message number
Data type: MSGNODefault: SY-MSGNO
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_MSGV1 - Message Variable 01
Data type: ANYDefault: SY-MSGV1
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_MSGV2 - Message Variable 02
Data type: ANYDefault: SY-MSGV2
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_MSGV3 - Message Variable 03
Data type: ANYDefault: SY-MSGV3
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_MSGV4 - Message Variable 04
Data type: ANYDefault: SY-MSGV4
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CRM_IST_WRITE_MSG_TO_BALLOG 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_ip_application_log | TYPE BALLOGHNDL, " | |||
lv_ip_msgty | TYPE MSGTY, " SY-MSGTY | |||
lv_ip_msgid | TYPE MSGID, " SY-MSGID | |||
lv_ip_msgno | TYPE MSGNO, " SY-MSGNO | |||
lv_ip_msgv1 | TYPE ANY, " SY-MSGV1 | |||
lv_ip_msgv2 | TYPE ANY, " SY-MSGV2 | |||
lv_ip_msgv3 | TYPE ANY, " SY-MSGV3 | |||
lv_ip_msgv4 | TYPE ANY. " SY-MSGV4 |
  CALL FUNCTION 'CRM_IST_WRITE_MSG_TO_BALLOG' "Add messages to message protocol |
EXPORTING | ||
IP_APPLICATION_LOG | = lv_ip_application_log | |
IP_MSGTY | = lv_ip_msgty | |
IP_MSGID | = lv_ip_msgid | |
IP_MSGNO | = lv_ip_msgno | |
IP_MSGV1 | = lv_ip_msgv1 | |
IP_MSGV2 | = lv_ip_msgv2 | |
IP_MSGV3 | = lv_ip_msgv3 | |
IP_MSGV4 | = lv_ip_msgv4 | |
. " CRM_IST_WRITE_MSG_TO_BALLOG |
ABAP code using 7.40 inline data declarations to call FM CRM_IST_WRITE_MSG_TO_BALLOG
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.DATA(ld_ip_msgty) | = SY-MSGTY. | |||
DATA(ld_ip_msgid) | = SY-MSGID. | |||
DATA(ld_ip_msgno) | = SY-MSGNO. | |||
DATA(ld_ip_msgv1) | = SY-MSGV1. | |||
DATA(ld_ip_msgv2) | = SY-MSGV2. | |||
DATA(ld_ip_msgv3) | = SY-MSGV3. | |||
DATA(ld_ip_msgv4) | = SY-MSGV4. | |||
Search for further information about these or an SAP related objects