SAP EHSWA_143_MN_CREATE Function Module for









EHSWA_143_MN_CREATE is a standard ehswa 143 mn 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 ehswa 143 mn create FM, simply by entering the name EHSWA_143_MN_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function EHSWA_143_MN_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 'EHSWA_143_MN_CREATE'"
EXPORTING
* I_FLG_WITH_DIALOG = ESP1_FALSE "
* I_FLG_WITH_ENFOD_UPD = ESP1_FALSE "
* I_FLG_WITH_ENPRT_UPD = ESP1_FALSE "
* I_FLG_PRINT = ESP1_FALSE "
* I_FLG_WITH_PARTNER = ESP1_FALSE "

IMPORTING
E_FLG_ERROR = "
E_WASTEMANIFEST = "

TABLES
IT_WASTE = "
IT_PARTNER = "
ET_RETURN = "

EXCEPTIONS
NO_PARAMETER = 1 INTERNAL_ERROR = 2 CANCEL = 3
.



IMPORTING Parameters details for EHSWA_143_MN_CREATE

I_FLG_WITH_DIALOG -

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

I_FLG_WITH_ENFOD_UPD -

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

I_FLG_WITH_ENPRT_UPD -

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

I_FLG_PRINT -

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

I_FLG_WITH_PARTNER -

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

EXPORTING Parameters details for EHSWA_143_MN_CREATE

E_FLG_ERROR -

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

E_WASTEMANIFEST -

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

TABLES Parameters details for EHSWA_143_MN_CREATE

IT_WASTE -

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

IT_PARTNER -

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

ET_RETURN -

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

EXCEPTIONS details

NO_PARAMETER -

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

INTERNAL_ERROR -

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

CANCEL -

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

Copy and paste ABAP code example for EHSWA_143_MN_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:
lt_it_waste  TYPE STANDARD TABLE OF EHSWAS_WASTE_HM, "   
lv_e_flg_error  TYPE ESP1_BOOLEAN, "   
lv_no_parameter  TYPE ESP1_BOOLEAN, "   
lv_i_flg_with_dialog  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lt_it_partner  TYPE STANDARD TABLE OF EHSWAS_WASTE_PRT, "   
lv_internal_error  TYPE EHSWAS_WASTE_PRT, "   
lv_e_wastemanifest  TYPE EHSWAS_WASTE_HME, "   
lv_i_flg_with_enfod_upd  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_cancel  TYPE ESP1_BOOLEAN, "   
lt_et_return  TYPE STANDARD TABLE OF EHSWAS_ERROR_TAB, "   
lv_i_flg_with_enprt_upd  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_print  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_with_partner  TYPE ESP1_BOOLEAN. "   ESP1_FALSE

  CALL FUNCTION 'EHSWA_143_MN_CREATE'  "
    EXPORTING
         I_FLG_WITH_DIALOG = lv_i_flg_with_dialog
         I_FLG_WITH_ENFOD_UPD = lv_i_flg_with_enfod_upd
         I_FLG_WITH_ENPRT_UPD = lv_i_flg_with_enprt_upd
         I_FLG_PRINT = lv_i_flg_print
         I_FLG_WITH_PARTNER = lv_i_flg_with_partner
    IMPORTING
         E_FLG_ERROR = lv_e_flg_error
         E_WASTEMANIFEST = lv_e_wastemanifest
    TABLES
         IT_WASTE = lt_it_waste
         IT_PARTNER = lt_it_partner
         ET_RETURN = lt_et_return
    EXCEPTIONS
        NO_PARAMETER = 1
        INTERNAL_ERROR = 2
        CANCEL = 3
. " EHSWA_143_MN_CREATE




ABAP code using 7.40 inline data declarations to call FM EHSWA_143_MN_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.

 
 
 
DATA(ld_i_flg_with_dialog) = ESP1_FALSE.
 
 
 
 
DATA(ld_i_flg_with_enfod_upd) = ESP1_FALSE.
 
 
 
DATA(ld_i_flg_with_enprt_upd) = ESP1_FALSE.
 
DATA(ld_i_flg_print) = ESP1_FALSE.
 
DATA(ld_i_flg_with_partner) = ESP1_FALSE.
 


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!