Skip to Content

Query for Auto Calculation based on input of 2 Fields


I would like to write a sql query to allow for auto calculation based on the Inputs of 2 other fields before Adding the Order.

For example. A query on Sales Order where I have Item 040634 (Code for a Flower) and Quantity 200.

I have a UDF (Bunching) where the value is 10, 15 or 20.

Based on the Bunching the result should be given in another UDF (Noofsleeves).

(Quantity) 200 / (Bunching) 10 = 10 (Noofsleeves)

The Order will be having multiple items where the Bunching can differ for each item.

Is it also possible to remove the calculated noofSleeves from Inventory.

I am using 2007A SP01 PL05

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2010 at 07:01 AM

    Hi ,

    You may try this: Apply this fms on other udf and auto refresh on the udf mentioned in the query (in your case Bunching).

     SELECT $[RDR1.Quantity.number] / $[RDR1.U_UDF.number] 

    You may check these too.





    Edited by: Joseph Antony on Jul 8, 2010 12:31 PM

    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.