SAP EHSWA_162_WAFUNC_CLOSE Function Module for









EHSWA_162_WAFUNC_CLOSE is a standard ehswa 162 wafunc close 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 162 wafunc close FM, simply by entering the name EHSWA_162_WAFUNC_CLOSE into the relevant SAP transaction such as SE37 or SE38.

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



Function EHSWA_162_WAFUNC_CLOSE 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_162_WAFUNC_CLOSE'"
EXPORTING
* I_EANOCAT = "
* I_TRANSACTION = "
* I_WFTASK = "
* I_DIAL_CTR = "
* I_ENTAMFOF = "

IMPORTING
E_FLG_SAVE_PEND = "
E_FLG_FIRST_SAVE_DONE = "
E_FLG_ERROR = "

TABLES
X_LG_IOTAB = "
X_LG_IOTAB_DEL = "
* E_MESSAGE_TAB = "
.



IMPORTING Parameters details for EHSWA_162_WAFUNC_CLOSE

I_EANOCAT -

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

I_TRANSACTION -

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

I_WFTASK -

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

I_DIAL_CTR -

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

I_ENTAMFOF -

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

EXPORTING Parameters details for EHSWA_162_WAFUNC_CLOSE

E_FLG_SAVE_PEND -

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

E_FLG_FIRST_SAVE_DONE -

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

E_FLG_ERROR -

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

TABLES Parameters details for EHSWA_162_WAFUNC_CLOSE

X_LG_IOTAB -

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

X_LG_IOTAB_DEL -

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

E_MESSAGE_TAB -

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

Copy and paste ABAP code example for EHSWA_162_WAFUNC_CLOSE 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_i_eanocat  TYPE EHSWAC_EANOCAT, "   
lt_x_lg_iotab  TYPE STANDARD TABLE OF EHSWAS_ENTAMIOT, "   
lv_e_flg_save_pend  TYPE ESP1_BOOLEAN, "   
lv_i_transaction  TYPE EHSWAE_TRANSA, "   
lt_x_lg_iotab_del  TYPE STANDARD TABLE OF EHSWAS_ENTAMIOT, "   
lv_e_flg_first_save_done  TYPE ESP1_BOOLEAN, "   
lv_i_wftask  TYPE EHSWAE_WFTASK, "   
lv_e_flg_error  TYPE ESP1_BOOLEAN, "   
lt_e_message_tab  TYPE STANDARD TABLE OF EHSWAS_ERROR_TAB, "   
lv_i_dial_ctr  TYPE RCGDIALCTR, "   
lv_i_entamfof  TYPE EHSWAC_ENTAMFOF. "   

  CALL FUNCTION 'EHSWA_162_WAFUNC_CLOSE'  "
    EXPORTING
         I_EANOCAT = lv_i_eanocat
         I_TRANSACTION = lv_i_transaction
         I_WFTASK = lv_i_wftask
         I_DIAL_CTR = lv_i_dial_ctr
         I_ENTAMFOF = lv_i_entamfof
    IMPORTING
         E_FLG_SAVE_PEND = lv_e_flg_save_pend
         E_FLG_FIRST_SAVE_DONE = lv_e_flg_first_save_done
         E_FLG_ERROR = lv_e_flg_error
    TABLES
         X_LG_IOTAB = lt_x_lg_iotab
         X_LG_IOTAB_DEL = lt_x_lg_iotab_del
         E_MESSAGE_TAB = lt_e_message_tab
. " EHSWA_162_WAFUNC_CLOSE




ABAP code using 7.40 inline data declarations to call FM EHSWA_162_WAFUNC_CLOSE

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.

 
 
 
 
 
 
 
 
 
 
 


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!