SAP /ISDFPS/151EHS_IAL_CREATE Function Module for









/ISDFPS/151EHS_IAL_CREATE is a standard /isdfps/151ehs ial create 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 /isdfps/151ehs ial create FM, simply by entering the name /ISDFPS/151EHS_IAL_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ISDFPS/ME_EHS_IAL
Program Name: /ISDFPS/SAPLME_EHS_IAL
Main Program: /ISDFPS/SAPLME_EHS_IAL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /ISDFPS/151EHS_IAL_CREATE 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 '/ISDFPS/151EHS_IAL_CREATE'"
EXPORTING
IALHEAD = "MI: EHS: Structure for Incident/Accident Log Entry Hdr Data
* MESSAGE_ID = "
* DEVICE_SENDER_ID = "
* IS_RESTART_MSG = "
* EXTRACT_KEY = "

IMPORTING
IALID = "Incident/Accident Log Entry

TABLES
RETURN = "Return Parameter(s)
* INVPERSONS = "
* IALTEXTS = "MI: EHS: Accident Report - User-Defined Texts
* LONGTEXT = "
.



IMPORTING Parameters details for /ISDFPS/151EHS_IAL_CREATE

IALHEAD - MI: EHS: Structure for Incident/Accident Log Entry Hdr Data

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

MESSAGE_ID -

Data type: /ISDFPS/ME_BE_ADAPTER_ATTR-MESSAGE_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEVICE_SENDER_ID -

Data type: /ISDFPS/ME_BE_ADAPTER_ATTR-DEVICE_SENDER_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_RESTART_MSG -

Data type: /ISDFPS/ME_BE_ADAPTER_ATTR-IS_RESTART_MSG
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTRACT_KEY -

Data type: /ISDFPS/ME_BE_ADAPTER_ATTR-EXTRACT_KEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for /ISDFPS/151EHS_IAL_CREATE

IALID - Incident/Accident Log Entry

Data type: /ISDFPS/ME_EHS_IAL_HEADER-INCIDENT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /ISDFPS/151EHS_IAL_CREATE

RETURN - Return Parameter(s)

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

INVPERSONS -

Data type: /ISDFPS/151EHS_IAL_INVPERSONS
Optional: Yes
Call by Reference: Yes

IALTEXTS - MI: EHS: Accident Report - User-Defined Texts

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

LONGTEXT -

Data type: /ISDFPS/ME_EHS_LONGTEXT
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for /ISDFPS/151EHS_IAL_CREATE 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_ialid  TYPE /ISDFPS/ME_EHS_IAL_HEADER-INCIDENT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_ialhead  TYPE /ISDFPS/ME_EHS_IAL_HEADER, "   
lt_invpersons  TYPE STANDARD TABLE OF /ISDFPS/151EHS_IAL_INVPERSONS, "   
lv_message_id  TYPE /ISDFPS/ME_BE_ADAPTER_ATTR-MESSAGE_ID, "   
lt_ialtexts  TYPE STANDARD TABLE OF /ISDFPS/ME_EHS_IAL_IALTEXTS, "   
lv_device_sender_id  TYPE /ISDFPS/ME_BE_ADAPTER_ATTR-DEVICE_SENDER_ID, "   
lt_longtext  TYPE STANDARD TABLE OF /ISDFPS/ME_EHS_LONGTEXT, "   
lv_is_restart_msg  TYPE /ISDFPS/ME_BE_ADAPTER_ATTR-IS_RESTART_MSG, "   
lv_extract_key  TYPE /ISDFPS/ME_BE_ADAPTER_ATTR-EXTRACT_KEY. "   

  CALL FUNCTION '/ISDFPS/151EHS_IAL_CREATE'  "
    EXPORTING
         IALHEAD = lv_ialhead
         MESSAGE_ID = lv_message_id
         DEVICE_SENDER_ID = lv_device_sender_id
         IS_RESTART_MSG = lv_is_restart_msg
         EXTRACT_KEY = lv_extract_key
    IMPORTING
         IALID = lv_ialid
    TABLES
         RETURN = lt_return
         INVPERSONS = lt_invpersons
         IALTEXTS = lt_ialtexts
         LONGTEXT = lt_longtext
. " /ISDFPS/151EHS_IAL_CREATE




ABAP code using 7.40 inline data declarations to call FM /ISDFPS/151EHS_IAL_CREATE

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 INCIDENT FROM /ISDFPS/ME_EHS_IAL_HEADER INTO @DATA(ld_ialid).
 
 
 
 
"SELECT single MESSAGE_ID FROM /ISDFPS/ME_BE_ADAPTER_ATTR INTO @DATA(ld_message_id).
 
 
"SELECT single DEVICE_SENDER_ID FROM /ISDFPS/ME_BE_ADAPTER_ATTR INTO @DATA(ld_device_sender_id).
 
 
"SELECT single IS_RESTART_MSG FROM /ISDFPS/ME_BE_ADAPTER_ATTR INTO @DATA(ld_is_restart_msg).
 
"SELECT single EXTRACT_KEY FROM /ISDFPS/ME_BE_ADAPTER_ATTR INTO @DATA(ld_extract_key).
 


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!