cancel
Showing results for 
Search instead for 
Did you mean: 

how i delete Released DIRs

Former Member
0 Kudos

hi, all,

acually i want delete DIR which are already released.

if once i relesed DIR, system won't allow me to change.

in this case i m not able to make DIR as 'deltion indicatore'

how i can delete those. which are released.

rgds,

ben

urgent

point awating,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Under Control Data Define document types Define document statuses,

you reset the Released indicator for the status that defines the document as released.

Then you can set deletion indicator for that DIR in that Status

To delete the documents physically from the database, you must run the MCDOKDEL program using the ABAP/4 editor. This program deletes all documents of a selected document type for which this indicator is set.

Former Member
0 Kudos

hey, srinivas?

i understood?

but 1]i have digital signaure for them.

2]i m working in production server

3] no access to change status here.

so how i could i do?

yesterday, what u send no i deleted dir, which are not released?

the thing is released wit digital signaure?

rgds

ben

christoph_hopf
Advisor
Advisor
0 Kudos

Dear Ben,

regarding your last description I think it would be useful to implement a new status to your network like

status 'Archived' or something else which indicates that this status should be used for documents which are no longer valid. This status should be no status type 'S' and you have to maintain it as follow-up status to your release status.

Then it should be possible to change the status in CV02N from released to your new status, set the deletion flag and then you can delete it with report MCDOKDEL.

Best regards,

Christoph

P.S.: Please reward points for useful information.

Former Member
0 Kudos

I don't think it is possible to deleted the document with out change access rights.

Get the access rights to change the document & then set deletion flag

or

Try setting the document deletion indicator using ABAP Program

Go to se38

and execute the following code

tables draw.

select single * from draw

where dokar = '<documenttype>'

and doknr = '<documentnumber>'

and dokvr = '<version>'

and doktl = '<part>'.

draw-loedk = 'X'.

update draw.

commit work.

The above program will set the document deletion flag.

if you are not an ABAPER get the help from ABAPER to excecute the above logic

Former Member
0 Kudos

thanks, christoph,

u see i tried according u , but here the document have signaure strategy and set this by using status 's' ?is it right? so it is locked status

then once relesaed? how i can delete.

here every released doc have digital signaure?.

help me,

rgdrs

ben

Former Member
0 Kudos

I think the only option to set deletion indicator in your case will be by the ABAP program.

i tested the code which i have given to you earlier. it works, since APAP can access Table entries directly will out any authorization.

Write a program to set deletion flag.

ie. LOEDK filed in DRAW table.

if the value of the field LOEDK in DRAW table is set as 'X'. Deletion flag will be set for the particular Document info record.

This will definitely work please try it with help of ABAPER.

Former Member
0 Kudos

hey srinivas

yes it is working fine? today i deleted somany DIR which r not required?

but sys not allwoing to set 'deltion flag' for the [status 's']relesed Doc with digital signaure,

those doc acully locked u know.

ur sujession is good? but check how to delet released documents individully?

help, me

don't mind i wiill!!!!!!!!

ben

Former Member
0 Kudos

Have You tried to set the deletion flag with the below code.

tables draw.

select single * from draw

where dokar = '<documenttype>'

and doknr = '<documentnumber>'

and dokvr = '<version>'

and doktl = '<part>'.

draw-loedk = 'X'.

update draw.

commit work.

this will definitely work.

Even though the document is in released state the above code will set the deletion flag.

Former Member
0 Kudos

this one i m not tried?

coz i don't know much abut abapcodes?

ok i will be trying?

thnks,

ben

Former Member
0 Kudos

Hello All,

I have also the same problem. All the settings I had done in role to delete document with particular status, but when try to set delete indicator for the DIR which I want to delete, it is throwing msg that "No Authorization to delete document for 'document type' with status released". I m stuck out with this as tried all the possibilities.

Kindly give suggestion.

Regards,

Punam Modi

Former Member
0 Kudos

hey, punam,

please above discussion clearly,

this will needs abapaer help?

send to test benakarajes at g mail

i will send some sshots?

rgdrs,

ben

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Get the authorization for following objects

C_DRAW_TCD check activity 06

C_DRAW_TCS check activity 06

Then system will allow u to set deletion indicator even though its released

Regards

Sham

Former Member
0 Kudos

hey, sham, i tried ur solution, but not working yaar?

other thing usually, sys admin havefull authoriztion. from his log in also i treid, the status is not changing?

coz, here doc is released with digital signaure?

rgrds,

ben

Former Member
0 Kudos

hey, sham, i tried ur solution, but not working yaar?

other thing usually, sys admin havefull authoriztion. from his log in also i treid, the status is not changing?

coz, here doc is released with digital signaure?

rgrds,

ben