Prevent manual entry  in user defined value

Is it possible to prevent manual entry  in user defined value (Formatted search)?
Thanks

Hi
I don't think there is any out of the box solution .
It is possible if formatted search automatically populates your data but I think in your case ,user is selecting the list of special codes you have provided .
May be it can be done by SDK . Try posting in SDK forum .
Hope this helps
Bishal

Similar Messages

  • How to display user define value in list screen from detail screen

    Hello Experts
    I am working on task in which i have to display the user define value on list screen. like i have one list list screen which have one button for add..once i click on add which navigate to detail screen and detail screen has two fields one for ID AND other for name and detail screen has one button for save once i put value for id and name and click on save button which will navigate to previous list screen and those values which should be display on list screen.
    Regards:
    Sumit

    Hi Sumit,
    To navigate to the Master page on button click , you need some thing like,
    oSplitApp.toMaster("masterpage_id");
    to understand the navigation for Master/Detail page , have a look at,
    http://help.sap.com/saphelp_uiaddon10/helpdata/en/df/adb6b7247e4826b0fcde472b029840/content.htm
    Also to pass value from Detail page to Master page, you can use a Global variable to store your values on click of the Save button. For eg. You may have a global JS file which both Master and Detail page can access like App.Js, Application.JS etc.
    After navigating to the Master page, you can read the Global variables and show it on your Master page.

  • How to make user-define value's query

    Dear All,
    In we have 3 user-defined fields in marketing document. When I type in field 1 and field 2, we need line total = field 1 * field 2.
    Would it be possible for me to config it in SAP? I setup a user-define value and have a query for it. Make it updated when field 2 changed. But when I am not clear on how to write the query. I have a query select $[POR1.U_Field1]*$[POR1.U_Field2]
    But I got an error message. It has to be some syn error in my query.
    It is a service type document so that I cannot have a where POR1.Itemcode = ...
    Can anybody help me out? Thanks in advance.
    Regards,
    Yuka
    Edited by: Jie Jin on Mar 23, 2010 7:28 PM

    I use Select $(Por1.Price.number)*$(Por1.U_Numberofunit.number)   //replace ( to [
    The price was been change to null. Then my query is like select *6. Thanks.
    Edited by: Jie Jin on Mar 23, 2010 7:42 PM
    Edited by: Jie Jin on Mar 23, 2010 7:44 PM

  • User Defined field and User defined values.

    Curently testing this in the demo database before rolling it out to a customer.
    I added a user defined field to my item master data base called Lengthcm of type Amount.
    I have created a query:
    SELECT u_lengthcm = CASE
                      WHEN $[oitm.blen1unit] = 5 THEN $[oitm.blength1] * 2.54
                      WHEN $[oitm.blen1unit] = 6 THEN $[oitm.blength1] * 2.54 * 12
                      ELSE 0 END
    Length unit 5 is inches and length unit 6 is feet.
    In Item Maintenance then I create a user defined value for the lengthcm field linked to the query and set to auto-update when the blength1 field changes.
    This works perfectly for 1 inch through 9 inches (1" through 9") and fills in the centimeter value. When I put in a value in feet (1', 2'), it does nothing and if I put in any value of 10" or greater gives an error message:
    [Microsoft][SQL Server Native Client 10.0][SQL Server] Arithmetic overflow error
    converting nvarchar to data type numeric. 'Received Alerts' (OAIB).
    Checking database structure back end, blen1unit is of type small int, blength1 is numeric of size 19, 6 and so is my lengthcm field.
    Edited by: Danielle Ostach on Mar 18, 2011 8:18 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:19 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:20 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM

    Hi Danielle ,
    Try this...
    SELECT u_lengthcm = CASE
                      WHEN $[oitm.blen1unit] = 5 THEN (cast(($[oitm.blen1unit]) as decimal(19,6)))  * 2.54
                      WHEN $[oitm.blen1unit] = 6 THEN (cast(($[oitm.blen1unit]) as decimal(19,6)))  * 2.54 * 12
                      ELSE 0 END
    Regards,
    Sachin

  • Undo User Defined Value

    I create a user defined value in the production order screen for Product No. by mistake.  How do I reestablish the connection between Product No. and the List of Bill of Material?
    Regards,
    Fred

    Hi Fred,
    You just need to ShiftAtlF2 to bring up design page and change it to without User Defined Value.
    Thanks,
    Gordon

  • User-defined value help and dispatcher configuration

    HI all.
    This is adrian. I gots my hands in PCUI. Facing a prob. Hope someone can help.
    The User-defined value help and dispatcher iViews in CRM-PCUI are no longer displayed after I installed CRM 4.0 Support Package 03. I also get a portal error when I execute the link.
    Did some one work with such a prob.
    Acosta.

    Adrian,
    I did work with a lil of PCUI some time back.
    Well the upfront easy solution is upgrade your pack level to one less than the latest.
    Julius

  • Row limitation for list of User Defined Values

    Dear all,
    I need to make list of User Defined Values at the field in SO. Is there any limitation of row quantity for that ? because the list will grow until thousand..
    Regards
    Wibisana

    Dear Ho we,
    There is no limitation of user define filed for document level and document row level.
    At present i think no budy use 1000 UDF at row level so its very difficult to say after creation of 1000 UDF what is impact on system performance.
    You have to work try basis.
    REGARDS
    MANGESH PAGDHARE.

  • To change User defined Value field from Amount to Quantity in COPA

    I have created a created a User defined Characteristics VV930 - Number of labor hours.  While creating, i wrongly assigned the chategory Amount instead of Quantity.
    Now when i am trying to change it is giving me errors.
    Also it is not allowing to delete and recreate the new VV930 with category as Quatity.
    No data is posted in COPA.

    Hi Rupesh
    1. Remove it from your COPA data structure in KEA0... Shift it from Left to right in data structure screen... Then try to delete it
    2. Else, reserve this Value Field for future use and change the name as of now to XXXXXX...Create a new Qty Field for your use now.
    Regards
    Ajay M

  • LDAP search cannot find entry by user "defined attribute"  or  "sounds like

    Hi, I have an JSP program that searches an LDAP Sun One Directory Server.
    All of my search filters ( by givenname,sn,mail and phone #) work fine with the search base set at the very top (root ) of my DIT tree.
    However with the same search base, searching by an "User Defined Attribute" fails to return anything (and note that my search filter includes the objectclass that goes with this user defined attribute)?
    Yet, if I change the search base so it points all the way down the DIT tree (maybe near RDN?), the "User Defined Attribute" search works fine ?
    Additionally, "sounds like" search filter (givenname~=) fails to find anything at
    the upper root search base of DIT. If I change the search base to point down in the DIT tree as I did above, the "sounds like" filter will work?
    I've tried everything I know?

    Hi Dora9,
    Thanks for your reply.
    I am glad that you have solved the problem and thanks for your share us the solution
    here, so it would be helpful for other members who get the same issue
    and we will close this case.
    In addition, I suggest you could try to get
    the issue confirmed and diagnose by product team. Would you please create connect report for it? You will get email notification for update from the product team experts:
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,
    if you submit it, you could share us the link here, so we could know the latest information from the Product team expert. And I will help you to vote it.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Preventing manual entry in delivery document.

    Hi ,
    Is there any solution regarding how the manual entry can be stopped in delivery document?
    Thanks & regards,
    Rupam.

    Hi Rupam,
    If you solved the problem, close your thread.
    Thanks,
    Gordon

  • Allow user defined values during run time

    Hi ,
    I have created a VI wherein I have 3 inputs as enums, I also want to give the user the capability to enter runtime values which are not present in the drop down for the enum , is it possible ? I see an option in the propeties of the enums as "allow user to enter undefined values during runtime" , will this serve the same purpose as I am looking for or is it something different ?
    Please see the attached snapshot for the option I am referring to .
    Thanks
    Attachments:
    Allow_undefined_values_during_runtime.PNG ‏25 KB

    Manreet wrote:
    Hi ,
    I have created a VI wherein I have 3 inputs as enums, I also want to give the user the capability to enter runtime values which are not present in the drop down for the enum , is it possible ? I see an option in the propeties of the enums as "allow user to enter undefined values during runtime" , will this serve the same purpose as I am looking for or is it something different ?
    Please see the attached snapshot for the option I am referring to .
    Thanks
    What you see is a disabled option in the items editor.  The items editor is common between Rings Comboboxs and enums.  I don't know why  the gurus and R&D decided to disable and grey the checkbox rather than hide the darn thing.  Lucky for us its not something that customers see just developers.  At least we have the ability to ask about what that is if we don't know.
    Jeff

  • How to popluate user defined values in Paramter field of a report using "Report Server Project", BIDS

    Hello,
    I am creating report using "Business Intelligence Development Studio", creating "Report Server Project" connected to TFS database.
    I have created Variance report and the output of report  as below sample:
    Project   Assigned To      Planned Effort        Completed    Remaining  Variance
    P1            X                        20                        
    10                 5              5
    P2            Y                        10                        
    10                 0             0
    P3            Z                          5                        
    0                  5              0
    By default I made Assigned To as parameter field and its showing data for selection in a drop down box (X, Y and Z) and data also filtered correctly.
    Q. how can I fill resource names in a drop down of my own choice (in this scenario, I want to display only X and Y) and display data based on the selected resource? By default parameter displays all the resources which I don't want.
    I did the below but could not get correct result:
    1. Right Click on "Assigned To" parameter, Clicked on "Available Values" and Selected "Specify values" instead of "Get values from query"
    2. Added X as Label and Value as 2 (Employee ID as mentioned in dbPerson table)
    Drop down displays X but when I clicked on report, it gives an error...
    Appreciate your help on this.
    Regards
    Abdul Kalam

    Hi Abdul,
    From the document, we know that CONSTRAINED flag is used to reduce the risk of injection attacks via the specified string. If a string is provided that is not directly resolvable to qualified
    or unqualified member names, the following error appears: "The restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated."
    So you need to make sure the members are passed properly to the STRTOSET function. For more details, please see the following links:
    http://ch1n2.wordpress.com/2010/02/21/the-restrictions-imposed-by-the-constrained-flag-in-the-strtoset-function-were-violated/
    http://www.bp-msbi.com/2010/04/passing-unconstrained-set-and-member-parameters-between-reports-in-reporting-services/
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • PM Notification: User-Define Values for Reported By and Tech Inspected by

    Hi Friends,
    My user wants the name to be filled in the field Reported by and Tech inspected by in the Notification Should be from a dropdown list.
    Please suggest some solution, any customer exit or user exit.
    Regards
    Pankaj Verma

    Programmer used field validation in IW21/IW22, IW31/IW32 screen for that functionality.
    Sorry, I don't have code or specific enhancement names. All I can say is that after enhancement, it worked very well.
    Thanks-

  • Help in user-defined values

    Dear experts, please, how to adust this query to show in column "Advice based on Packing Unit" only values > 0?
    Thank you in advance for your help.
    declare @mag1 as char(8)
    set @mag1= left($[OPOR.Comments],2)
    SELECT      
              'Advice based on Packing Unit'=     case when     ((T1.ordrmulti = 0 or T1.ordrmulti = 1) and (t1.purpackun = 0 or t1.purpackun = 1)) and T0.maxstock = 0 then
                                       T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0))
                                  when      ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti > 0 and T1.ordrmulti > 1 then
                                       case when  (ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti - T0.Maxstock) / T0.Maxstock < 0.1 then
                                                                ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                       else
                                                             case when floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti < T0.maxstock then
                                                      case when round(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti)/T1.purpackun),0) > 0 then
                                                      case when ((ceiling(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)T1.ordrmulti)/T1.purpackun))T1.purpackun  + floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti)- T0.maxstock ) /T0.maxstock < 0.1 then
                                                           ceiling(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)T1.ordrmulti)/T1.purpackun))T1.purpackun  + floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                                      else
                                                           floor(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)T1.ordrmulti)/T1.purpackun))T1.purpackun  + floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                                      end
                                                 else
                                                      floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                                 end
                                            else
                                            floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                            end
                                       end
                                 when      ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun > 0 and T1.purpackun > 1 then
                                       case when  (ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun - T0.Maxstock) / T0.Maxstock < 0.1 then
                                            ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun
                                       else
    case when floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun > 0 then
                                                                              floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun
                                            else
                                                                        T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)) 
                                            end        
                                       end     
                                  else
                                       T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0))
                             end
    FROM  OITM T1
    INNER JOIN OITW T0 ON T1.ItemCode = T0.ItemCode
    WHERE   T0.WhsCode = @mag1
         AND  (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0) < T0.MinStock) and T1.CardCode = $[OPOR.CARDCODE] and T0.itemcode = $[POR1.itemcode]

    Dear experts, please, how to adust this query to show in column "Advice based on Packing Unit" only values > 0?
    Thank you in advance for your help.
    declare @mag1 as char(8)
    set @mag1= left($[OPOR.Comments],2)
    SELECT      
              'Advice based on Packing Unit'=     case when     ((T1.ordrmulti = 0 or T1.ordrmulti = 1) and (t1.purpackun = 0 or t1.purpackun = 1)) and T0.maxstock = 0 then
                                       T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0))
                                  when      ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti > 0 and T1.ordrmulti > 1 then
                                       case when  (ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti - T0.Maxstock) / T0.Maxstock < 0.1 then
                                                                ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                       else
                                                             case when floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti < T0.maxstock then
                                                      case when round(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti)/T1.purpackun),0) > 0 then
                                                      case when ((ceiling(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)T1.ordrmulti)/T1.purpackun))T1.purpackun  + floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti)- T0.maxstock ) /T0.maxstock < 0.1 then
                                                           ceiling(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)T1.ordrmulti)/T1.purpackun))T1.purpackun  + floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                                      else
                                                           floor(((T0.maxstock - floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)T1.ordrmulti)/T1.purpackun))T1.purpackun  + floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                                      end
                                                 else
                                                      floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                                 end
                                            else
                                            floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.ordrmulti)*T1.ordrmulti
                                            end
                                       end
                                 when      ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun > 0 and T1.purpackun > 1 then
                                       case when  (ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun - T0.Maxstock) / T0.Maxstock < 0.1 then
                                            ceiling((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun
                                       else
    case when floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun > 0 then
                                                                              floor((T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)))/T1.purpackun)*T1.purpackun
                                            else
                                                                        T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0)) 
                                            end        
                                       end     
                                  else
                                       T0.MaxStock - (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0))
                             end
    FROM  OITM T1
    INNER JOIN OITW T0 ON T1.ItemCode = T0.ItemCode
    WHERE   T0.WhsCode = @mag1
         AND  (T0.OnHand - T0.IsCommited T0.OnOrderisnull((select T5.onhand from oitw T5 where T5.itemcode = T0.itemcode and T5.whscode = 'T'+@mag1),0) < T0.MinStock) and T1.CardCode = $[OPOR.CARDCODE] and T0.itemcode = $[POR1.itemcode]

  • User defined Variable with multiple value

    Hi Experts,
    customer requirement is the following:
    Build a layout in which to have in Lead Column the cost center characteristics, but not all cost center in master data but only those chosen by user with manual input. To achieve this goal i have created a variable of type characteristics (associatd to cost center CH) with replacement type "user defined values", then i have put this var in planning level. I have created a layout with Cost Center in Lead Column and set "all possible ch combination" in additional setting.
    Thanks to the varable created, the user can enter Cost Center value, but the problem is that he cannot select more than one single cost center value, for example:
    User want to see in layout CosCen1 and CosCen4, by now he can set variable in order to see the entire range from CosCen1 to CosCen4 (included all intermediate Cost Center) or to see only one between those 2 Cost Center, but it's not possible (or better i don't know how to..) to select both cost center and display the layout with ONLY those 2 Cost Center in Lead Column (CosCen1 and CosCen4).
    In other word, is it possible to set a variable with more than one single value without using range from-to?
    If not, does exist an alternative?
    Thanks in advance.
    Fabio

    Hi Fabio,
    It works as follows.
    let's say you have 3 multiple single lines for your cost center variable.
    once you are in the folder, select any single value & the layout is ready for planning with the corresponding cost center.
    now, select the "Cost center variable row" in the header of the folder within section "Name of Variable" & click on "Trash Can" icon to "Delete Selection" of variable.
    this basically deletes all the entered selections (3 entries) & displays for all.
    It works this way, because we don't have "resriction of values required by user".
    if am not wrong & correct me if am wrong,
    overall, this is nothing but equal to "planning level not restricted with any variable".
    I just tested this & the flaw in this is that, it is not only displaying for all the initially entered 3 lines but it displays for each & every cost center irrespective of the variable selections.
    hope it is clear.

Maybe you are looking for