Skip to Content
author's profile photo Former Member
Former Member

Deletion of Single Master Data records per routine

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 12:56 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 10, 2005 at 03:02 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.