删除类分配【转】
Variant Configuration – Delete Class Assignment
04 Dec
After yesterday’s post, I thought I’d throw this one in there too. In your Development environment you may find that you need to delete class assignment of a class or another material inside of CL24N or CU42. It could be you need a smaller class, or just accidentally linked a material that shouldn’t have been connected. Why isn’t the issue. You got yourself in a pickle, it’s dev, so you’re willing to live with the potential inconsistencies in order to get your model right. After all, like we discussed yesterday, you absolutely, positively do NOT do this in production. Then you use ECM or make a new material and replace it like any other engineering type change. Ok… now that I have that out of the way, let’s get to the good stuff =) You can use SE38 to put the breakpoint here straightway (it’s by far the fastest way).
Program: LCLFMF2D
Form: LOESCHEN
if sy–subrc is initial.
call function l_check_function
exporting
cucp_var_class_type = allkssk–klart
cucp_root_object_key = allkssk–objek
cucp_root_object_table = sobtab
cucp_datuv = rmclf–datuv1
cucp_aennr = rmclf–aennr1
exceptions
deletion_allowed = 1
deletion_allowed_with_ecm = 2
others = 3.
case sy–subrc.
在if sy–subrc is initial. 处打断点,然后手动 Set sy-subrc = 1,跳过接下来的检查函数。
然后直接F8执行下去就OK啦.
Then execute the remainder of the code (F8). That’s all there is to it
it’s scary that it could be that easy to delete class assignment, even though SAP transactions won’t let you do it =).
If you ever need more help in VC or SM, please use the contact us button above and let us know what we can do to help.
thanks for reading,
Mike
CL20N删除物料类分配是提示“配置对象:分配不能被删除”
暂时没有找到好的方法删掉,需要SE38debug才能删,
需要注意的是要检查物料的配置是否已经在销售订单或者工单中被使用,防止删掉后对业务有影响。
文章来自于网络,如果侵犯了您的权益,请联系站长删除!