on 2019 Mar 27 9:01 PM
Hi Friends,
My problem is I have formatted search on Invoice Document number, to get the same number as delivery document number.
select t1.docnum from odln t1 where t1.docnum=(select $[$38.44])
This code works fine for Item Type Document, but not working for Service type.
Can anyone please help fix this for both type of documents.
Hi,
At Invoice lines, please make sure the BaseRef column is visible!
And, FMS query can be simplified as below
Select $[INV1.BaseRef]
OR , you can try this too
SELECT CASE WHEN $[$3.0.0] = 'I' THEN $[$38.44] ELSE $[$39.24.0] END
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After selection of Delivery document number, it is quite easy to fetch the Delivery document date based on the document number from OINV.
Check the query below, but make sure to execute after getting Delivery document number at Invoice.
Select DocDate from ODLN where DocNum = $[ODLN.DocNum]
Regards,
Bala
Hi Krishnam,
As per the above screenshots, you must use this FMS:
Select $[$38.44]
Please check it and let me know.
Thank you,
Aziz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishnam,
Invoice Document with service type should be based on Delivery Document with Service Type.
Is this the case ? If yes, the formatted search must give you the Delivery Document number in your Invoice.
Thank you,
Aziz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishnam,
"My problem is I have formatted search on Invoice Document number, to get the same number as delivery document number.
select t1.docnum from odln t1 where t1.docnum=(select $[$38.44])
This code works fine for Item Type Document, but not working for Service type. "
Please make sure that you have Delivery documents with Service type.
Thank you,
Aziz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
in the service document, you have to use $[$39.24] for base ref in the invoice form, and $[$39.25] for the base key.
Kind regards
Agustín
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
when is it giving the error?
Kind regards
Agustín
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When i used below query, for item type AR invoice is getting the delivery document number. But service type no.
select t1.docnum from odln t1 where t1.docnum=(select $[$38.44])
When I use below query, neither Service nor Item type are getting the delivery document number.
select t1.docnum from odln t1 where t1.docnum=(select $[$39.44])
Hi
you have to create a new FMS, and instead 38 write 39.
Kind regards
Agustín
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
112 | |
8 | |
8 | |
6 | |
6 | |
5 | |
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.