cancel
Showing results for 
Search instead for 
Did you mean: 

Change copy control routine for SD delivery to billing doc

Former Member
0 Kudos

Hello all,

Requirement is to be able to create one single invoice for different deliveries, namely outbound and return deliveries.

I am able to change copy control so that only one billing document is created, however I need to change copy control routine so that returned amounts will subtract total invoiced amount instead of adding to it. This means having negative values in the invoice.

Anyone has sample code to do this?

Cheers,

Pedro

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use transaction VOFM. Then go into Pricing -> Condition Value.

Create a routine of your own such as 999. Take a look at some of the others SAP has as standard to use a basis if you need to.

This will generate a program for you ending in 999. You will more than like need a repair key from OSS when this program is created.

Once you have completed the coding, assign the number of the routine you created to the pricing condition you wish to populate on the billing pricing procedure. Eh voila ....you should then see your condition value set to the value you calculate in your routine.

As a test you can hardcode a value to see if it is being passed ok

Hope this helps.

Good luck.

Please award me the points if this helps.

Cheers

Colin.

Former Member
0 Kudos

Thanks for your reply Colin.

Your suggestion would work if I wanted my net price for returns to be determined as a negative quantity.

What I actually want is my returned quantities to be determined with negative values so that my invoice will reflect delivered minus returned quantities and the resulting net price.

I'm guessing that what I need to edit is my Data transfer VBRK/VBRP routine on the item copy control from delivery to billing document.

Any additional thoughts?

Cheers,

Pedro

Former Member
0 Kudos

What version are you on ?

Is there not a userexit in billing you can use to set the quantity correctly ? Look in program SAPLV60A.

Cheers

Colin.