SAP FCO_REPORT_REWORK Function Module for









FCO_REPORT_REWORK is a standard fco report rework 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 fco report rework FM, simply by entering the name FCO_REPORT_REWORK into the relevant SAP transaction such as SE37 or SE38.

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



Function FCO_REPORT_REWORK 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 'FCO_REPORT_REWORK'"
EXPORTING
IS_SELECTION = "
* I_CUMULATED = 'X' "
* I_BY_PERIOD = "
* I_BY_BUDAT = "
* I_SHOW_ITEMS = ' ' "
* I_VALUATED_DOCUMENTS = 'X' "
* IS_VARIANT = "
* I_CHECK_AUTHORITY = ' ' "

EXCEPTIONS
ORDER_NOT_FOUND = 1 ERROR_DISPLAY = 2 NO_DOCUMENTS = 3 NO_AUTHORITY = 4
.



IMPORTING Parameters details for FCO_REPORT_REWORK

IS_SELECTION -

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

I_CUMULATED -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_BY_PERIOD -

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

I_BY_BUDAT -

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

I_SHOW_ITEMS -

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

I_VALUATED_DOCUMENTS -

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

IS_VARIANT -

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

I_CHECK_AUTHORITY -

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

EXCEPTIONS details

ORDER_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

ERROR_DISPLAY -

Data type:
Optional: No
Call by Reference: Yes

NO_DOCUMENTS -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FCO_REPORT_REWORK 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_is_selection  TYPE FCO_REPORT_SELECTION, "   
lv_order_not_found  TYPE FCO_REPORT_SELECTION, "   
lv_i_cumulated  TYPE C, "   'X'
lv_error_display  TYPE C, "   
lv_i_by_period  TYPE C, "   
lv_no_documents  TYPE C, "   
lv_i_by_budat  TYPE C, "   
lv_no_authority  TYPE C, "   
lv_i_show_items  TYPE C, "   ' '
lv_i_valuated_documents  TYPE C, "   'X'
lv_is_variant  TYPE DISVARIANT, "   
lv_i_check_authority  TYPE C. "   ' '

  CALL FUNCTION 'FCO_REPORT_REWORK'  "
    EXPORTING
         IS_SELECTION = lv_is_selection
         I_CUMULATED = lv_i_cumulated
         I_BY_PERIOD = lv_i_by_period
         I_BY_BUDAT = lv_i_by_budat
         I_SHOW_ITEMS = lv_i_show_items
         I_VALUATED_DOCUMENTS = lv_i_valuated_documents
         IS_VARIANT = lv_is_variant
         I_CHECK_AUTHORITY = lv_i_check_authority
    EXCEPTIONS
        ORDER_NOT_FOUND = 1
        ERROR_DISPLAY = 2
        NO_DOCUMENTS = 3
        NO_AUTHORITY = 4
. " FCO_REPORT_REWORK




ABAP code using 7.40 inline data declarations to call FM FCO_REPORT_REWORK

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_cumulated) = 'X'.
 
 
 
 
 
 
DATA(ld_i_show_items) = ' '.
 
DATA(ld_i_valuated_documents) = 'X'.
 
 
DATA(ld_i_check_authority) = ' '.
 


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!