cancel
Showing results for 
Search instead for 
Did you mean: 

Change document prod order and note 390635

olivier_segol
Active Participant
0 Kudos

Hello,

I tried to follwo the SAP note 390635 in order to have change doc created when the field resb-vmeng is modified.

In the exit EXIT_SAPLCOZV_001 I get the old and new fields, I put them in internal tables   xresb and   yresb to call the function module   ORDER_WRITE_DOCUMENT. And nothing happen.... I didn't modified the checkbox 'change document' of the data element VMENG as I understand from the note that it's not mandatory:

 

Important:

 

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.

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 PHELR_

100_46C) for Release 4.6C; as of Release 4.70 (SAP Enterprise), the Add-On is part of the R/3

standard system.

As we are in ECC6, seems to be OK, no need to change the checkbox => the user-exit seems to be enough.

However, I am not able to create change docs.

Is there someone who can give me some inputs on this topic? Which steps exactly need to be done to create change docs for this field.  Concerning the flag at data element level, did I understand the note correctly? Is changing the checkbox 'change doc' is not mandatory?

Thank you very much for your help,

Olivier

Accepted Solutions (1)

Accepted Solutions (1)

Caetano
Product and Topic Expert
Product and Topic Expert

Hello Olivier

The note provides the following information:


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.

Since you are using function module   ORDER_WRITE_DOCUMENT then you are using the SAP standard tool and the indicator must be set.

BR

Caetano

olivier_segol
Active Participant
0 Kudos

Hello Caetano,

So the only solution except standard modification is to create a ZORDERS in SCDO? => flag as to set for the data element also

Best regards,

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Olivier

You can use this function module to develop your own logic to track the changes. That means, create a custom table and save the desired changes on this table for further analysis.

BR

Caetano

olivier_segol
Active Participant
0 Kudos

Hello Caetano,

Yes, the custom table seems to be my only solution (or the std modification)... I wished I had another one.

Thank you very much,

Olivier

Answers (0)