SAP FM_PAYTR_CALL_S201 Function Module for









FM_PAYTR_CALL_S201 is a standard fm paytr call s201 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 fm paytr call s201 FM, simply by entering the name FM_PAYTR_CALL_S201 into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_PAYTR_CALL_S201 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 'FM_PAYTR_CALL_S201'"
EXPORTING
* I_GJAHR = "
* I_TEST = "
* I_PSTDAT = "Date and Time, Current (Application Server) Date
* I_S200 = "
* I_LISTE = "
* I_HKONT = "
* I_PERFORM_V2 = "
* I_BUKRS = "
* I_CPUDT = "
* I_OPEN = "
* I_CLEAR = "
* I_CC = "
* I_DLOPEN = "
* I_DLCLR = "
* I_DCC = "

TABLES
* T_LIFNR = "
* T_RAGL = "FI-FM Transfer Structure: Fin.Accounting Document Segment
* T_DISPLAY_DOCS = "Output Structure for Payment Selection
* T_KUNNR = "
* T_BELNR = "
* T_BUDAT = "
* T_CPUDT = "
T_MESG = "Message Collector
* T_BKPF = "Accounting Document Header
* T_BSEG = "Accounting Document Segment
* T_AUSZ1 = "Clearing Table 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFMPA_001 RFFMS200: Fill User Dimension
EXIT_SAPLFMPA_002 RFFMS200: Deactivate Conversion of Credit Memos
EXIT_SAPLFMPA_003 RFFMS200: Activating the V2 update
EXIT_SAPLFMPA_004 RFFMS200: Payment Records for Credit Memos not Statistical
EXIT_SAPLFMPA_005 RFFMS200: Activate Conversion of 60-50 Invoices
EXIT_SAPLFMPA_006 RFFMS200: Deactivate Conversion of Overpayments

IMPORTING Parameters details for FM_PAYTR_CALL_S201

I_GJAHR -

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

I_TEST -

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

I_PSTDAT - Date and Time, Current (Application Server) Date

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

I_S200 -

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

I_LISTE -

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

I_HKONT -

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

I_PERFORM_V2 -

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

I_BUKRS -

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

I_CPUDT -

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

I_OPEN -

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

I_CLEAR -

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

I_CC -

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

I_DLOPEN -

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

I_DLCLR -

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

I_DCC -

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

TABLES Parameters details for FM_PAYTR_CALL_S201

T_LIFNR -

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

T_RAGL - FI-FM Transfer Structure: Fin.Accounting Document Segment

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

T_DISPLAY_DOCS - Output Structure for Payment Selection

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

T_KUNNR -

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

T_BELNR -

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

T_BUDAT -

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

T_CPUDT -

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

T_MESG - Message Collector

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

T_BKPF - Accounting Document Header

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

T_BSEG - Accounting Document Segment

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

T_AUSZ1 - Clearing Table 1

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

Copy and paste ABAP code example for FM_PAYTR_CALL_S201 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_gjahr  TYPE BKPF-GJAHR, "   
lt_t_lifnr  TYPE STANDARD TABLE OF RANGE_C10, "   
lv_i_test  TYPE LKO74-TESTLAUF, "   
lt_t_ragl  TYPE STANDARD TABLE OF RAGL1, "   
lv_i_pstdat  TYPE SY-DATUM, "   
lt_t_display_docs  TYPE STANDARD TABLE OF FMPA_T_DISPLAY_DOCS, "   
lv_i_s200  TYPE C, "   
lv_i_liste  TYPE C, "   
lv_i_hkont  TYPE C, "   
lv_i_perform_v2  TYPE C, "   
lv_i_bukrs  TYPE BKPF-BUKRS, "   
lt_t_kunnr  TYPE STANDARD TABLE OF RANGE_C10, "   
lv_i_cpudt  TYPE C, "   
lt_t_belnr  TYPE STANDARD TABLE OF RANGE_C10, "   
lv_i_open  TYPE FMDY-XPOSTOPEN, "   
lt_t_budat  TYPE STANDARD TABLE OF RANGE_C8, "   
lv_i_clear  TYPE FMDY-XPOSTCLEARED, "   
lt_t_cpudt  TYPE STANDARD TABLE OF RANGE_C8, "   
lv_i_cc  TYPE FMDY-XPOSTCC, "   
lt_t_mesg  TYPE STANDARD TABLE OF MESG, "   
lt_t_bkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_i_dlopen  TYPE FMDY-XDELEOPEN, "   
lt_t_bseg  TYPE STANDARD TABLE OF BSEG, "   
lv_i_dlclr  TYPE FMDY-XDELECLEARED, "   
lv_i_dcc  TYPE FMDY-XDELECC, "   
lt_t_ausz1  TYPE STANDARD TABLE OF AUSZ1. "   

  CALL FUNCTION 'FM_PAYTR_CALL_S201'  "
    EXPORTING
         I_GJAHR = lv_i_gjahr
         I_TEST = lv_i_test
         I_PSTDAT = lv_i_pstdat
         I_S200 = lv_i_s200
         I_LISTE = lv_i_liste
         I_HKONT = lv_i_hkont
         I_PERFORM_V2 = lv_i_perform_v2
         I_BUKRS = lv_i_bukrs
         I_CPUDT = lv_i_cpudt
         I_OPEN = lv_i_open
         I_CLEAR = lv_i_clear
         I_CC = lv_i_cc
         I_DLOPEN = lv_i_dlopen
         I_DLCLR = lv_i_dlclr
         I_DCC = lv_i_dcc
    TABLES
         T_LIFNR = lt_t_lifnr
         T_RAGL = lt_t_ragl
         T_DISPLAY_DOCS = lt_t_display_docs
         T_KUNNR = lt_t_kunnr
         T_BELNR = lt_t_belnr
         T_BUDAT = lt_t_budat
         T_CPUDT = lt_t_cpudt
         T_MESG = lt_t_mesg
         T_BKPF = lt_t_bkpf
         T_BSEG = lt_t_bseg
         T_AUSZ1 = lt_t_ausz1
. " FM_PAYTR_CALL_S201




ABAP code using 7.40 inline data declarations to call FM FM_PAYTR_CALL_S201

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 GJAHR FROM BKPF INTO @DATA(ld_i_gjahr).
 
 
"SELECT single TESTLAUF FROM LKO74 INTO @DATA(ld_i_test).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_pstdat).
 
 
 
 
 
 
"SELECT single BUKRS FROM BKPF INTO @DATA(ld_i_bukrs).
 
 
 
 
"SELECT single XPOSTOPEN FROM FMDY INTO @DATA(ld_i_open).
 
 
"SELECT single XPOSTCLEARED FROM FMDY INTO @DATA(ld_i_clear).
 
 
"SELECT single XPOSTCC FROM FMDY INTO @DATA(ld_i_cc).
 
 
 
"SELECT single XDELEOPEN FROM FMDY INTO @DATA(ld_i_dlopen).
 
 
"SELECT single XDELECLEARED FROM FMDY INTO @DATA(ld_i_dlclr).
 
"SELECT single XDELECC FROM FMDY INTO @DATA(ld_i_dcc).
 
 


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!