Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_DOCUMENT_DELETE ?

Former Member
0 Likes
1,691

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 ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,415

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,416

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

Read only

0 Likes
1,415

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 ?

Read only

0 Likes
1,415

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

Read only

0 Likes
1,415

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 .

Read only

0 Likes
1,415

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 ' ?

Read only

0 Likes
1,415

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.

Read only

0 Likes
1,415

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