cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of Single Master Data records per routine

Former Member
0 Kudos

Hello *,

I have a characteristic defined as infoprovider to have a flexible update rule.

In the startroutine I want to loop at the incoming datarecords which could have a flag that this record is requested for deletion.

I have to check in the startroutine if this record has a sid that is used for transactional data to avoid sid errors after deletion. if it has one I would mark this record as used for reporting, if not I would write directly into the master data into field "changeflag" a 'D' for deletion.

Afterwards I would start a changerun on the object to execute the deletion and activate the infoobject.

Is there a function module wich does not check the whole content of one infoobject but single datarecords for sid and usage in transactional data?

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

Ashwin
Active Contributor
0 Kudos

Hi!

I am not much adept in this area. You can use a routine for updating that perticular field where you are writing "D". Because update rules are applied for single record at a time. you can verify in this routine whether this perticulat record has a sid or not.hope you got the point. It did the same in a relatively same situation.

with regards

Ashwin

Former Member
0 Kudos

In the function module RSDMD_DEL_MASTER_DATA you can pass a parameter I_T_CHAVL. This allows you to restrict the values you want to delete. The fm automatically checks if the record is still used so you cannot delete used values.

Best regards

Dirk

Former Member
0 Kudos

You also get a protocoll and a where used list (parameters E_T_ULIST*)

Dirk