SAP EXIT_SAPLEREDEM_001 Function Module for IS-U: User-Defined Checks in Screen Fields









EXIT_SAPLEREDEM_001 is a standard exit sapleredem 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-U: User-Defined Checks in Screen Fields processing and below is the pattern details for this FM, 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 exit sapleredem 001 FM, simply by entering the name EXIT_SAPLEREDEM_001 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLEREDEM_001 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 'EXIT_SAPLEREDEM_001'"IS-U: User-Defined Checks in Screen Fields
EXPORTING
X_EREDEMPD = "Screen Fields : Redemption
X_WMODE = "Processing Mode (1 = Display, 2 = Change, 3 = Create...)

IMPORTING
Y_FIELD = "Name of a screen element

EXCEPTIONS
INPUT_ERROR = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
ISU_O_REDEMPTN_ACTION INTERNAL: Actions of Subscreens
ISU_O_REDEMPTN_CLOSE INTERNAL: Exits Object Processing
ISU_O_REDEMPTN_INPUT INTERNAL: Checks and Transfers Entries
ISU_O_REDEMPTN_OPEN INTERNAL: Opens Processing of an Object
ISU_O_REDEMPTN_PAI_AFTER INTERNAL: Closes the CALL SUBSCREEN PAI
ISU_O_REDEMPTN_PAI_BEFORE INTERNAL: Prepares the CALL SUBSCREEN PAI
ISU_O_REDEMPTN_PBO INTERNAL: Prepares the CALL SUBSCREEN PBO
ISU_O_REDEMPTN_PREPARE_CLOSE INTERNAL: Prepare Object Closing
ISU_S_REDEMPTN_CHANGE INTERNAL: Change a
ISU_S_REDEMPTN_CHANGE_LA INTERNAL: Change a Redemption (for Ext. Call)
ISU_S_REDEMPTN_CREATE INTERNAL: Create a
ISU_S_REDEMPTN_CREATE_LA INTERNAL: Create a Redemption (for Ext. Call)
ISU_S_REDEMPTN_DELETE INTERNAL: Delete
ISU_S_REDEMPTN_DISPLAY INTERNAL: Display a
ISU_S_REDEMPTN_DISPLAY_LA INTERNAL: Display a Redemption (for Ext. Call)
ISU_S_REDEMPTN_PROVIDE INTERNAL: Prepares a for Processing

IMPORTING Parameters details for EXIT_SAPLEREDEM_001

X_EREDEMPD - Screen Fields : Redemption

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

X_WMODE - Processing Mode (1 = Display, 2 = Change, 3 = Create...)

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

EXPORTING Parameters details for EXIT_SAPLEREDEM_001

Y_FIELD - Name of a screen element

Data type: GFC_PRGFLD-FELDNAME
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INPUT_ERROR - Error in Entry

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_SAPLEREDEM_001 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_y_field  TYPE GFC_PRGFLD-FELDNAME, "   
lv_x_eredempd  TYPE EREDEMPD, "   
lv_input_error  TYPE EREDEMPD, "   
lv_x_wmode  TYPE REGEN-WMODE. "   

  CALL FUNCTION 'EXIT_SAPLEREDEM_001'  "IS-U: User-Defined Checks in Screen Fields
    EXPORTING
         X_EREDEMPD = lv_x_eredempd
         X_WMODE = lv_x_wmode
    IMPORTING
         Y_FIELD = lv_y_field
    EXCEPTIONS
        INPUT_ERROR = 1
. " EXIT_SAPLEREDEM_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLEREDEM_001

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 FELDNAME FROM GFC_PRGFLD INTO @DATA(ld_y_field).
 
 
 
"SELECT single WMODE FROM REGEN INTO @DATA(ld_x_wmode).
 


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!