Hi Suda and all experts, I have written following query and it is set as FMS query on Batch No. in batch no. creation screen appear after clicking on Add button in Receipt from Production Screen. DECLARE @KenaProdNo AS int SET @KenaProdNo = $[$13.61.Number] SELECT T0.[U_BatchNo] FROM OWOR T0 WHERE T0.[DocNum] = @KenaProdNo where in $[$13.61 - I have considered receipt from production screens variable Order No. for which item no. is 13 and and column no. is 61 But to my surprise it is not working. Am I making any mistake in writing the query? TIA Samir Gandhi
Hi Samir...
Sorry, but i can not understand what you want to do..
The variable
$[$13.61]
is the Production Order Number in Goods Receipt.....
Then you want to have in the BATCH NUMBER DEFINITION WINDOW the batch you have in OWOR.U_batch...
It's correct?
I think your query does not work cause, when you try to set @KenaProdNo you don't have this variable in BATCH NUMBER DEFINITION....
Add a comment