如何记录production order 与processing order的修改记录

Note 390635 - Change documents for production and process order
_ ~ dC rk)e5P}190059
H{ `(R9?,mw8f%T190059SummaryITPUB个人空间]t7{#g,h u @4v

vH8`E?T!i)Ek_190059Symptom
(A$L zxhw3mmq190059You cannot activate the creation of change documents for production orders and process orders.
jW/,Q/m.h190059Customizing table T399X (parameters dependent on order type) contains field FLG_DOC but you cannot maintain it using the Customizing transactions for production or process orders.ITPUB个人空间4ybPrf ?GUq
ITPUB个人空间Of @�v.k*Mu@3X

?6l zh]B190059Other terms
e;l7YiN${!E190059Production order, process order
A-KFV5o190059T399X-FLG_DOCITPUB个人空间!n7q@bhk
SPRO, BADIITPUB个人空间(P)V`8HD

O-p!e,^!h9Z190059
`"cw.v(/190059Reason and Prerequisites
8z$`FH&nqR7])_190059It is not intended to use the SAP standard tool for the creation of change documents for production or process orders in the SAP standard system. The indicator in table T399X is only interpreted by maintenance orders and networks.
:gyu4FMh)~_U190059The reason for this is that the tool cannot determine dependencies of changes and thus would log too many changes that would have a negative effect on the runtime.ITPUB个人空间n w(d*[#zXW2H
ITPUB个人空间5u,_7pT(j
Example: A production order contains 10 operations and 1000 componentsITPUB个人空间RmQq%UF$Q)y
ITPUB个人空间"Gf%s4[[t
Case 1: You change the requirements quantity for a component manually.ITPUB个人空间5I9KliT.x
           The system creates a change document for the changed component.
zK A+Z(P7~190059
B-|X)]Lj N190059Case 2: You change the planned quantity in the order header manually.ITPUB个人空间(V%~u,lP+l0x
           The change causes that the quantites are changed automatically for all operations and components. The system would create
8Ee7s&hYA/@190059
8{ M3U#}"vBr(q#h cH1|190059a change document for the changed header quantity,
?"L3M_#J*X2HE190059ten change documents for the automatically changed operation quantities (if defined) andITPUB个人空间&KO-P2t kfE
thousand change documents for automatically changed component quantities.
}T(S"l(S:Gm.Zu"S190059ITPUB个人空间.Y+}@u/$]1L

5TgqmK0d3V190059SolutionITPUB个人空间T$~ S9h}
Use the SAP enhancement PPCO0007  that is processed when you save order changes. You can find the SAP enhancement in Customizing under the menu path "Shop Floor Control or Production Planning for Process Industries -> Process Order -> System Modifications -> Enhancements for Order Maintenance -> Enhancement when Saving an Order (Header Fields)".
+qQ#W ^g.X190059Here you can define additional logic to decide whether or not the system creates change documents.
)Nj5O;`-R#kgW h190059For this, you can access either the SAP standard tool for creating change documents or your own tool.ITPUB个人空间sNz"FHaH

j#]F'L/lh:a+~R190059The call of the customer exit takes place in function module CO_ZV_ORDER_POST when you save. The current data of an order header is supplied via parameter HEADER_IMP. For collective orders the exit can be called several times - once for each order in the collective order.
#@(`b2w!@rw(T{190059Remember that a dialog box must not be accessed and a message must not be issued from the exit.
IK |2CH:n ^~'~190059ITPUB个人空间W_R(^3M2L-o
You can use the attached source code as a template for accessing the creation of change documents.ITPUB个人空间 V WTg} X%Ad-@
You can also see in the source code how the current and original data of the different order objects can be provided by internal tables.ITPUB个人空间%p.R1}z,b@1P
The example source code uses function module ORDER_WRITE_DOCUMENT that logs - for the ORDER change document object - the changes for the tables transferred to the module.ITPUB个人空间,`[ds4w v
It may be appropriate to define a separate object for change documents for orders, for example ZZORDER. If required, you can use the ORDER standard object as a template.
X?~vbs190059The following tables of the order may have to be taken into account for this type of change document object:
.{ES S9v^:bI;/190059           Table       Description                        Production Process order
8L4J-f7ft5]~o!I190059ITPUB个人空间l.Mlbuai{_xz*L�i
AFAB        Relationships                                        XITPUB个人空间.g"I;e3U}.G0EK6C
AFFH        Production resource/tool                  XITPUB个人空间.nIu Ry/v-f-dy
AFFL        Work order sequence                      X          XITPUB个人空间N(n~7K"GG2|8S
AFFT        Process instructions                                XITPUB个人空间cY!r Fl(?.N:c%[
AFFV        Process instruction values                          XITPUB个人空间*A uYT/e
AFKO        Order header data PP                      X          XITPUB个人空间w0fFn5{PDb
AFPO        Order item                                X          XITPUB个人空间 CU?*t;uq#m
AFVC        General operation                        X          XITPUB个人空间*xi0VM d;c:t3a1DAj
AFVU        User-specific data operation              X          X
)p.av._L/AW190059AFVV        Quantities/dates/values in the operation  X          XITPUB个人空间um;h F})X;U
AUFK        Order header general                      X          XITPUB个人空间)gd:DL*|0|*W
DRAD_PORDER Link: Document to order                   X
$ZR} s.K|,o190059MLST        Trigger point                            X
0~Q:fH*F0v7/190059RESB        Reservation                              X          X
;V5x$XC4SIn;])v3}190059RSDB        Index reservation/direct procurement      X          X
F�N7j'X6z F@190059ITPUB个人空间G.~oo OW
Important:ITPUB个人空间 RhS^qSXn
The creation of change documents using the SAP standard tool requires that the indicator for change document creation is set for the data element that defines the affected table field. For example, this indicator is not set for data element GAMNG (total order quantity) in the standard system which is the reason why changes to the planned order quantity of the order header are not logged. The reason for this is that the GAMNG field of the AFKO table is defined using data element GAMNG.
$@1pZ7F Cp190059ITPUB个人空间Xs Z+U/m5BI/u
To be able to set the indicator for the creation of change documents without modifications and display change document data at a later stage, refer to Note 394887 (Enhancements for installing PH-ELR_100_46C) for Release 4.6C; as of Release 4.70 (SAP Enterprise), the Add-On is part of the R/3 standard system.
,g8yM&|]190059You can of course set the indicator for activating the creation of document changes manually for each data element using Transaction SE11, however, this changes the data element.
c7I [6m2`190059You can display the change documents using, for example, programs RSSCD100, RSSCD150, or RSSCD200. The display from the standard transactions of the order is not supported.ITPUB个人空间.p+G sG,b4_5z&Z
For Release 45B to 46B, you must also create function module CO_BR_AFFX_GET_TABLES_POST in function group COBR using Transaction SE37. Define the following TABLES parameters for the interface:
JY`b8o.s9F(~b190059Parameter name        Type spec.      Reference type    Optional EXP_AFFT               LIKE            AFFTBITPUB个人空间"{'H/v)cb*N7|-Uj f
EXP_AFFV               LIKE            AFFVBITPUB个人空间 / B]H$pt6WG*O$?I
ITPUB个人空间? HM/aB
To be able to archive the generated change documents, you must implement the program modification from Note 508212 in your system.
!rV"n!u9?j190059

user exit:

PPCO0001

PPCO0007 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值