SAP DATASET_ENTRY_USAGE Function Module for Maintenance of Where-Used List for Data Set Entries
DATASET_ENTRY_USAGE is a standard dataset entry usage SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintenance of Where-Used List for Data Set Entries 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 dataset entry usage FM, simply by entering the name DATASET_ENTRY_USAGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RGSU
Program Name: SAPLRGSU
Main Program: SAPLRGSU
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DATASET_ENTRY_USAGE 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 'DATASET_ENTRY_USAGE'"Maintenance of Where-Used List for Data Set Entries.
EXPORTING
* CLIENT = "Client
* ACTION = 'I' "Insert, Delete, Delete All (I/D/A)
DATA_SET = "Data Set ID
RW_TABLE = "Report Writer Table
DATA_SET_ENTRY = "Data set entry
SEQNR = "Line Number in Data Set
IMPORTING Parameters details for DATASET_ENTRY_USAGE
CLIENT - Client
Data type: SY-MANDTOptional: Yes
Call by Reference: No ( called with pass by value option)
ACTION - Insert, Delete, Delete All (I/D/A)
Data type: CDefault: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATA_SET - Data Set ID
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
RW_TABLE - Report Writer Table
Data type: T804F-TABOptional: No
Call by Reference: No ( called with pass by value option)
DATA_SET_ENTRY - Data set entry
Data type: T804F-DSENTRYOptional: No
Call by Reference: No ( called with pass by value option)
SEQNR - Line Number in Data Set
Data type: SIMPLEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DATASET_ENTRY_USAGE 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_client | TYPE SY-MANDT, " | |||
| lv_action | TYPE C, " 'I' | |||
| lv_data_set | TYPE C, " | |||
| lv_rw_table | TYPE T804F-TAB, " | |||
| lv_data_set_entry | TYPE T804F-DSENTRY, " | |||
| lv_seqnr | TYPE SIMPLE. " |
|   CALL FUNCTION 'DATASET_ENTRY_USAGE' "Maintenance of Where-Used List for Data Set Entries |
| EXPORTING | ||
| CLIENT | = lv_client | |
| ACTION | = lv_action | |
| DATA_SET | = lv_data_set | |
| RW_TABLE | = lv_rw_table | |
| DATA_SET_ENTRY | = lv_data_set_entry | |
| SEQNR | = lv_seqnr | |
| . " DATASET_ENTRY_USAGE | ||
ABAP code using 7.40 inline data declarations to call FM DATASET_ENTRY_USAGE
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 MANDT FROM SY INTO @DATA(ld_client). | ||||
| DATA(ld_action) | = 'I'. | |||
| "SELECT single TAB FROM T804F INTO @DATA(ld_rw_table). | ||||
| "SELECT single DSENTRY FROM T804F INTO @DATA(ld_data_set_entry). | ||||
Search for further information about these or an SAP related objects