SAP ISHMED_ME_CALC_SCRAP Function Module for
ISHMED_ME_CALC_SCRAP is a standard ishmed me calc scrap 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 ishmed me calc scrap FM, simply by entering the name ISHMED_ME_CALC_SCRAP into the relevant SAP transaction such as SE37 or SE38.
Function Group: N1ME_CALCULATION
Program Name: SAPLN1ME_CALCULATION
Main Program: SAPLN1ME_CALCULATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISHMED_ME_CALC_SCRAP 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 'ISHMED_ME_CALC_SCRAP'".
EXPORTING
* I_SCRAP_ENTERED = "
* I_SCRAP_OLD = "
* I_RDRUGDQ_ENTERED = "
* IR_EVENT = "
* I_INGRED_ONLY = "
* I_MDA_EVENT = "
IMPORTING
E_RC = "
CHANGING
* CR_EDRUG = "
* CR_ERRORHANDLER = "
IMPORTING Parameters details for ISHMED_ME_CALC_SCRAP
I_SCRAP_ENTERED -
Data type: N1ME_SCRAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SCRAP_OLD -
Data type: N1ME_SCRAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RDRUGDQ_ENTERED -
Data type: N1ME_RDRUGDQOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_EVENT -
Data type: CL_ISHMED_ME_EVENTOptional: Yes
Call by Reference: Yes
I_INGRED_ONLY -
Data type: ISH_ON_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MDA_EVENT -
Data type: ISH_ON_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISHMED_ME_CALC_SCRAP
E_RC -
Data type: ISH_METHOD_RCOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for ISHMED_ME_CALC_SCRAP
CR_EDRUG -
Data type: CL_ISHMED_ME_EVENT_DRUGOptional: Yes
Call by Reference: Yes
CR_ERRORHANDLER -
Data type: CL_ISHMED_ERRORHANDLINGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ISHMED_ME_CALC_SCRAP 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_e_rc | TYPE ISH_METHOD_RC, " | |||
| lv_cr_edrug | TYPE CL_ISHMED_ME_EVENT_DRUG, " | |||
| lv_i_scrap_entered | TYPE N1ME_SCRAP, " | |||
| lv_i_scrap_old | TYPE N1ME_SCRAP, " | |||
| lv_cr_errorhandler | TYPE CL_ISHMED_ERRORHANDLING, " | |||
| lv_i_rdrugdq_entered | TYPE N1ME_RDRUGDQ, " | |||
| lv_ir_event | TYPE CL_ISHMED_ME_EVENT, " | |||
| lv_i_ingred_only | TYPE ISH_ON_OFF, " | |||
| lv_i_mda_event | TYPE ISH_ON_OFF. " |
|   CALL FUNCTION 'ISHMED_ME_CALC_SCRAP' " |
| EXPORTING | ||
| I_SCRAP_ENTERED | = lv_i_scrap_entered | |
| I_SCRAP_OLD | = lv_i_scrap_old | |
| I_RDRUGDQ_ENTERED | = lv_i_rdrugdq_entered | |
| IR_EVENT | = lv_ir_event | |
| I_INGRED_ONLY | = lv_i_ingred_only | |
| I_MDA_EVENT | = lv_i_mda_event | |
| IMPORTING | ||
| E_RC | = lv_e_rc | |
| CHANGING | ||
| CR_EDRUG | = lv_cr_edrug | |
| CR_ERRORHANDLER | = lv_cr_errorhandler | |
| . " ISHMED_ME_CALC_SCRAP | ||
ABAP code using 7.40 inline data declarations to call FM ISHMED_ME_CALC_SCRAP
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