SAP EHSWA_143WM_MN_CREATE Function Module for









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

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



Function EHSWA_143WM_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_143WM_MN_CREATE'"
EXPORTING
* I_FLG_WITH_DIALOG = ESP1_TRUE "
* I_FLG_WITH_ENFOD_UPD = ESP1_FALSE "
* I_FLG_WITH_ENPRT_UPD = ESP1_FALSE "
* I_FLG_CALL_REPINFOSYS = ESP1_FALSE "
* I_FLG_ALV_BYPASS_SELECTION = ESP1_FALSE "
* I_FLG_ALV_MNCAT = "Disposal Document Type

IMPORTING
E_FLG_ERROR = "
E_FLG_WARNING = "
E_DISPDOC = "

TABLES
I_WASTETAB = "
* I_PARTNERTAB = "
E_WASTE_BADTAB = "
X_ERRMSGTAB = "

EXCEPTIONS
NO_PARAMETER = 1 ERROR = 2 WARNING = 3 CANCEL = 4
.



IMPORTING Parameters details for EHSWA_143WM_MN_CREATE

I_FLG_WITH_DIALOG -

Data type: ESP1_BOOLEAN
Default: ESP1_TRUE
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_CALL_REPINFOSYS -

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

I_FLG_ALV_BYPASS_SELECTION -

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

I_FLG_ALV_MNCAT - Disposal Document Type

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

EXPORTING Parameters details for EHSWA_143WM_MN_CREATE

E_FLG_ERROR -

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

E_FLG_WARNING -

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

E_DISPDOC -

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

TABLES Parameters details for EHSWA_143WM_MN_CREATE

I_WASTETAB -

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

I_PARTNERTAB -

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

E_WASTE_BADTAB -

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

X_ERRMSGTAB -

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

EXCEPTIONS details

NO_PARAMETER -

Data type:
Optional: No
Call by Reference: Yes

ERROR -

Data type:
Optional: No
Call by Reference: Yes

WARNING -

Data type:
Optional: No
Call by Reference: Yes

CANCEL -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EHSWA_143WM_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_i_wastetab  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_TRUE
lv_error  TYPE ESP1_BOOLEAN, "   
lt_i_partnertab  TYPE STANDARD TABLE OF EHSWAS_ENPRTAPI, "   
lv_e_flg_warning  TYPE ESP1_BOOLEAN, "   
lv_i_flg_with_enfod_upd  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_warning  TYPE ESP1_BOOLEAN, "   
lv_e_dispdoc  TYPE EHSWAS_WASTE_HME, "   
lt_e_waste_badtab  TYPE STANDARD TABLE OF EHSWAS_WASTE_HM, "   
lv_i_flg_with_enprt_upd  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_cancel  TYPE ESP1_BOOLEAN, "   
lt_x_errmsgtab  TYPE STANDARD TABLE OF EHSWAS_ERROR_TAB, "   
lv_i_flg_call_repinfosys  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_alv_bypass_selection  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_alv_mncat  TYPE EHSWAE_MNCAT. "   

  CALL FUNCTION 'EHSWA_143WM_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_CALL_REPINFOSYS = lv_i_flg_call_repinfosys
         I_FLG_ALV_BYPASS_SELECTION = lv_i_flg_alv_bypass_selection
         I_FLG_ALV_MNCAT = lv_i_flg_alv_mncat
    IMPORTING
         E_FLG_ERROR = lv_e_flg_error
         E_FLG_WARNING = lv_e_flg_warning
         E_DISPDOC = lv_e_dispdoc
    TABLES
         I_WASTETAB = lt_i_wastetab
         I_PARTNERTAB = lt_i_partnertab
         E_WASTE_BADTAB = lt_e_waste_badtab
         X_ERRMSGTAB = lt_x_errmsgtab
    EXCEPTIONS
        NO_PARAMETER = 1
        ERROR = 2
        WARNING = 3
        CANCEL = 4
. " EHSWA_143WM_MN_CREATE




ABAP code using 7.40 inline data declarations to call FM EHSWA_143WM_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_TRUE.
 
 
 
 
DATA(ld_i_flg_with_enfod_upd) = ESP1_FALSE.
 
 
 
 
DATA(ld_i_flg_with_enprt_upd) = ESP1_FALSE.
 
 
 
DATA(ld_i_flg_call_repinfosys) = ESP1_FALSE.
 
DATA(ld_i_flg_alv_bypass_selection) = 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!