SAP REYC_STATUS_UPDATE Function Module for Status Update for CAM Settlement Step









REYC_STATUS_UPDATE is a standard reyc status update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Status Update for CAM Settlement Step 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 reyc status update FM, simply by entering the name REYC_STATUS_UPDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function REYC_STATUS_UPDATE 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 'REYC_STATUS_UPDATE'"Status Update for CAM Settlement Step
EXPORTING
ID_SETTL_GUID = "Unique Key of Settlement
ID_SETTL_STEP = "Internal Name of Process Step
ID_ACTION = "Business Transaction
* ID_PFROM = "Period Start Date
* ID_PTO = "Period End Date

TABLES
ET_STATUSDETAIL = "CAM Settleemnt Step Status Detail
ET_MESSAGES = "Return Parameter

EXCEPTIONS
DB_UPDATE_ERROR = 1
.



IMPORTING Parameters details for REYC_STATUS_UPDATE

ID_SETTL_GUID - Unique Key of Settlement

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

ID_SETTL_STEP - Internal Name of Process Step

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

ID_ACTION - Business Transaction

Data type: TJ01-VRGNG
Optional: No
Call by Reference: Yes

ID_PFROM - Period Start Date

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

ID_PTO - Period End Date

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

TABLES Parameters details for REYC_STATUS_UPDATE

ET_STATUSDETAIL - CAM Settleemnt Step Status Detail

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

ET_MESSAGES - Return Parameter

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

EXCEPTIONS details

DB_UPDATE_ERROR - Database Table Update Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for REYC_STATUS_UPDATE 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_id_settl_guid  TYPE RECASETTLGUID, "   
lv_db_update_error  TYPE RECASETTLGUID, "   
lt_et_statusdetail  TYPE STANDARD TABLE OF REYCSTATUSDETAIL, "   
lt_et_messages  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_id_settl_step  TYPE RECASTEP, "   
lv_id_action  TYPE TJ01-VRGNG, "   
lv_id_pfrom  TYPE RECAPERIODFROM, "   
lv_id_pto  TYPE RECAPERIODTO. "   

  CALL FUNCTION 'REYC_STATUS_UPDATE'  "Status Update for CAM Settlement Step
    EXPORTING
         ID_SETTL_GUID = lv_id_settl_guid
         ID_SETTL_STEP = lv_id_settl_step
         ID_ACTION = lv_id_action
         ID_PFROM = lv_id_pfrom
         ID_PTO = lv_id_pto
    TABLES
         ET_STATUSDETAIL = lt_et_statusdetail
         ET_MESSAGES = lt_et_messages
    EXCEPTIONS
        DB_UPDATE_ERROR = 1
. " REYC_STATUS_UPDATE




ABAP code using 7.40 inline data declarations to call FM REYC_STATUS_UPDATE

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 VRGNG FROM TJ01 INTO @DATA(ld_id_action).
 
 
 


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!