SAP EHSWA_246_UPDATE_APP_AMOUNT Function Module for
EHSWA_246_UPDATE_APP_AMOUNT is a standard ehswa 246 update app amount 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 246 update app amount FM, simply by entering the name EHSWA_246_UPDATE_APP_AMOUNT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSWA_246
Program Name: SAPLEHSWA_246
Main Program: SAPLEHSWA_246
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSWA_246_UPDATE_APP_AMOUNT 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_246_UPDATE_APP_AMOUNT'".
EXPORTING
I_MNCAT = "Disposal Document Type
I_MNAMINTO = "Outgoing quantity
I_MNAMINTOU = "Unit of Measure for Outgoing Quantity
I_MNAMEXTO = "Waste Quantity Disposed Of
I_MNAMEXTOU = "Unit of Measure for Waste Quantity Disposed of and Reported
I_MNWAKEY = "Waste Code (RECN)
I_MNAPPNO = "Waste Approval (RECN)
I_MNSTATUS = "Disposal Document Status
I_MNPERIOD_KEYDATE = "Key Date for Period-Based Quantity Update
* I_MNMATNR = "
I_MNINO = "Disposal Document
I_MNAMINTO_OLD = "Outgoing quantity
* I_MNAPPVAL_KEYDATE = "
I_MNAMINTOU_OLD = "Unit of Measure for Outgoing Quantity
I_MNAMEXTO_OLD = "Waste Quantity Disposed Of
I_MNAMEXTOU_OLD = "Unit of Measure for Waste Quantity Disposed of and Reported
I_MNWAKEY_OLD = "Waste Code (RECN)
I_MNAPPNO_OLD = "Waste Approval (RECN)
I_MNSTATUS_OLD = "Disposal Document Status
I_MNPERIOD_KEYDATE_OLD = "Key Date for Period-Based Quantity Update
IMPORTING
E_FLG_ERROR = "Indicator: Errors Occurred
E_FLG_WARNING = "
E_MESSAGE_TAB = "Notification Table
IMPORTING Parameters details for EHSWA_246_UPDATE_APP_AMOUNT
I_MNCAT - Disposal Document Type
Data type: EHSWAS_MNAPI-MNCATOptional: No
Call by Reference: Yes
I_MNAMINTO - Outgoing quantity
Data type: EHSWAS_MNPOS-MNAMINOptional: No
Call by Reference: Yes
I_MNAMINTOU - Unit of Measure for Outgoing Quantity
Data type: EHSWAS_MNPOS-MNAMQINOptional: No
Call by Reference: Yes
I_MNAMEXTO - Waste Quantity Disposed Of
Data type: EHSWAS_MNPOS-MNAMEXOptional: No
Call by Reference: Yes
I_MNAMEXTOU - Unit of Measure for Waste Quantity Disposed of and Reported
Data type: EHSWAS_MNPOS-MNAMQEXOptional: No
Call by Reference: Yes
I_MNWAKEY - Waste Code (RECN)
Data type: EHSWAS_MNWAKEY-RECNWAKEYOptional: No
Call by Reference: Yes
I_MNAPPNO - Waste Approval (RECN)
Data type: EHSWAS_MN-MNAPNOOptional: No
Call by Reference: Yes
I_MNSTATUS - Disposal Document Status
Data type: EHSWAS_MN-MNSTATUSOptional: No
Call by Reference: Yes
I_MNPERIOD_KEYDATE - Key Date for Period-Based Quantity Update
Data type: EHSWAE_PERIOD_KEYDATEOptional: No
Call by Reference: Yes
I_MNMATNR -
Data type: EHSWAS_MNPOS-MNMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MNINO - Disposal Document
Data type: EHSWAS_MN-MNINOOptional: No
Call by Reference: Yes
I_MNAMINTO_OLD - Outgoing quantity
Data type: EHSWAS_MNPOS-MNAMINOptional: No
Call by Reference: Yes
I_MNAPPVAL_KEYDATE -
Data type: DATSOptional: Yes
Call by Reference: Yes
I_MNAMINTOU_OLD - Unit of Measure for Outgoing Quantity
Data type: EHSWAS_MNPOS-MNAMQINOptional: No
Call by Reference: Yes
I_MNAMEXTO_OLD - Waste Quantity Disposed Of
Data type: EHSWAS_MNPOS-MNAMEXOptional: No
Call by Reference: Yes
I_MNAMEXTOU_OLD - Unit of Measure for Waste Quantity Disposed of and Reported
Data type: EHSWAS_MNPOS-MNAMQEXOptional: No
Call by Reference: Yes
I_MNWAKEY_OLD - Waste Code (RECN)
Data type: EHSWAS_MNWAKEY-RECNWAKEYOptional: No
Call by Reference: Yes
I_MNAPPNO_OLD - Waste Approval (RECN)
Data type: EHSWAS_MN-MNAPNOOptional: No
Call by Reference: Yes
I_MNSTATUS_OLD - Disposal Document Status
Data type: EHSWAS_MN-MNSTATUSOptional: No
Call by Reference: Yes
I_MNPERIOD_KEYDATE_OLD - Key Date for Period-Based Quantity Update
Data type: EHSWAE_PERIOD_KEYDATEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for EHSWA_246_UPDATE_APP_AMOUNT
E_FLG_ERROR - Indicator: Errors Occurred
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
E_FLG_WARNING -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
E_MESSAGE_TAB - Notification Table
Data type: EHSW_TT_MESSAGEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHSWA_246_UPDATE_APP_AMOUNT 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_mncat | TYPE EHSWAS_MNAPI-MNCAT, " | |||
| lv_e_flg_error | TYPE ESP1_BOOLEAN, " | |||
| lv_i_mnaminto | TYPE EHSWAS_MNPOS-MNAMIN, " | |||
| lv_i_mnamintou | TYPE EHSWAS_MNPOS-MNAMQIN, " | |||
| lv_i_mnamexto | TYPE EHSWAS_MNPOS-MNAMEX, " | |||
| lv_i_mnamextou | TYPE EHSWAS_MNPOS-MNAMQEX, " | |||
| lv_i_mnwakey | TYPE EHSWAS_MNWAKEY-RECNWAKEY, " | |||
| lv_i_mnappno | TYPE EHSWAS_MN-MNAPNO, " | |||
| lv_i_mnstatus | TYPE EHSWAS_MN-MNSTATUS, " | |||
| lv_i_mnperiod_keydate | TYPE EHSWAE_PERIOD_KEYDATE, " | |||
| lv_i_mnmatnr | TYPE EHSWAS_MNPOS-MNMATNR, " | |||
| lv_i_mnino | TYPE EHSWAS_MN-MNINO, " | |||
| lv_e_flg_warning | TYPE ESP1_BOOLEAN, " | |||
| lv_i_mnaminto_old | TYPE EHSWAS_MNPOS-MNAMIN, " | |||
| lv_i_mnappval_keydate | TYPE DATS, " | |||
| lv_e_message_tab | TYPE EHSW_TT_MESSAGE, " | |||
| lv_i_mnamintou_old | TYPE EHSWAS_MNPOS-MNAMQIN, " | |||
| lv_i_mnamexto_old | TYPE EHSWAS_MNPOS-MNAMEX, " | |||
| lv_i_mnamextou_old | TYPE EHSWAS_MNPOS-MNAMQEX, " | |||
| lv_i_mnwakey_old | TYPE EHSWAS_MNWAKEY-RECNWAKEY, " | |||
| lv_i_mnappno_old | TYPE EHSWAS_MN-MNAPNO, " | |||
| lv_i_mnstatus_old | TYPE EHSWAS_MN-MNSTATUS, " | |||
| lv_i_mnperiod_keydate_old | TYPE EHSWAE_PERIOD_KEYDATE. " |
|   CALL FUNCTION 'EHSWA_246_UPDATE_APP_AMOUNT' " |
| EXPORTING | ||
| I_MNCAT | = lv_i_mncat | |
| I_MNAMINTO | = lv_i_mnaminto | |
| I_MNAMINTOU | = lv_i_mnamintou | |
| I_MNAMEXTO | = lv_i_mnamexto | |
| I_MNAMEXTOU | = lv_i_mnamextou | |
| I_MNWAKEY | = lv_i_mnwakey | |
| I_MNAPPNO | = lv_i_mnappno | |
| I_MNSTATUS | = lv_i_mnstatus | |
| I_MNPERIOD_KEYDATE | = lv_i_mnperiod_keydate | |
| I_MNMATNR | = lv_i_mnmatnr | |
| I_MNINO | = lv_i_mnino | |
| I_MNAMINTO_OLD | = lv_i_mnaminto_old | |
| I_MNAPPVAL_KEYDATE | = lv_i_mnappval_keydate | |
| I_MNAMINTOU_OLD | = lv_i_mnamintou_old | |
| I_MNAMEXTO_OLD | = lv_i_mnamexto_old | |
| I_MNAMEXTOU_OLD | = lv_i_mnamextou_old | |
| I_MNWAKEY_OLD | = lv_i_mnwakey_old | |
| I_MNAPPNO_OLD | = lv_i_mnappno_old | |
| I_MNSTATUS_OLD | = lv_i_mnstatus_old | |
| I_MNPERIOD_KEYDATE_OLD | = lv_i_mnperiod_keydate_old | |
| IMPORTING | ||
| E_FLG_ERROR | = lv_e_flg_error | |
| E_FLG_WARNING | = lv_e_flg_warning | |
| E_MESSAGE_TAB | = lv_e_message_tab | |
| . " EHSWA_246_UPDATE_APP_AMOUNT | ||
ABAP code using 7.40 inline data declarations to call FM EHSWA_246_UPDATE_APP_AMOUNT
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 MNCAT FROM EHSWAS_MNAPI INTO @DATA(ld_i_mncat). | ||||
| "SELECT single MNAMIN FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnaminto). | ||||
| "SELECT single MNAMQIN FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnamintou). | ||||
| "SELECT single MNAMEX FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnamexto). | ||||
| "SELECT single MNAMQEX FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnamextou). | ||||
| "SELECT single RECNWAKEY FROM EHSWAS_MNWAKEY INTO @DATA(ld_i_mnwakey). | ||||
| "SELECT single MNAPNO FROM EHSWAS_MN INTO @DATA(ld_i_mnappno). | ||||
| "SELECT single MNSTATUS FROM EHSWAS_MN INTO @DATA(ld_i_mnstatus). | ||||
| "SELECT single MNMATNR FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnmatnr). | ||||
| "SELECT single MNINO FROM EHSWAS_MN INTO @DATA(ld_i_mnino). | ||||
| "SELECT single MNAMIN FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnaminto_old). | ||||
| "SELECT single MNAMQIN FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnamintou_old). | ||||
| "SELECT single MNAMEX FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnamexto_old). | ||||
| "SELECT single MNAMQEX FROM EHSWAS_MNPOS INTO @DATA(ld_i_mnamextou_old). | ||||
| "SELECT single RECNWAKEY FROM EHSWAS_MNWAKEY INTO @DATA(ld_i_mnwakey_old). | ||||
| "SELECT single MNAPNO FROM EHSWAS_MN INTO @DATA(ld_i_mnappno_old). | ||||
| "SELECT single MNSTATUS FROM EHSWAS_MN INTO @DATA(ld_i_mnstatus_old). | ||||
Search for further information about these or an SAP related objects