SAP FIN_AR_PAY_DIFF_STATISTIC Function Module for
FIN_AR_PAY_DIFF_STATISTIC is a standard fin ar pay diff statistic 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 fin ar pay diff statistic FM, simply by entering the name FIN_AR_PAY_DIFF_STATISTIC into the relevant SAP transaction such as SE37 or SE38.
Function Group: FIN_APAR_HDB
Program Name: SAPLFIN_APAR_HDB
Main Program: SAPLFIN_APAR_HDB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FIN_AR_PAY_DIFF_STATISTIC 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 'FIN_AR_PAY_DIFF_STATISTIC'".
EXPORTING
IT_BUKRS_RANGE = "
* IT_KUNNR_RANGE = "
* IT_RSTGR_RANGE = "
* IT_FREE_SELECTIONS = "
* I_ROWS = 10 "
* I_BYPASS_BUFFER = '' "
IMPORTING
ET_TOP_LIST_LEAN = "
ET_TOP_LIST_BROAD = "
EXCEPTIONS
NOT_SUPPORTED = 1
IMPORTING Parameters details for FIN_AR_PAY_DIFF_STATISTIC
IT_BUKRS_RANGE -
Data type: ACC_T_RA_BUKRSOptional: No
Call by Reference: Yes
IT_KUNNR_RANGE -
Data type: FAGL_RANGE_T_KUNNROptional: Yes
Call by Reference: Yes
IT_RSTGR_RANGE -
Data type: FIN_T_RSTGR_RANGEOptional: Yes
Call by Reference: Yes
IT_FREE_SELECTIONS -
Data type: RSDS_TRANGEOptional: Yes
Call by Reference: Yes
I_ROWS -
Data type: IDefault: 10
Optional: Yes
Call by Reference: Yes
I_BYPASS_BUFFER -
Data type: ABAP_BOOLDefault: ''
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FIN_AR_PAY_DIFF_STATISTIC
ET_TOP_LIST_LEAN -
Data type: FIN_AR_T_PAY_DIFF_STATISTICOptional: No
Call by Reference: Yes
ET_TOP_LIST_BROAD -
Data type: FIN_AR_T_OVERDUE_CUST_BROADOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_SUPPORTED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FIN_AR_PAY_DIFF_STATISTIC 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_not_supported | TYPE STRING, " | |||
| lv_it_bukrs_range | TYPE ACC_T_RA_BUKRS, " | |||
| lv_et_top_list_lean | TYPE FIN_AR_T_PAY_DIFF_STATISTIC, " | |||
| lv_it_kunnr_range | TYPE FAGL_RANGE_T_KUNNR, " | |||
| lv_et_top_list_broad | TYPE FIN_AR_T_OVERDUE_CUST_BROAD, " | |||
| lv_it_rstgr_range | TYPE FIN_T_RSTGR_RANGE, " | |||
| lv_it_free_selections | TYPE RSDS_TRANGE, " | |||
| lv_i_rows | TYPE I, " 10 | |||
| lv_i_bypass_buffer | TYPE ABAP_BOOL. " '' |
|   CALL FUNCTION 'FIN_AR_PAY_DIFF_STATISTIC' " |
| EXPORTING | ||
| IT_BUKRS_RANGE | = lv_it_bukrs_range | |
| IT_KUNNR_RANGE | = lv_it_kunnr_range | |
| IT_RSTGR_RANGE | = lv_it_rstgr_range | |
| IT_FREE_SELECTIONS | = lv_it_free_selections | |
| I_ROWS | = lv_i_rows | |
| I_BYPASS_BUFFER | = lv_i_bypass_buffer | |
| IMPORTING | ||
| ET_TOP_LIST_LEAN | = lv_et_top_list_lean | |
| ET_TOP_LIST_BROAD | = lv_et_top_list_broad | |
| EXCEPTIONS | ||
| NOT_SUPPORTED = 1 | ||
| . " FIN_AR_PAY_DIFF_STATISTIC | ||
ABAP code using 7.40 inline data declarations to call FM FIN_AR_PAY_DIFF_STATISTIC
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.| DATA(ld_i_rows) | = 10. | |||
| DATA(ld_i_bypass_buffer) | = ''. | |||
Search for further information about these or an SAP related objects