on 08-24-2016 6:41 AM
Dear All,
My Client asking below scenario. Kindly advise me how to do this..
In A/R Invoice, we need to create one UDF field at the row level, in that last Invoice Price should be displayed..
I have created UDF filed at row level.. Now i wanted to display last invoice price for that particular item..
can anyone help me to do this....
Thanks..
Hi
try this SQL query:
select top(1) T1.Price from inv1 T1 inner join OINV T0 on T0.docentry = T1.DocEntry where t1.ItemCode = $[$38.1.0] order by T0.docdate desc
Kind regards.
Agustín Marcos Cividanes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you so much for your valuable reply.. It works fine, Client asking to popup System alert message window, If current Invoice price lesser than previous invoice price, then system should alert me, " Previous Invoice Price is high".. Is It possible to make custom System Alert message..
Thanks ..
If you want to stop the current user who is adding the document you can use the Transaction_Notification procedure.
But in this is not the alert message it shows below the screen which is like the general SAP B1 error.
If you want to error pop-up I think you need to create add-on for that. But maybe you can send this query from the using alert message or you can use the Approval Templates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Logesan,
You cannot fetch data in row level for UDF fields but you can put FMS query over there and all previous invoices you will get.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
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.