on 09-13-2004 1:21 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.