Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Production orders

Former Member
0 Likes
1,942

Hi,

How can I maintain Changes documents for Production Orders.

is there any possibility to change in the Debug mode and test it

13 REPLIES 13
Read only

Former Member
0 Likes
1,709

i guess , yes you can maintain chnage documents for production order.

check in co02->Go to -> Change Management.

Read only

0 Likes
1,709

Hi I have changed the total QTY for the Production order, but I am unable to see any Document created over there.

Read only

Former Member
0 Likes
1,709

for automatic chnage document creation,

data element of qty GAMNG should have chanage document flag checked in its data element.

if you can change that , you will get automatic change documents created.

Read only

0 Likes
1,709

Hi thanks,

SAP NOTE -


390635 Has this data.

a) Use the SAP enhancement PPCO0007 that is processed when you save order changes (here you can define additional logic to decide whether or not the system creates change documents).

b) Define the object for change document for orders, e.g. ZZORDER (this is to identify that the change document is for the production order changes)

c) Identify the criteria to create the change document (define by biz user)

Example: create change document only if

o total order quantity of header has changed or

o planned quantity of component has changed or

o planned batch of component has changed or

o new component has been added or

o component has been deleted

d) Set the indicator for change document creation for the data element that defines the affected table field

Example:

Field Description Technical Name Data element Change Doc Indic Before Change Doc Indic After

Total order quantity CAUFVD- GAMNG GAMNG u201C u201C u201CXu201D

Basic finish date CAUFVD-GLTRP CO_GLTRP u201CXu201D u201CXu201D

Component Material RESBD-MATNR MATNR u201CXu201D u201CXu201D

Component Requ2019t Qty RESBD-MENGE CO_MENGE u201C u201C u201CXu201D

There are 2 options to set the indicator for creation of change document:

o Set the indicator manually for each data element using Transaction SE11, however, this changes the data element.

o 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.

(2nd option seems an add-on applicable for pharmaceutical industry, so we may

Choose the 1st option)

e) From the user exit EXIT_SAPLCOZV_001, write the code for creating change document (source code has been provided by the OSS note to be used as a template for creating change document).

but I am not sure how to change the data element

Read only

Former Member
0 Likes
1,709

Hi,

You need SAP access key to change SAP standard Data Element.

Also check Field exit option for the data elements to chnage them.

Read only

0 Likes
1,709

is there any possibility to change in the Debug mode and test it

Read only

0 Likes
1,709

are you working on ecc version

Read only

Former Member
0 Likes
1,709

alternatily, if you are only intrested in capturing Prod order quantity data, you can create a Z table and mainmtian the same in the Production order SAVE suer exit.

if you wnat to prpceed in this direction ,let me know i will give you more details on suer exits.

Read only

0 Likes
1,709

please give me I will check them

Read only

0 Likes
1,709

Check Below User Exit:

*PPCO0018 Check for changes to production order header *

EXIT_SAPLCOKO1_004

INCLUDE ZXCO1U18 .

these are available Structures:

VALUE(IS_HEADER_NEW) LIKE CAUFVD STRUCTURE CAUFVD

*" VALUE(IS_HEADER_OLD) LIKE CAUFVD STRUCTURE CAUFVD

*" VALUE(IS_ITEM_NEW) LIKE AFPOD STRUCTURE AFPOD

*" VALUE(IS_ITEM_OLD) LIKE AFPOD STRUCTURE AFPOD

Read only

0 Likes
1,709

EXIT_SAPLCOZV_001

I have made changes in the above exit

I just copied the code in the SAP NOTE 390635

But I unable to track any change documents

Read only

0 Likes
1,709

you can maintain the z table and store chnaged quantities there.

It will not have any chnage documents.

i will look into sap note.

Read only

0 Likes
1,709

Check this:

Link: [http://space.itpub.net/166523/viewspace-324110]

Link:[http://sap.ittoolbox.com/groups/technical-functional/sap-log-pp/display-of-changing-production-order-932465]

What i read from the oss note is ,, it is not a good idea to create chnage documnets for all the order chnages as would slow down run time operfromance.

i still think it is a good idea to capture all the desired chnages in z table and analyse it with some report.