SAP EXIT_SAPF111S_002 Function Module for User Exit for Payment Method Determination for Payment Requests: Evaluat.









EXIT_SAPF111S_002 is a standard exit sapf111s 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User Exit for Payment Method Determination for Payment Requests: Evaluat. 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 sapf111s 002 FM, simply by entering the name EXIT_SAPF111S_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPF111S_002 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_SAPF111S_002'"User Exit for Payment Method Determination for Payment Requests: Evaluat.
EXPORTING
I_KEYNO = "
I_TAGE1 = "
I_ZTRACE = "
I_FTRACE = "
I_LAND = "
I_BUKRS = "
I_WAERS = "
I_HBKID = "
I_HKTID = "
I_ZWELS = "
I_ZLSCH = "
I_VALUT = "

IMPORTING
E_PAYMETHOD = "
E_PAYTODAY = "
E_VALUT = "

CHANGING
* C_DEBITDATE = "

EXCEPTIONS
ENTRY_NOT_FOUND = 1 NO_VALID_PAYMETHOD = 2 PAYMETHOD_SELECTION = 3 PAYMENT_NOT_NECESSARY = 4
.



IMPORTING Parameters details for EXIT_SAPF111S_002

I_KEYNO -

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

I_TAGE1 -

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

I_ZTRACE -

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

I_FTRACE -

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

I_LAND -

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

I_BUKRS -

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

I_WAERS -

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

I_HBKID -

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

I_HKTID -

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

I_ZWELS -

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

I_ZLSCH -

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

I_VALUT -

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

EXPORTING Parameters details for EXIT_SAPF111S_002

E_PAYMETHOD -

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

E_PAYTODAY -

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

E_VALUT -

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

CHANGING Parameters details for EXIT_SAPF111S_002

C_DEBITDATE -

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

EXCEPTIONS details

ENTRY_NOT_FOUND -

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

NO_VALID_PAYMETHOD -

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

PAYMETHOD_SELECTION -

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

PAYMENT_NOT_NECESSARY -

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

Copy and paste ABAP code example for EXIT_SAPF111S_002 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_keyno  TYPE PAYRQ-KEYNO, "   
lv_c_debitdate  TYPE SY-DATUM, "   
lv_e_paymethod  TYPE PAYRQ-ZWELS, "   
lv_entry_not_found  TYPE PAYRQ, "   
lv_i_tage1  TYPE REGUP-ZBD1T, "   
lv_i_ztrace  TYPE BOOLE-BOOLE, "   
lv_i_ftrace  TYPE BOOLE-BOOLE, "   
lv_i_land  TYPE T001-LAND1, "   
lv_e_paytoday  TYPE BOOLE-BOOLE, "   
lv_no_valid_paymethod  TYPE BOOLE, "   
lv_e_valut  TYPE PAYRQ-VALUT, "   
lv_i_bukrs  TYPE PAYRQ-BUKRS, "   
lv_paymethod_selection  TYPE PAYRQ, "   
lv_i_waers  TYPE PAYRQ-WAERS, "   
lv_payment_not_necessary  TYPE PAYRQ, "   
lv_i_hbkid  TYPE PAYRQ-HBKID, "   
lv_i_hktid  TYPE PAYRQ-HKTID, "   
lv_i_zwels  TYPE PAYRQ-ZWELS, "   
lv_i_zlsch  TYPE REGUH-RZAWE, "   
lv_i_valut  TYPE PAYRQ-VALUT. "   

  CALL FUNCTION 'EXIT_SAPF111S_002'  "User Exit for Payment Method Determination for Payment Requests: Evaluat.
    EXPORTING
         I_KEYNO = lv_i_keyno
         I_TAGE1 = lv_i_tage1
         I_ZTRACE = lv_i_ztrace
         I_FTRACE = lv_i_ftrace
         I_LAND = lv_i_land
         I_BUKRS = lv_i_bukrs
         I_WAERS = lv_i_waers
         I_HBKID = lv_i_hbkid
         I_HKTID = lv_i_hktid
         I_ZWELS = lv_i_zwels
         I_ZLSCH = lv_i_zlsch
         I_VALUT = lv_i_valut
    IMPORTING
         E_PAYMETHOD = lv_e_paymethod
         E_PAYTODAY = lv_e_paytoday
         E_VALUT = lv_e_valut
    CHANGING
         C_DEBITDATE = lv_c_debitdate
    EXCEPTIONS
        ENTRY_NOT_FOUND = 1
        NO_VALID_PAYMETHOD = 2
        PAYMETHOD_SELECTION = 3
        PAYMENT_NOT_NECESSARY = 4
. " EXIT_SAPF111S_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPF111S_002

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 KEYNO FROM PAYRQ INTO @DATA(ld_i_keyno).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_c_debitdate).
 
"SELECT single ZWELS FROM PAYRQ INTO @DATA(ld_e_paymethod).
 
 
"SELECT single ZBD1T FROM REGUP INTO @DATA(ld_i_tage1).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_ztrace).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_ftrace).
 
"SELECT single LAND1 FROM T001 INTO @DATA(ld_i_land).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_paytoday).
 
 
"SELECT single VALUT FROM PAYRQ INTO @DATA(ld_e_valut).
 
"SELECT single BUKRS FROM PAYRQ INTO @DATA(ld_i_bukrs).
 
 
"SELECT single WAERS FROM PAYRQ INTO @DATA(ld_i_waers).
 
 
"SELECT single HBKID FROM PAYRQ INTO @DATA(ld_i_hbkid).
 
"SELECT single HKTID FROM PAYRQ INTO @DATA(ld_i_hktid).
 
"SELECT single ZWELS FROM PAYRQ INTO @DATA(ld_i_zwels).
 
"SELECT single RZAWE FROM REGUH INTO @DATA(ld_i_zlsch).
 
"SELECT single VALUT FROM PAYRQ INTO @DATA(ld_i_valut).
 


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!