SAP /SAPSLL/PREVD_READ_DATA Function Module for
/SAPSLL/PREVD_READ_DATA is a standard /sapsll/prevd read data 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 /sapsll/prevd read data FM, simply by entering the name /SAPSLL/PREVD_READ_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPSLL/PREVD_SAVE
Program Name: /SAPSLL/SAPLPREVD_SAVE
Main Program: /SAPSLL/SAPLPREVD_SAVE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPSLL/PREVD_READ_DATA 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 '/SAPSLL/PREVD_READ_DATA'".
EXPORTING
* IV_FLAG_PREVD = 'X' "
* IV_FLAG_PREVDITM = "
* IV_FLAG_PREVDNEG = "
* IV_FLAG_READ_DEP_TABLES = "
* IS_DEBUG = GS_DEBUG "
IMPORTING
ES_PREVD_DB = "
CHANGING
CS_OBJ_CRIT = "
EXCEPTIONS
NO_DATA = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for /SAPSLL/PREVD_READ_DATA
IV_FLAG_PREVD -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_FLAG_PREVDITM -
Data type: XFELDOptional: Yes
Call by Reference: Yes
IV_FLAG_PREVDNEG -
Data type: XFELDOptional: Yes
Call by Reference: Yes
IV_FLAG_READ_DEP_TABLES -
Data type: XFELDOptional: Yes
Call by Reference: Yes
IS_DEBUG -
Data type: /SAPSLL/DEBUG_SDefault: GS_DEBUG
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPSLL/PREVD_READ_DATA
ES_PREVD_DB -
Data type: /SAPSLL/PREVD_DB_SOptional: No
Call by Reference: Yes
CHANGING Parameters details for /SAPSLL/PREVD_READ_DATA
CS_OBJ_CRIT -
Data type: /SAPSLL/PREVD_OBJ_CRIT_SOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DATA -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPSLL/PREVD_READ_DATA 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_no_data | TYPE STRING, " | |||
| lv_cs_obj_crit | TYPE /SAPSLL/PREVD_OBJ_CRIT_S, " | |||
| lv_es_prevd_db | TYPE /SAPSLL/PREVD_DB_S, " | |||
| lv_iv_flag_prevd | TYPE XFELD, " 'X' | |||
| lv_internal_error | TYPE XFELD, " | |||
| lv_iv_flag_prevditm | TYPE XFELD, " | |||
| lv_iv_flag_prevdneg | TYPE XFELD, " | |||
| lv_iv_flag_read_dep_tables | TYPE XFELD, " | |||
| lv_is_debug | TYPE /SAPSLL/DEBUG_S. " GS_DEBUG |
|   CALL FUNCTION '/SAPSLL/PREVD_READ_DATA' " |
| EXPORTING | ||
| IV_FLAG_PREVD | = lv_iv_flag_prevd | |
| IV_FLAG_PREVDITM | = lv_iv_flag_prevditm | |
| IV_FLAG_PREVDNEG | = lv_iv_flag_prevdneg | |
| IV_FLAG_READ_DEP_TABLES | = lv_iv_flag_read_dep_tables | |
| IS_DEBUG | = lv_is_debug | |
| IMPORTING | ||
| ES_PREVD_DB | = lv_es_prevd_db | |
| CHANGING | ||
| CS_OBJ_CRIT | = lv_cs_obj_crit | |
| EXCEPTIONS | ||
| NO_DATA = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " /SAPSLL/PREVD_READ_DATA | ||
ABAP code using 7.40 inline data declarations to call FM /SAPSLL/PREVD_READ_DATA
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_iv_flag_prevd) | = 'X'. | |||
| DATA(ld_is_debug) | = GS_DEBUG. | |||
Search for further information about these or an SAP related objects