cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to activate deletion flag for production order

rajesh_sutar2
Active Contributor
0 Kudos

Hi Experts,

I have created production order with reference to sales order. Now status of production order is REL PRC CSER GMPS MACM RESA SETC.

I have already done goods issue & Goods receipt for this order and reversed the same all GI & GR.

Now balance on order is also zero.

My query is that I trying to activate deletion flag for this order but I found option of Activate is disable.

Pls help.

Regards,

Rajesh

Accepted Solutions (0)

Answers (8)

Answers (8)

former_member223981
Active Contributor
0 Kudos

There are a number of reasons why it could be greyed out. If we could see the statuses in your order, it might be more clear as to the specific reason.

If you would like to debug it, you need to set a breakpoint at FM CO_ZF_BUILT_FCODE_EXCL_TAB. In here, check when "fc_lvms" gets appended to the EXCL* internal table. And check why it gets appended.

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Probably, this is an assembly order. The deletion flag cannot be set manually for static assembly orders.

A production order is recognized by the system as an assembly order because of the internal system I0170 on table JEST. Whenever this status is set for the order, the deletion flag can't be removed from the order on transaction CO02.

See question 8 of the FAQ note 540834:

8.  Question:

    When are the deletion flags for assembly orders set?

    Answer:

    You cannot manually set the deletion flag for static assembly
    orders. Instead, the system automatically sets the deletion flag
    when the corresponding sales order item:

    o  is completed (only for static assembly orders),

    o  is canceled,

    o  or is deleted.

    The deletion flag for assembly orders with dynamic assembly is set
    automatically if the corresponding sales order item:

    o  is canceled,

    o  or is deleted.

    You can set the deletion flag manually using the archiving PP_ORDER
    and, as of Note 1628094, using the transaction for changing the
    order.

BR

Caetano

Former Member
0 Kudos

Hi Rajesh,

Before putting, deletion flag you need to put status TECO (technical completion) or CLSD (Closed) and then you need to complete period end closing process by Finance and then after settlement of order deletion flag is put.

Follow this process. Or atleast you just want to put deletion flag then first go to Functions (Menu) --> Restrict Processing --> Choose Technical Completion of order and then you try to put deletion flag.

Check & revert. Hope this helps.

Regards,

Tejas

former_member206498
Contributor
0 Kudos

Hi Rajesh,

Check whether this order is an assembly order or not by looking for status I0170/ORD in status overview or in JEST table (pass the object number of the order to the table). If yes, then you cannot set the deletion flag directly. You have to remove it first in the table and then perform deletion.

Regards,

Julian

sap_pp13
Active Contributor
0 Kudos

Rajesh, CSER status in your order means error w.r.to cost calculation. Not sure how order balance can be zero when you have mentioned CSER status existing. Please check.

0 Kudos

Hi

it is a long shot but you can try SARA for object PP_ORDER and step Preprocessing(Set deletion flag). Create a variant for the specific order and try to run it. Normally this is an alternative of setting the DLFL indicator (but does not answer the original question why you cannot set DLFL in the order..)

Cheers

Panagiotis

former_member184666
Active Contributor
0 Kudos

Hello Rajesh,

Refer SAP note 540834  which details the pre-requisites to set the deletion flag.

Thanks & Regards,

Ramagiri

former_member184737
Active Contributor
0 Kudos

Hi Rajesh,

          It look like you have already implemented user status against your order type. It may be the reason system not allowed to set the deletion flag. In standard system will allow to set deletion flag if order balance is Zero. Anyhow you try to use read PP master data and try to set deletion flag since system will change REL status to CRT.You check with user status where what logic is used.

Thanks

rajesh_sutar2
Active Contributor
0 Kudos

Hi AKS,

I did same already but even option is disable.

Former Member
0 Kudos


Hi Rajesh,

Please check with basis/Security team wheter you are having deletion authorization or not.

Thanks,

Bala.

rajesh_sutar2
Active Contributor
0 Kudos

Hi Bala,

Thanks for your reply.

I am able to activate deletion flag for other production order. That means there is no authorization issue according me.