on 07-20-2005 10:20 AM
Hello, has anybody an idea how to print the Date of the delivery in the invoice? This is necessary in germany. I did´t find an variable in INV1 or in OINV. Am i blind again, or must i create an userfield in the Invoice?
thanks
Hi Andre,
In table INV1 the field is called ShipDate. You can display it int the matrix selecting the "Form Settings" and enable the "Del.Date" Column.
In the DI API corresponds to the property "DocDueDate" while processing a Delivery document.
Help:
DocDueDate Sets or returns the document due date (for example, Delivery Date in sales orders, Value Date in invoices, Valid To in quotations, and so on).
Let me know if you have further questions.
Regards,
Felipe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andre,
The delivery date will only be in the Delivery document.
Thus if you create a Invoice "from scratch" and don't access a delivey doc as a base document - you won't have a delivery date.
If the invoice was created using a delivery doc as a base - you can query the ODLN table to get the delivey date (DocDueDate). Obviously you'll use the BaseEntry, and BaseLine from INV1 to get the correct delivery line info to query ODLN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Thus if you create a Invoice "from scratch" and don't access a delivery doc as a base document - you won't have a delivery date."
Sure in Germany then is the Invoice Date the Delivery Date.
"If the invoice was created using a delivery doc as a base - you can query the ODLN table to get the delivey date (DocDueDate). Obviously you'll use the BaseEntry, and BaseLine from INV1 to get the correct delivery line info to query ODLN."
I thought like this, i am just wondering that SAP doesn't confirm with the german law about invoice printing....
Hi Andre!
It's not so difficult to implement your task.
1. write an query to retrieve ShipDate from Delivery
it could be like following lines:
[code] IF $[INV1.BaseType] = 15
BEGIN
SELECT
T0.DocDueDate -- <i>or T0.DocDate</i>
FROM
ODLN T0
WHERE
T0.DocEntry = $[INV1.BaseEntry]
END
ELSE
BEGIN
SELECT $[OINV.DocDate]
END[/code]2. Create UDF for Invoice matrix
3. Link the Query to that field (autoexecuting on ItemCode column)
That's it!
Hope it'll help..
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.