cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect vendor is deriving in COPA docuemnt

0 Kudos

Hi Guys,

We are deriving vendor code as a characteristic from Batch master (Transaction code: MSC1N & Table MCHA) in COPA document via Billing document.

But incorrect vendor code is deriving in COPA document. This is happening only during creation of billing document through batch job. Either it is picking from previous / later billing document / Item no of billing document. Individual billing creation in VF01 no problem.

We are using COPA enhancement COPA0001and exit EXIT_SAPLKEDRCOPA_001.

Could you please suggest me which went wrong or provide me the correct enhancement or exit.

Thanks

Suri

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member348872
Active Contributor
0 Kudos

Hi

EXIT_SAPLKEDRCOPA_001 is correct one. I guess derived value seems not refreshed / cleared before next derivation is triggered. You can change target field attribute in KEDR to "Overwrite with new value". If this is already set, then you should debug Derivation and made code changes if necessary.

0 Kudos

Hi Madhu,

Thanks for the response. we debugged exit , Yes i agree with your statement "I guess derived value seems not refreshed / cleared before next derivation is triggered". I checked target field attribute in KEDR "Overwrite with new value".

But i see there two fields 1. Overwrite with new value even if new value is initial and 2. Overwrite with new value only if new value found .

We set up the first one 1. Overwrite with new value even if new value is initial.

Is this correct ?


Thanks

Suri

former_member348872
Active Contributor
0 Kudos

Yes.

This option should work.