SAP /PRA/READ_SET_STATEMENT Function Module for Read the settlement statement table
/PRA/READ_SET_STATEMENT is a standard /pra/read set statement SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read the settlement statement table 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 /pra/read set statement FM, simply by entering the name /PRA/READ_SET_STATEMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /PRA/SET_STATEMENT
Program Name: /PRA/SAPLSET_STATEMENT
Main Program: /PRA/SAPLSET_STATEMENT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /PRA/READ_SET_STATEMENT 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 '/PRA/READ_SET_STATEMENT'"Read the settlement statement table.
EXPORTING
I_RECORD = "Header Structure for Settlement Statement
I_TRANS_TYPE = "Type of Transaction
I_DOC_STATUS = "Document Status
I_RECORD_D = "Structure for Settlement Statement App
IMPORTING
E_COUNT = "
TABLES
REPORT_DATA = "Header Structure for Settlement Statement
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for /PRA/READ_SET_STATEMENT
I_RECORD - Header Structure for Settlement Statement
Data type: ROIUVL_SSTHOptional: No
Call by Reference: No ( called with pass by value option)
I_TRANS_TYPE - Type of Transaction
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_DOC_STATUS - Document Status
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_RECORD_D - Structure for Settlement Statement App
Data type: ROIURV_SSTDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /PRA/READ_SET_STATEMENT
E_COUNT -
Data type: IOptional: No
Call by Reference: Yes
TABLES Parameters details for /PRA/READ_SET_STATEMENT
REPORT_DATA - Header Structure for Settlement Statement
Data type: ROIUVL_SSTH_ALVOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Record not found for selected criteria
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /PRA/READ_SET_STATEMENT 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_e_count | TYPE I, " | |||
| lv_i_record | TYPE ROIUVL_SSTH, " | |||
| lv_not_found | TYPE ROIUVL_SSTH, " | |||
| lt_report_data | TYPE STANDARD TABLE OF ROIUVL_SSTH_ALV, " | |||
| lv_i_trans_type | TYPE C, " | |||
| lv_i_doc_status | TYPE C, " | |||
| lv_i_record_d | TYPE ROIURV_SSTD. " |
|   CALL FUNCTION '/PRA/READ_SET_STATEMENT' "Read the settlement statement table |
| EXPORTING | ||
| I_RECORD | = lv_i_record | |
| I_TRANS_TYPE | = lv_i_trans_type | |
| I_DOC_STATUS | = lv_i_doc_status | |
| I_RECORD_D | = lv_i_record_d | |
| IMPORTING | ||
| E_COUNT | = lv_e_count | |
| TABLES | ||
| REPORT_DATA | = lt_report_data | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " /PRA/READ_SET_STATEMENT | ||
ABAP code using 7.40 inline data declarations to call FM /PRA/READ_SET_STATEMENT
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.Search for further information about these or an SAP related objects