SAP FINS_PRED_REPROCESS Function Module for Reprocess Source Documents for Predictive Accounting









FINS_PRED_REPROCESS is a standard fins pred reprocess SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reprocess Source Documents for Predictive Accounting 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 fins pred reprocess FM, simply by entering the name FINS_PRED_REPROCESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: FINS_PRED_REPROCESS
Program Name: SAPLFINS_PRED_REPROCESS
Main Program: SAPLFINS_PRED_REPROCESS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FINS_PRED_REPROCESS 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 'FINS_PRED_REPROCESS'"Reprocess Source Documents for Predictive Accounting
EXPORTING
IV_JOB_ID = "Job ID
* IV_SAVE_LOG = ABAP_TRUE "True: Save messages in application log

IMPORTING
EV_COUNT_SUCCESS = "Number of source documents successfully reprocessed
EV_COUNT_ERROR = "Number of source documents reprocessed with errors

TABLES
IT_SRC_AWKEY = "

EXCEPTIONS
NOT_AUTHORIZED = 1
.



IMPORTING Parameters details for FINS_PRED_REPROCESS

IV_JOB_ID - Job ID

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

IV_SAVE_LOG - True: Save messages in application log

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

EXPORTING Parameters details for FINS_PRED_REPROCESS

EV_COUNT_SUCCESS - Number of source documents successfully reprocessed

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

EV_COUNT_ERROR - Number of source documents reprocessed with errors

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

TABLES Parameters details for FINS_PRED_REPROCESS

IT_SRC_AWKEY -

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

EXCEPTIONS details

NOT_AUTHORIZED - Missing Authorization

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

Copy and paste ABAP code example for FINS_PRED_REPROCESS 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_iv_job_id  TYPE FINS_PR_REPROC_J-JOB_ID, "   
lt_it_src_awkey  TYPE STANDARD TABLE OF FINS_SRC_AWKEY, "   
lv_not_authorized  TYPE FINS_SRC_AWKEY, "   
lv_ev_count_success  TYPE I, "   
lv_iv_save_log  TYPE BOOLE_D, "   ABAP_TRUE
lv_ev_count_error  TYPE I. "   

  CALL FUNCTION 'FINS_PRED_REPROCESS'  "Reprocess Source Documents for Predictive Accounting
    EXPORTING
         IV_JOB_ID = lv_iv_job_id
         IV_SAVE_LOG = lv_iv_save_log
    IMPORTING
         EV_COUNT_SUCCESS = lv_ev_count_success
         EV_COUNT_ERROR = lv_ev_count_error
    TABLES
         IT_SRC_AWKEY = lt_it_src_awkey
    EXCEPTIONS
        NOT_AUTHORIZED = 1
. " FINS_PRED_REPROCESS




ABAP code using 7.40 inline data declarations to call FM FINS_PRED_REPROCESS

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 JOB_ID FROM FINS_PR_REPROC_J INTO @DATA(ld_iv_job_id).
 
 
 
 
DATA(ld_iv_save_log) = ABAP_TRUE.
 
 


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!