Skip to Content
author's profile photo Former Member
Former Member

FMS on Batch No. doesn't work

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Nov 17, 2009 at 01:52 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 17, 2009 at 02:10 PM

    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
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2009 at 08:16 PM

    Hi Samir Gandhi,

    It sound like no surprise to me. The variables will only work on the Current form. It will stop working when you switch forms.

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2009 at 08:08 PM

    You should try István's suggestion. It sounds like a good idea to me.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2010 at 02:12 PM

    hhh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.