cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent the item delivery date getting copied to sales order while creating with ref to quotation

Former Member
0 Kudos

Dear All,

While creating sales order with reference to quotation, we don't want to copy item requested date  from quotation to sales order, because we have a separate logic to determine RDD at sales order line item. Currently what happens is , the item delivery date at quotation is replacing the sales order  item delivery date.

For this, we have checked the routine 051 for header  and 151 for  item , but still couldn't  find were and what needs to be changed  in routines  to prevent item delivery date copied from quotation  to sales order.

Could anyone please suggest  how it can be controlled  through copy control routine or any other way?

Thanks & Regards,

Jyothi C

Accepted Solutions (0)

Answers (2)

Answers (2)

Jelena
Active Contributor
0 Kudos

But what do you want this date to be? You've mentioned you have a separate logic - where did you put it?

I'm also not clear what exactly is the confusion regarding the copy routines... If it's a header field (VBAK-VDATU) then naturally it's not an item routine. The routine examples available in SAP seem self-explanatory. You put some value in the field, that's all there is...

Also have you tried debugging to check if the field is not getting overwritten?

Former Member
0 Kudos

Hi Jelena,

Ques: But what do you want this date to be? You've mentioned you have a separate logic - where did you put it?

Answer: We have put a custom logic for RDD in the user exit that will work for sales order and that date will get copied to all the SO line items.

Now, i come to our confusion regarding copy routines. At times, SO is created with ref to Quotation.

For eg : Let us assume Quotation has got today's date as delivery date on both header and item level and while creating SO with ref to quotation, RDD at header level is getting changed as per the custom logic (this is correct) and the delivery date at item also should get copied to all SO line item as per custom logic but that doesn't happen and instead , the delivery date at item level is updated with  Quotation date only.

So , we thought that at the item copy control level, we can prevent passing item delivery date from quotation to sales order so that it wont overwrite the original item delivery date(as per custom logic) at SO. But , we are struggling to find where exactly this can be changed at copy control routine level.

Thanks & Regards,

Jyothi C

Jelena
Active Contributor
0 Kudos

Is the user exit name a secret?

Copy routines should be triggered before the sales order user exits. If you've added some code in a user exit then it does not matter what's in the copy routine - the user exit should kick in afterwards and should be able to change the value. In theory. On practice you might have used a wrong user exit (or you need an additional one) or your custom code is simply ignored and the date is overwritten somewhere in the standard SAP code.

Either way it shouldn't be impossible for an ABAPer to figure this out using debugger.

We cannot prevent anything with a copy routine, we can only change the data being transferred between the documents. And if the data is overwritten afterwards (either by a user exit or standard SAP code) then that's it.

Former Member
0 Kudos

Hi Jelena,

Thanks for your response.

Is there any way to make the item delv.date in quotation as blank in copy control routine and send it to sales order while referring quotation ? If possible, In which routine we have to touch?

With Regards,

Jyothi

Jelena
Active Contributor
0 Kudos

You could try but I don't think it will work. In best case it will be overwritten according to the configuration settings, in worst - you get an error. Customers can only use custom routines, I already mentioned there are routines at both item and header level. Just use the dropdown.

former_member196280
Active Contributor
0 Kudos

Dear Jyothi,

Try to do the below configuration. It may help you to resolve your issue.

Go to Transaction code :  VOV8

Select your Sales Document type. Example:OR

Go to section "Requested Delivery Date/Pricing Date/Purchase Order Date Section"

Un-tick Propose delivery date check box.

Regards,

SaiRam