‎2006 Jun 30 4:14 PM
I am using this BAPI FM , bapi_document_delete to delete a document . When i execute it with the relevant parameters and debug to see the RETURN table , it doesnt get any message in the table ( no S , E or W ) message .
I am also calling the BAPI_TRANSACTION_COMMIT . When i go back to see the document , it still exists ?
‎2006 Jun 30 4:16 PM
It will not delete the entry physically from the database.
It will set a deletion indicator for that document, so that you cannot see that document in any Change/Display transaction.
Regards,
Ravi
‎2006 Jun 30 4:16 PM
It will not delete the entry physically from the database.
It will set a deletion indicator for that document, so that you cannot see that document in any Change/Display transaction.
Regards,
Ravi
‎2006 Jun 30 4:19 PM
Hi Ravi ,
I can see the document for which i set the indicator in the DISPLAY mode but not in the shange mode. Is this what happens ?
‎2006 Jun 30 4:21 PM
Hi ,
I think there must be some message or indication in the display transaction also ,saying that this document is marked for deletion.
It should not come in change transaction at all.
Regards,
Ravi
‎2006 Jun 30 4:24 PM
Yes , that message is displayed and going through cv02n (change) it only displays the doc in non editable mode with the message , doc is marked for deletion .
‎2006 Jun 30 4:27 PM
Then how are the docs actually deleted , becaiuse after removing these documents , i have to recreate them and i tried with one ( deleted it ( set the indicator ) ) and tried creating a new one , it still says the 'Document already exists ' ?
‎2006 Jun 30 4:29 PM
So, it is working okay.
Go to the master table DRAW and see the value for LOEDK field. If it is 'X', then it means it is practically deleted.
Regards,
Ravi
P.S: Please reward helpful posts.
‎2006 Jun 30 4:43 PM
Yes , the field is set to 'X' , but still it doesnt let me create a new document with same name and values ?
How can i do that ?
PS: assigning the points