删除类分配【转】
时间:2023-01-01 19:00:00
Variant Configuration – Delete Class Assignment
04Dec
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
ifsy–subrcisinitial. callfunctionl_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. casesy–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才能删,
需要注意的是,检查材料的配置是否已在销售订单或工单中使用,以防止删除后对业务产生影响。