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

上一篇 / 下一篇  2008-05-29 13:06:07 / 个人分类:PP

Note 390635 - Change documents for production and process orderITPUB个人空间)B:eP+Oc5~ o

f1j8ER8["nd0SummaryITPUB个人空间 q[!|:{I LN X

\ g+Q8HK)u2BCo.^0SymptomITPUB个人空间#I6L!Y%szv9Vm
You cannot activate the creation of change documents for production orders and process orders.
yiUQi@U"nV0Customizing 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.
_?pUU:r]9d8Q;P`7q0
n1^&HfB s.^ EK)r0ITPUB个人空间-ION#L7]
Other termsITPUB个人空间b-h"eu5L5C
Production order, process order
.N-mC6Q9j[0T399X-FLG_DOCITPUB个人空间'[ry;aI
SPRO, BADI
ns?)IE0
qi8Ww/TdV]?W0ITPUB个人空间MEee;bMq&I4y
Reason and PrerequisitesITPUB个人空间yN!E/_#A$O(OZ
It 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.
%e3z5H ]_6`.km%h0The 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.
5qyr_|%w0ITPUB个人空间UHJ*F?%w`0C Y
Example: A production order contains 10 operations and 1000 componentsITPUB个人空间C5`CL'B5W9a+nDB

A%cI]iX SEGQ'Y6m9u0Case 1: You change the requirements quantity for a component manually.ITPUB个人空间FC,cD:{Vu\M8|
           The system creates a change document for the changed component.
{o0A(t?r$|i0
cza;H&\/]0Case 2: You change the planned quantity in the order header manually.
|:ZD y-M.Z;vS0           The change causes that the quantites are changed automatically for all operations and components. The system would create
T:[/N\ e`/R W!}0
x"e6puqi mR0a change document for the changed header quantity,ITPUB个人空间-[&c2]5wh6[~0]P8Z
ten change documents for the automatically changed operation quantities (if defined) and
2k)f uXa4E@L%[6V0thousand change documents for automatically changed component quantities.
J$|K5V&L'O0ITPUB个人空间o+kp0WP%I

-Nk;NH b5l$nf\a1c Iq0Solution
'E?*X$XWwR MF0Use 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)".
@!l2[hl9~0Here you can define additional logic to decide whether or not the system creates change documents.ITPUB个人空间*[r urMp2U.z-z
For this, you can access either the SAP standard tool for creating change documents or your own tool.ITPUB个人空间7ATM:a"qUP\+nS
ITPUB个人空间"O:Wch'I C
The 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.ITPUB个人空间4F#VR D*n#Kk2^ a C
Remember that a dialog box must not be accessed and a message must not be issued from the exit.
0j`3x/{&x U%hB0ITPUB个人空间 bD9g {(mb2g| R L
You can use the attached source code as a template for accessing the creation of change documents.
8EiXz2bl0You 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个人空间}:I;S~o RY#T/[
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.
t K(d e|5n9]#}0It 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.ITPUB个人空间,efLELA W#f Y
The following tables of the order may have to be taken into account for this type of change document object:
1\c)Vi5HQ&sw i,|0           Table       Description                        Production Process order
n:g)t$?1d*M0
e*Y6\+jx~0AFAB        Relationships                                        XITPUB个人空间g V)wA$J(f?k%l{
AFFH        Production resource/tool                  X
rK*\Y3r P;Yv'by5I0AFFL        Work order sequence                      X          X
G)I#GJ;xd?r~#z0AFFT        Process instructions                                XITPUB个人空间/EP4g9u@!ig.`I
AFFV        Process instruction values                          X
^0fNh Qd/B:E(Z0AFKO        Order header data PP                      X          X
8~JrJ3J2Q&].]P0q0AFPO        Order item                                X          XITPUB个人空间 N%{$UWPn
AFVC        General operation                        X          X
(p5V`.]g0AFVU        User-specific data operation              X          XITPUB个人空间+nR,j5[u(M$N5W
AFVV        Quantities/dates/values in the operation  X          X
[(VX~|5e[0AUFK        Order header general                      X          X
{6PE2e?sC0DRAD_PORDER Link: Document to order                   X
;MRLirU@*_0MLST        Trigger point                            X
C y(Q-Cr5e0RESB        Reservation                              X          XITPUB个人空间U9]P1M8uC
RSDB        Index reservation/direct procurement      X          XITPUB个人空间 FGDD"e/?-W p
ITPUB个人空间O:sP4j&T{+g
Important:ITPUB个人空间b3g[@sN^*dX
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.
jlvD%x\e$B0
KL3[3qi0EM0To 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.
-adoWk$q,C0a0You 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.
h `SS?0You 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.
]C@2X'R {S:sB0For 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:
8G-CV/S1K~? K0Parameter name        Type spec.      Reference type    Optional EXP_AFFT               LIKE            AFFTBITPUB个人空间FM.y&y;M:D(T KRn(QX5R n
EXP_AFFV               LIKE            AFFVB
6U,r^dp8{&E-g:_J s0
p%|jK qtK0a0To be able to archive the generated change documents, you must implement the program modification from Note 508212 in your system.
S:w"_Z-d0

user exit:

PPCO0001

PPCO0007ITPUB个人空间u4As"\V'_"PXn5B


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-08-20  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 4991
  • 日志数: 760
  • 文件数: 1
  • 书签数: 4
  • 建立时间: 2008-01-17
  • 更新时间: 2008-08-20

RSS订阅

Open Toolbar