SAP FI_PAYM_VARI_SCHEDULE Function Module for Selection Variants for Payment Medium: Schedule
FI_PAYM_VARI_SCHEDULE is a standard fi paym vari schedule SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selection Variants for Payment Medium: Schedule 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 fi paym vari schedule FM, simply by entering the name FI_PAYM_VARI_SCHEDULE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FPAYV
Program Name: SAPLFPAYV
Main Program: SAPLFPAYV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FI_PAYM_VARI_SCHEDULE 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 'FI_PAYM_VARI_SCHEDULE'"Selection Variants for Payment Medium: Schedule.
EXPORTING
I_LAUFD = "Date on Which the Program Is to Be Run
* I_START_IMMED = "Indicator: Immediate Execution of Batch Job
* I_ONLINE = ' ' "Indicator: Online Execution Instead of Batch Job
I_LAUFI = "Additional Identification Characteristic
I_XVORL = "Indicator: Proposal Run
* I_GRPNO = "Grouping Criterium for Payments
* I_JOBNAME = ' ' "Background Job Name
* I_JOBCOUNT = ' ' "Background job number
* I_START_JOB = 1 "Not Supported (Note 2089199)
* I_START_TIME = NO_TIME "Scheduled start time for background Job
* I_START_DATE = NO_DATE "Scheduled start date for background job
TABLES
* T_JOBS = "Not Supported (Note 2089199)
EXCEPTIONS
PARAMETERS_INVALID = 1 NO_PAYGROUP_FOUND = 2 CANT_OPEN_JOB = 3 CANT_CLOSE_JOB = 4 USER_CANT_RELEASE_JOB = 5
IMPORTING Parameters details for FI_PAYM_VARI_SCHEDULE
I_LAUFD - Date on Which the Program Is to Be Run
Data type: LAUFDOptional: No
Call by Reference: Yes
I_START_IMMED - Indicator: Immediate Execution of Batch Job
Data type: BTCH0000-CHAR1Optional: Yes
Call by Reference: Yes
I_ONLINE - Indicator: Online Execution Instead of Batch Job
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_LAUFI - Additional Identification Characteristic
Data type: LAUFIOptional: No
Call by Reference: Yes
I_XVORL - Indicator: Proposal Run
Data type: XVORL_FPMOptional: No
Call by Reference: Yes
I_GRPNO - Grouping Criterium for Payments
Data type: GRPNO_FPMOptional: Yes
Call by Reference: Yes
I_JOBNAME - Background Job Name
Data type: TBTCJOB-JOBNAMEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_JOBCOUNT - Background job number
Data type: TBTCJOB-JOBCOUNTDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_START_JOB - Not Supported (Note 2089199)
Data type: SY-TABIXDefault: 1
Optional: Yes
Call by Reference: Yes
I_START_TIME - Scheduled start time for background Job
Data type: TBTCJOB-SDLSTRTTMDefault: NO_TIME
Optional: Yes
Call by Reference: Yes
I_START_DATE - Scheduled start date for background job
Data type: TBTCJOB-SDLSTRTDTDefault: NO_DATE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for FI_PAYM_VARI_SCHEDULE
T_JOBS - Not Supported (Note 2089199)
Data type: FPM_JOBSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
PARAMETERS_INVALID - Import Parameters Are Invalid
Data type:Optional: No
Call by Reference: Yes
NO_PAYGROUP_FOUND - No Payment Group Found
Data type:Optional: No
Call by Reference: Yes
CANT_OPEN_JOB - Job could not be opened
Data type:Optional: No
Call by Reference: Yes
CANT_CLOSE_JOB - Job could not be closed
Data type:Optional: No
Call by Reference: Yes
USER_CANT_RELEASE_JOB - User Has No Authorization to Release the Job
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FI_PAYM_VARI_SCHEDULE 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: | ||||
| lt_t_jobs | TYPE STANDARD TABLE OF FPM_JOBS, " | |||
| lv_i_laufd | TYPE LAUFD, " | |||
| lv_parameters_invalid | TYPE LAUFD, " | |||
| lv_i_start_immed | TYPE BTCH0000-CHAR1, " | |||
| lv_i_online | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_laufi | TYPE LAUFI, " | |||
| lv_no_paygroup_found | TYPE LAUFI, " | |||
| lv_i_xvorl | TYPE XVORL_FPM, " | |||
| lv_cant_open_job | TYPE XVORL_FPM, " | |||
| lv_i_grpno | TYPE GRPNO_FPM, " | |||
| lv_cant_close_job | TYPE GRPNO_FPM, " | |||
| lv_i_jobname | TYPE TBTCJOB-JOBNAME, " SPACE | |||
| lv_user_cant_release_job | TYPE TBTCJOB, " | |||
| lv_i_jobcount | TYPE TBTCJOB-JOBCOUNT, " SPACE | |||
| lv_i_start_job | TYPE SY-TABIX, " 1 | |||
| lv_i_start_time | TYPE TBTCJOB-SDLSTRTTM, " NO_TIME | |||
| lv_i_start_date | TYPE TBTCJOB-SDLSTRTDT. " NO_DATE |
|   CALL FUNCTION 'FI_PAYM_VARI_SCHEDULE' "Selection Variants for Payment Medium: Schedule |
| EXPORTING | ||
| I_LAUFD | = lv_i_laufd | |
| I_START_IMMED | = lv_i_start_immed | |
| I_ONLINE | = lv_i_online | |
| I_LAUFI | = lv_i_laufi | |
| I_XVORL | = lv_i_xvorl | |
| I_GRPNO | = lv_i_grpno | |
| I_JOBNAME | = lv_i_jobname | |
| I_JOBCOUNT | = lv_i_jobcount | |
| I_START_JOB | = lv_i_start_job | |
| I_START_TIME | = lv_i_start_time | |
| I_START_DATE | = lv_i_start_date | |
| TABLES | ||
| T_JOBS | = lt_t_jobs | |
| EXCEPTIONS | ||
| PARAMETERS_INVALID = 1 | ||
| NO_PAYGROUP_FOUND = 2 | ||
| CANT_OPEN_JOB = 3 | ||
| CANT_CLOSE_JOB = 4 | ||
| USER_CANT_RELEASE_JOB = 5 | ||
| . " FI_PAYM_VARI_SCHEDULE | ||
ABAP code using 7.40 inline data declarations to call FM FI_PAYM_VARI_SCHEDULE
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 CHAR1 FROM BTCH0000 INTO @DATA(ld_i_start_immed). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_online). | ||||
| DATA(ld_i_online) | = ' '. | |||
| "SELECT single JOBNAME FROM TBTCJOB INTO @DATA(ld_i_jobname). | ||||
| DATA(ld_i_jobname) | = ' '. | |||
| "SELECT single JOBCOUNT FROM TBTCJOB INTO @DATA(ld_i_jobcount). | ||||
| DATA(ld_i_jobcount) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_i_start_job). | ||||
| DATA(ld_i_start_job) | = 1. | |||
| "SELECT single SDLSTRTTM FROM TBTCJOB INTO @DATA(ld_i_start_time). | ||||
| DATA(ld_i_start_time) | = NO_TIME. | |||
| "SELECT single SDLSTRTDT FROM TBTCJOB INTO @DATA(ld_i_start_date). | ||||
| DATA(ld_i_start_date) | = NO_DATE. | |||
Search for further information about these or an SAP related objects