06-05-2006 5:39 AM
06-05-2006 5:43 AM
06-05-2006 5:46 AM
Say for MARA,MAKT
Like i want to delete a material and its entire record.
06-05-2006 5:50 AM
You should use the respective BAPI's for doing any king of operations.
BAPI_MATERIAL_SAVE_DATA with a deletion indicator will put the deletion indicator. Master Data is never deleted from the tables, its only a deletion indicator in the database.
Regards,
Ravi
Note :Please mark the helpful answers
06-05-2006 6:04 AM
How to check the deletion indicator in BAPI_MATERIAL_SAVE_DATA so as mark a record off.
06-05-2006 6:08 AM
Hi,
There is the field DEL_FLAG in the BAPI_MARA which is the parameter of the function.
Set this field and the material will be marked as deleted. You also need to set X in the structure BAPI_MARAX for all the fields that you want to change.
Regards,
Ravi
Note :Please mark the helpful answers and close the thread if the issue is resolved.
06-05-2006 5:49 AM
Hi,
This is not recommended as it might cause further problems.
rgds,
latheesh
06-05-2006 6:01 AM
HI Anirban,
YOu can delete it through a dummy program.
DELETE FROM mara CLIENT SPECIFIED
WHERE MANDT = '020' AND
matnr = '12245' and
ersda = '20051111' AND
ernam = 'JTHOMAS'.
Regards,
Susmitha.
Mark helpful answers.
06-05-2006 6:01 AM
Hi,
Write code 'delete from mara where matnr eq 1. (specify the evaluating condition here).
Regards.
Lavanya.