cancel
Showing results for 
Search instead for 
Did you mean: 

Delete P.R.permanantly from the system

Former Member
0 Kudos

I s there any programme Or t-code available in sap mm that will delete the all the purchase requisitions (P.R) for selecting certain criteria.

In other words,how to delete all the P.R. in sap mm with certain criteria so that they can not be displyed in the system

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

GO to transaction code ME52N, select the line item mark deletion flag for the line item.

If you want to archieve the requisition number from SAP, please use transaction code SARA.

Answers (6)

Answers (6)

uday_chitale2
Explorer
0 Kudos

This message was moderated.

Former Member
0 Kudos

Alternative to deletion indicator is PR completion indicator.

Former Member
0 Kudos

Hi,

I added Closed Indicator in MASSOBJ but its not reflecting.

so i want to create new application exit with object type BUS2105

i want to add

Object type     Char 20          Func module

BUS2105     Bapi_Deletion     BAPI_Requisition_Deletion

Now i don know where to create char 20=Bapi_deletion

i tried available char20  but closed indicator is not flowing in New values for MASS Change option.

its indeed visible in PReq selection criteria in MASS tcode.

Plz respond..its urgent!!

Regards,

Preeti.PG

Former Member
0 Kudos

You can mass delete PurReqs by trx MEMASSRQ + field EBAN-LOEKZ. If this field is not in field list of the mentioned transaction you cann add it to table MASSFLDLST (SM30+MASSFLDLST).

Former Member
0 Kudos

Three ways of deleting PR's.

Use MASS and select deletion indicator for the PR under consideration.

Use ME52 to individually delete each line item.

Use SARA to permanently archive the PR.

Former Member
0 Kudos

hi nilesh,

in MASS, deletion indicator is not there to carry out..

if you know about that field.specify so that i can do the same

regards,

Preeti.Pg

Former Member
0 Kudos

Further to my responce below, same issue is discussed in detail in link

http://scn.sap.com/message/7942553

Former Member
0 Kudos

Preeti,

i belive field is not added in the config of MASS settings.

do the below steps.

go to TCode  MASSOBJ -->CAUTION MESSSAGE--> INGORE

SELECT object type : BUS2105 MASS_CHANGE_PURCHASE_REQ, in field list

option.

Clcik --> APPLICABLE TABLES-->Select EBAN-->Go to Field List--> Add new entries--> EBAN-LOEKZ

No go to MASS CHANGE you should be getting the field.

refer below thread also

http://scn.sap.com/thread/1872206

Zubair

If this field is not there then make a new entry, this is cross client table.

JL23
Active Contributor
0 Kudos

the link you added ends unfortunatly with a reply from me that I did not succeed using this procedure.

I just tried it again in my new IDES, and still I am not able to get the deletion indicator to the PR. I am able to get the field into the field list like described. And I can distribute a X into this field and can save. And I even get green messages that the changes where done.

But when I call the PR in ME23N, then it does not have any deletion indicator.

ajitkumar
Active Contributor
0 Kudos

same case with MASSFLDLST

Former Member
0 Kudos

Hi Jurgen,

I added Closed inidicator in MASSOBJ of PR object type BUS2105

still i am not able to see that indictor in new value section of MASS tcode

its reflecting in olde data selection criteria

Plz lt me knowalues section how to reflect the closed inidicator in new v

My client does not want DEletion indicator cause we can still create po on tht deleted PReq.

Plz suggest

urgent!!

Regards,

Preeti.PG

JL23
Active Contributor
0 Kudos

I already said that the deletion indicator does not work(had never worked for despite of some hundred times the people mentioned it here in the forum)

And the same recommendation with MASSFLDLST is made for the field EBAKZ.

which does not work too, because there is function module in SAP:

ME_LIMIT_FIELDS_RQ that limits the fields that can be used in mass transactions.

EBAKZ is a field in this function module hence it get deleted from mass maintenance fields.

so the left options is to use LSMW or to call a BAPI to get it done.

Former Member
0 Kudos

I am using BAPI and concluding this thread.

Former Member
0 Kudos

Hi,

Deletion of PR can be done using ME52N .This is only possible provided that no purchase order have been assigned. If po has been created, you can only Flag for Deletion.

To delete the PR, select the line(s) you wish to delete and then click on the dustbin icon

You cannot directly delete PRs (as most of other SAP documents). You can only mark them as "deleted". To delete them phisically from DB you have to "archive" them via transaction SARA.

The MRP RELAVENT PR deletion discussed in below link. please have a look. I hope this will resolve your issue. Thanking you.

http://www.sap-img.com/materials/how-can-we-delete-purchase-requisition.htm

Former Member
0 Kudos

Hi,

Use transaction Mass for the same, select object type as Purchase requition,here you can delete Multiple PRs also. use deletion Indicator-L

Hope this will resolve your Issue.

Regards,

Sandesh Sawant

Former Member
0 Kudos

hi Sandesh,

I was trying the deletion of pr using MASS, but in the new values to be changed column, i did not find

deletion Indicator-L to proceed further.

more over mass tcode to update or change the data of pr, one cannot delete from this tcode.

plz clarify

i have around 500 pr with xple line of items (max 20) to delete .

please suggest how to carry out.

Regards,

Preeti.PG