SAP Function Modules

BBP_LA_MSG_MESSAGE_CREATE SAP Function module - create a row in db table BBPD_LA_MESSAGE







BBP_LA_MSG_MESSAGE_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BBP_LA_MSG_MESSAGE_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_LA_MSG
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BBP_LA_MSG_MESSAGE_CREATE - BBP LA MSG MESSAGE CREATE





CALL FUNCTION 'BBP_LA_MSG_MESSAGE_CREATE' "create a row in db table BBPD_LA_MESSAGE
  EXPORTING
*   i_reference_guid =          " bbpd_la_message-reference_guid  GUID of the relevant BBPD_LA_xx db table
    i_message_type =            " bbpd_la_message-message_type  message type
*   i_msgty =                   " bbpd_la_message-msgty  Message type: S Success, E Error, W Warning, I Info, A Abort
*   i_msgid =                   " bbpd_la_message-msgid  Messages, Message Class
*   i_msgno =                   " bbpd_la_message-msgno  Messages, Message Number
*   i_message =                 " bbpd_la_message-message  Message Text
*   i_msgv1 =                   " bbpd_la_message-msgv1  Messages, message variables
*   i_msgv2 =                   " bbpd_la_message-msgv2  Messages, message variables
    i_timestamp =               " bbpd_la_message-changed_at  UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    i_timezone =                " bbpd_la_message-tzone  Time zone
*   i_use_updatetask =          " char1         Single-Character Flag
  TABLES
    it_client_guid =            " bbp_guid_tab  Table of GUIDs
    .  "  BBP_LA_MSG_MESSAGE_CREATE

ABAP code example for Function Module BBP_LA_MSG_MESSAGE_CREATE





The ABAP code below is a full code listing to execute function module BBP_LA_MSG_MESSAGE_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_it_client_guid  TYPE STANDARD TABLE OF BBP_GUID_TAB,"TABLES PARAM
wa_it_client_guid  LIKE LINE OF it_it_client_guid .


SELECT single REFERENCE_GUID
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_reference_guid).


SELECT single MESSAGE_TYPE
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_message_type).


SELECT single MSGTY
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_msgty).


SELECT single MSGID
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_msgid).


SELECT single MSGNO
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_msgno).


SELECT single MESSAGE
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_message).


SELECT single MSGV1
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_msgv1).


SELECT single MSGV2
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_msgv2).


SELECT single CHANGED_AT
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_timestamp).


SELECT single TZONE
FROM BBPD_LA_MESSAGE
INTO @DATA(ld_i_timezone).

DATA(ld_i_use_updatetask) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_client_guid to it_it_client_guid. . CALL FUNCTION 'BBP_LA_MSG_MESSAGE_CREATE' EXPORTING * i_reference_guid = ld_i_reference_guid i_message_type = ld_i_message_type * i_msgty = ld_i_msgty * i_msgid = ld_i_msgid * i_msgno = ld_i_msgno * i_message = ld_i_message * i_msgv1 = ld_i_msgv1 * i_msgv2 = ld_i_msgv2 i_timestamp = ld_i_timestamp i_timezone = ld_i_timezone * i_use_updatetask = ld_i_use_updatetask TABLES it_client_guid = it_it_client_guid . " BBP_LA_MSG_MESSAGE_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_reference_guid  TYPE BBPD_LA_MESSAGE-REFERENCE_GUID ,
it_it_client_guid  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_it_client_guid  LIKE LINE OF it_it_client_guid,
ld_i_message_type  TYPE BBPD_LA_MESSAGE-MESSAGE_TYPE ,
ld_i_msgty  TYPE BBPD_LA_MESSAGE-MSGTY ,
ld_i_msgid  TYPE BBPD_LA_MESSAGE-MSGID ,
ld_i_msgno  TYPE BBPD_LA_MESSAGE-MSGNO ,
ld_i_message  TYPE BBPD_LA_MESSAGE-MESSAGE ,
ld_i_msgv1  TYPE BBPD_LA_MESSAGE-MSGV1 ,
ld_i_msgv2  TYPE BBPD_LA_MESSAGE-MSGV2 ,
ld_i_timestamp  TYPE BBPD_LA_MESSAGE-CHANGED_AT ,
ld_i_timezone  TYPE BBPD_LA_MESSAGE-TZONE ,
ld_i_use_updatetask  TYPE CHAR1 .


SELECT single REFERENCE_GUID
FROM BBPD_LA_MESSAGE
INTO ld_i_reference_guid.


"populate fields of struture and append to itab
append wa_it_client_guid to it_it_client_guid.

SELECT single MESSAGE_TYPE
FROM BBPD_LA_MESSAGE
INTO ld_i_message_type.


SELECT single MSGTY
FROM BBPD_LA_MESSAGE
INTO ld_i_msgty.


SELECT single MSGID
FROM BBPD_LA_MESSAGE
INTO ld_i_msgid.


SELECT single MSGNO
FROM BBPD_LA_MESSAGE
INTO ld_i_msgno.


SELECT single MESSAGE
FROM BBPD_LA_MESSAGE
INTO ld_i_message.


SELECT single MSGV1
FROM BBPD_LA_MESSAGE
INTO ld_i_msgv1.


SELECT single MSGV2
FROM BBPD_LA_MESSAGE
INTO ld_i_msgv2.


SELECT single CHANGED_AT
FROM BBPD_LA_MESSAGE
INTO ld_i_timestamp.


SELECT single TZONE
FROM BBPD_LA_MESSAGE
INTO ld_i_timezone.

ld_i_use_updatetask = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BBP_LA_MSG_MESSAGE_CREATE or its description.