Ansicht
Dokumentation

RSDMD_DEL_MASTER_DATA - Deleting Master Data

RSDMD_DEL_MASTER_DATA - Deleting Master Data

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This module deletes all master data belonging to an InfoObject optionally (if you set the flag I_FLG_DELETE_ALL) or a given amount (that given in I_T_CHAVL) as long as it is not being used elsewhere (for example in an InfoCube, in a hierarchie or as an attribute). Only unused master data is deleted.

The returned table specifies where which SIDs are being used. In order to save time with the where-used list, only the first use found for each SID is specified. If you delete it there, it is possible that it has not been deleted the next time. You can then look in the table again to see where the current SID is being used.

Furthermore, when all of the master data is to be deleted, only the

first 1000 pieces of data used are displayed since the process takes place in the background afterwards. The return value e_result delivers the result of deleting.

Import parameters:

i_iobjnm: The characteristic for which the master data is to be deleted.

i_flg_delete_all: All of the master data for this characteristic are to be deleted. If this flag is not set, the table i_t_chavl must be filled.

i_flg_delete_texts: These texts are also to be deleted.

i_t_chavl: A table of master data that should be deleted. Do not set Flag I_flg_delete_all if you only want to deleted these values.

i_flg_dialog: If this flag is set, messages will tell you and after it is clear whether and how many can be deleted, you will be asked if you want to do this. If this flag is not set, there will be no communication in this regard. If all of the desired master data cannot be deleted then none will be deleted.

Export parameters:

e_result: Return value:

0: All master data is deleted.

1: All unused master data was deleted.

2: The deleting process was started in the background.

3: There is no master data available.

4: No master data was deleted: Either because all of it was in use or because the user did not wish to delete when asked, or because the module with i_flg_display = ' ' was called and parts of the master data are still being used.

5: An error occurred during deleting.

e_t_ulist_dim: This table specifies the data that is being used in dimension tables for InfoCubes.

e_t_ulist_atr_nav: This table specifies the data that is being used as a navigation attribute.

e_t_ulist_hie: This table specifies the master data that is being used in hierarchies.

e_t_ulist_hie_node: In dieser Tabelle sind die Stammdaten, die in Hierarchieknoten verwendet werden, angegeben.

Example

Notes

Further information





Parameters

E_COUNT_USED
E_PROT_EXTNUM
E_PROT_OBJECT
E_PROT_SUBOBJECT
E_RESULT
E_T_PROTOCOL
E_T_SIDVAL_USED
E_T_ULIST_ATR_NAV
E_T_ULIST_DIM
E_T_ULIST_HIE
E_T_ULIST_HIE_NODE
E_T_ULIST_ODSO
E_T_ULIST_QUERY
I_CALLER_MAINTENANCE
I_FLG_DELETE_ALL
I_FLG_DELETE_SIDS
I_FLG_DELETE_SIDS_ASK
I_FLG_DELETE_TEXTS
I_FLG_DELETE_XXL_ATTR
I_FLG_DIALOG
I_FLG_FORCE_DELETE
I_FLG_SIMULATION
I_IOBJNM
I_T_CHAVL
I_WITHOUT_PROTOCOL

Exceptions

CHKTAB_NOT_GENERATED
ENQUEUED
ILLEGAL_INPUT
IOBJ_ERROR
NO_AUTHORITY
NO_CHKTAB
PROGRAM_ERROR
QUEUE_ERROR
RSDPW_ERROR
SID_ERROR

Function Group

RSDMD

CL_GUI_FRONTEND_SERVICES - Frontend Services   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4466 Date: 20240523 Time: 121726     sap01-206 ( 96 ms )