Formatted search on rdr1.Ocrcode doesn't refresh automatically

Hello All:
    I have a UDF that assign profit center code to each Sales person. and when that sales person is used in a sales order! I want the line level cost code reflect the cost code assign on the sales employee set up.
   I have the formatted search that works when you press Shift +F2.. But it does not work when I trigger of item code. Does anyone else have similar problem? I am running 2005B btw!
   Any help is much appreciate it! Thank You
sincerely Yours

Thank you..
But that's what I did!! But it doesn't automatically trigger by changing the itemcode. I can still scroll over there and shift + F2 out of it.
One thing I do notice is that OCRcode is it is not a free text, it is search field. so when itemcode is not established it doesn't look at it. But once the item code is in, it should be able to trigger off it. I just don't understand why it doesn't work!

Similar Messages

  • Formatted Search on Order Grid with Bill of Materials templates

    This is for 2005A SP01 PL45 (latest patch as of now).
    We have a few formatted searches on the order details that trigger automatically when the item code changes.
    These queries work fine if the items are not part of a bill of materials.
    The queries trigger ok when we use the regular item codes for regular customers when monitoring the item code column.
    However, if you have a BP Catalog customer with a BOM then only the last row of the bill of materials fires and the rest of them do not.
    I tried bypassing this problem by making the queries monitor the Item Description.
    This still worked for stand alone items, but didn't work for bill of materials in either of the case.
    Bottom line:
    A. Formatted searched fire ok on either item code or item description if items are not part of a bill of materials.
    B. When they are part of a BOM, then
    - if we monitor the item code then they trigger ok for regular customers but only trigger on the last row if using BP Catalog codes;
    - if we monitor the item description then they do not trigger at all for either of the customers.
    Any suggestion on how to handle formatted searches for Bill of Material Templates with BP Catalogs?
    Thank you!
    Liviu

    Well, it is a Bill Of Materials "Template" type...
    Go to Production, Bill of Materials, select a product, quantity 1, select the BOM Type as Template and add two other items underneath it, each with quantities of 1.
    Save.
    Go to BP Catalogs, select one BP and add some names for these three items. Check the box to use BP Catalogs for that BP.
    Go to sales orders, add the query above to the free text column, set it as per the scenarios to trigger automatically on Item Code.
    Start two sales orders for this BP and for a regular one.
    Load the BOM item and observe the formatted search results.
    Repeat for the second scenario (where the formatted search triggers on the item description).
    Hope this helps.
    Thank you!
    Liviu

  • Auto-refresh formatted search is not working properly...

    I have created a User Defined Field in Item Master named: FLD1 (Alphanumeric 30)
    Then I have created a User Defined Field in Marketing Documents Row: FLD1 (Alphanumeric 30)
    Now I want as follows u2013
    In Marketing Documents if I select any Item, the value saved in FLD1 in the Item Master will come automatically in the Field FLD1 of the Marketing Document.
    I did as follows u2013
    I have created a formatted search for the above marketing document (in Sales Quotation) for the field FLD1 as follows u2013
    Option: Search in Existing User-Defined Values according to Saved Query
    Query: GetItemFLD1 (SELECT $[OITM.U_FLD1] )
    Option: Auto Refresh  -
    When Exiting Altered Column
    Field: Item Description
    Option: Display Saved User-Defined Values
    But the above is not working automatically --- after saving the document if I click on the Formatted Search Marker then the value comes otherwise not.
    Can any one please explain the reason behind?
    for SAP B1 2007 B SP0 PL7
    Edited by: Narottam Das on May 5, 2009 1:53 PM

    Check this thread for explanation of Syntax of FMS:
    [Refer to Sales Order From Payment Means;
    Refer Suda Sampath  reply that explains clearly

  • Formated Search: Auto refresh with two conditions.

    Hi,
    I've created a Formated Search in one of my column.
    I defined my formated search as :
    - Auto refresh "When Exiting Altered Column" Item No.
    - Display Saved Values.
    Now how can I make it Auto refresh with two conditions?
    - Auto refresh "When Exiting Altered Column" Item No.
    And
    - Auto refresh "When Field Changes" Customers/Vendor Code.
    - Display Saved Values.
    Is there any way to make it work?
    Thanks In Advance.
    Bruce.

    Hi Bruce,
    You could try this trick.
    You need to execute SELECT1 in Col1 when Item No. column is altered or the Customer code is changed.
    Then, in the Item No. column asign a new Formatted Search which selects the Item No. column value (Its value) when the Customer code is changed.
    And in the Col1 asign a formatted search that acts when the Item No. column is altered.
    I think this should do the trick.
    Let us know if works.
    Regards,
    Ibai Peñ

  • Formatted Search is not auto-refreshed when Item Description changes

    Hi all,
    I have a UDF "Packing Details" at Goods Receipt screen row level.
    My formatted search setting is the field should be auto-refreshed when Item No is changed.
    1) I press TAB at Item No and choose an Item, Packing Details UDF will auto-refresh. (No problem)
    2) However, if i press TAB at Item Description and choose an Item, Packing Details UDF will not auto-refresh. I need to press SHIFT+F2 to make packing details appear.
    I try the same setting at Goods Receipt PO, the Packing Details UDF will refresh automatically regardless i choose the item from Item No or Item Description.
    Is anyone face this problem before?
    Thanks.
    Regards,
    Lay Chin

    Thanks Gordon.
    I have told this to customer before, but they prefer to have 'Refresh' on both Item Code and Item Description.
    I think we have no choice but let the customer to choose either one, right?
    Thanks.
    Regards,
    Lay Chin

  • Formatted Search for Delivery Date field in SO not working

    Hi All
    Can anyone help me as to why my formatted search is not working?
    I am currently using SAP B1A SP01 Patch 19.
    I have created a user query as follows:
    SELECT $ [$10.0.DATE] + 5
    When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
    Any ideas?
    Thanks and best wishes
    Gail

    HI Gail,
    If I am not mistaken you want to add days to the posting date...if that is so then try this out:
    SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
    Set The indicator to Auto Refresh when the fields change
    Nagesh

  • Query - Formatted Search in a User Defined Field

    Hi,
    I am having some problems with a very simple query but it doesn't seem to work. I insert this formatted search in to my UDF I made called Cost. The query I am using is:
    SELECT  $[$34.0.0] - (I had to use variable number because this Unit Price field in the Item master data does not have a field name associated)
    It is supposed to grab the unit price from the screen, however it is always displaying zero when I query it, and when I put it in the UDF as a formatted search, it give me the internal error.
    I would greatly appreciate your help.
    Thanks

    Question 1: Where is this Cost UDF defined.  Is it at the Marketing document Header or row level?
    NOTE:
    The field reference for the Unit Price column is incorrect.  When you mouse over the Unit Price column you should see the values for Item=xx  Colunm=xx
    The syntax is $\[$Item.Column.Type].  Therefore for your case it should be $\[$38.14.Number]
    The type prefix can be 0 if you are accessing a Alphanumeric column.
    If you user field is at the Header level the Formatted Search Query might not work unless you highlight that whole row and then click on the header level UDF and press Shift+F2
    How have you set the refresh options?

  • Formatted search

    Hi
    I will be very grateful if someone can help me with this query for a formatted search. The client want the user doing the purchase order to only see certain cost centres. So when a certain user uses SHIFT F2 only a list of certain cost centres must appear for the user to choose from.
    So I have this query -
    SELECT 'OcrCode' =
         CASE
              WHEN T0.UserSign = 55 THEN
              here I need this list - 'HOS' or 'TO' or 'TBC' or 'MC' or 'LOG'
         END
    FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OOCR T2 ON T1.OcrCode = T2.OcrCode
    INNER JOIN OUSR T3 ON T0.UserSign = T3.INTERNAL_K
    WHERE T0.[DocNum] = $[OPOR.DocNum]
    But it doesn't work.

    Hi
    Thank you for the replies
    Gordon, your solution works just right but the reason why I needed a case statement is that there are 10 different users who may create a document - sorry I should have explained more carefully. I tried Hoe Pham Huy's query as well but when I shift F2 nothing happens.
    So what is neccessary is -
    - if the usersign = 55 then a list with  'HOS', 'TO', 'TBC', 'MC', 'LOG'
    -if the usersign = 20 then 'LEG', 'HOS'
    and so on....
    It seemed to me that a case statement would best accommodate this requirement but it doesn't seem to work when I try it.
    Is it possible to change your query to accommodate multiple users?
    Regards
    Danie

  • Problem in Formatted Search

    I have added two UDFs namely ItemCode and ItemName on header level of Profit center form.
    I have attached folwing query to ItemCode for Formatted Search
          select Itemcode from oitm
    I want to display the corresponding itemname automaticaly in itemname field. So I created the folowing query:
    Select oitm.itemname from oitm where itemcode= (select $[$U_ItemCode.U_ItemCode])
    setting is that Auto refresh when field changes (ItemCode).
    Now what result I am getting is as follows:
    if I change ItemCode and goto ItemName, the itemname should change automaticaly, but it doesn't happen. However if I press Shift+F2 here on ItemName it takes the correct ItemName. I want that ItemName should be changes as ItemCode is changed automaticaly...
    I am using a Patch 01.
    plz help

    Amol,
    Please try
    SELECT T0.ItemName FROM OITM T0 WHERE T0.ItemCode = $[[OPRC.U_ItemCode]]
    NOTE: The format is $[[TableName.UserField]] .  Since you have create the User field in OPRC table I am referring to it as OPRC.U_ItemCode
    remove the http:// thats got added.
    Suda

  • Read item code from Sales Order with formatted search

    hi,
    i'm tring to read tha values of the item or items of a sales order (before save it) with a formatted search.
    i have no problem to read the value of card code or cardname but i can't read the item's value.
    i tried with this [code]Select $[RDR1.ItemCode][/code]  (i found it on the forum) but it doesn't work.
    somebody can help me ?
    thank you

    Hi, Alessandro!
    I think the trouble is that you are trying to assign a FS to the header of the document. You are getting the information of the current row, so you have to bind a formatted search to some column of the "table - part" of the document.
    And also you can try:
    SELECT $[$38.1]
    38 - the value of "Item" (when you point a mouse to the cell, information you want from)
    1 - the value of "Column" (the same...)
    It will get an info of this cell in a current row.
    HTH!

  • My Formatted search work wrong!!

    I'd like to get your understanding on my english ability.
    But..., Time Pressed..
    Please Help me ..
    I make a UDO and Formatted search(It Update the U_CardName whenever the U_Cardcode changes )
    After, I link a Formatted search to my form(using screen Painter and connecting UDO, it works good).
    The problem is formatted search work only When i pushed "Update" button in screen of Define Formatted Search , otherwise it doesn't work.
    so now, I work ..
       1. Form Load.
       2. Ctrl + Shift + f2 press in edittext of U_cardname
       3. (Originally, Checked "Display Saved Values"
          check "Refresh Regularly" and
          check "Display Saved Values"
       4. "Update"
    what's the my problem?
    why is it happend?

    Hi Lee,
    You have to define a Query in the cardname field indicating that the query must be executed when the value of CardCode changes.
    Now, define such a query:
    SELECT T0.CardName AS 'BP Name' FROM  [dbo].[OCRD] T0 WHERE  T0.CardCode = RTRIM($[$3.U_CardCode])
    Where "3" is the item number of the column that contains the U_CardCode. Check the one is assigned to your field using the "Debug Information" in the "View" Menu
    When you define the Formatted Search:
    - Select Search by Saved Query and choose the one that contains the statement above
    - Auto Refresh when...
    - Select here the description that match your U_CardCode field
    - Display Saved Values
    Now you have set your UFS and it works!
    Hope this helps,
    Felipe

  • Formatted Search Help required

    Dear All,
    I have a specific requirement by which I need to track out the Estimated Cost which is put in the Sales Order Row with a Udf vs the PO Cost been involved for a particular project in terms of Purchase Orders been raised in the system for that particular Sales Order No. Basically we want to know that if the Sales Order Estimated Cost is 100 then the PO should not be allowed to make for more than 100.
    In the Sales Order row I have an Udf called Estimated Cost U_ ESTCOST and users fill in every line item the Estimated Cost for that particular Sales Order.
    Now I have made the following Udf in Purchase Order Header as under :
    Sales Order Estimated Cost  as U_ORDESTCOST
    PO Cost U_ POESTCOST
    Now in the Sales Order Estimated Cost udf which is there in the PO header I want the sum up of the row which is been put in Sales Order Estimated Cost U_ ESTCOST for that particular BP project. Can formatted search be used wherein if while making the Purchase Order Sales Order Estimated Cost udf U_ORDESTCOST is updated when in the Purchase Order Accounting Tab BP Project Is put. The requirement is that if in the BP Project e.g 10001 is put then the formatted search should search the ORDR table which also has the same BP Project 10001 in the Accounting Tab selected and then from RDR1 its should sum up the Estimated Cost U_ ESTCOST.
    Now in PO Cost U_ POESTCOST field I want to have the total sum means Document Total of all the PO been made in the system till date for that Particular BP Project e.g 10001
    Kindly advise what best can be done so that we are properly able to control the system
    Regards,
    Venky

    Dear Gordon,
    Thanks for bearing with me.
    Let me just break the requirements.
    Now a New Sales Order is booked which is as under
    Sales Order Document Number - 10001
    Row Details as under :
    Items     Qty   Row Total  Estimated Cost (U_ ESTCOST)
    Item 1     1          100               20
    Item 2     1          200               30
    In Accounting Tab in BP Project its given 2000
    Hence the the sum of U_ ESTCOST is 50 for order number 10001 whose BP Project is 2000
    Now for the above Sales Order a Manual purchase Order is made in the system
    Purchase Order No 90000
    Row Detail as under :
    Items     Qty   Row Total 
    Item 1     1          100             
    Header has a udf named U_ORDESTCOST which means Sales Order Estimated Cost
    In Accounting Tab in BP Project its given 2000
    Now if you notice the common data which is there both in Sales Order and Purchase Order is the BP Project Number
    I want that whenever a Purchase Order is made in the U_ORDESTCOST field the Sum of Estimated Cost U_ ESTCOST should get filled automatically based on the BP Project which is been put in the Accounting Tab of Purchase Order.
    Means everytime 50 should be updated in U_ORDESTCOST because in the Sales Order where project code is 2000 theEstimated Cost (U_ ESTCOST) = 50.
    See if I want I can make a query but I am not able to use the same in the formatted Search. The query is as under :
    SELECT sum(T1.[U_ESTCOST]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[Project] = [%0]
    The above query if attached is working fine in the Formated Search but due to [%0] its asking me to put the BP project which I want should automatically pick or refresh based on what is put in BP Project in Account Tab in Purchase Order. I think I need the BP Project $ some number....
    Regards,
    Venkat

  • Problem with formatted search on UDO Form

    Hi,
    I've created an UDO and in the lines I have the fields ItemCode and ItemName. In the ItemName field I have a formatted search configured the next way:
           -Search by Saved Query
               -QueryName
           -Auto refresh when existing altered column
               -ItemCode
           -Refresh regularly
    This formatted search works fine when I do <shift> + F2 in the field. But when I change the field ItemCode and get out of the field it doesn't execute the formatted search.
    Any ideas?
    Thanks in advance, regards
    Vanesa

    Hi Vanessa,
    Firstly (and I'm not giving lessons on sucking eggs) does this work when run as a query with the $ field replaced with a litteral value that you know exists in the table you're searching (surrounded by single quotes)?
    The reason I say this is that I have had a few where as opposed to giving an error I've been hitting shift+f2 with absolutely NO feedback via error messages.
    Which form is this within? How have you used the variable element in the query?
    Is it possible for you to show the query? Along with details on which form you're using it in?
    Hopefully be able to help with more info,
    Julian

  • Trigger Formatted Search on Freight Form

    Has anyone gotten a formatted serch to fire on the Sales Order - Freight form based on the document total changing in the main Sales Order form?
    Scenario - we set the Freight to a fixed amount $50.00.  If the document total goes over $500 then we want to set Freight=$0.00 using a formatted search (i.e. shipping is free when the order is above a certain amount).
    In troubleshooting I tried to use SELECT $[$29.0.0] and also tried SELECT $[$-29.0.0] to see if the FMS could even return the Document Total on the freight form but it doesn't seem to be linked. 
    Anyone gotten this to work?
    -Frank

    I already tried using
    SELECT $[$29.0.Number]
    Results in Internal error 3006.
    I also tried setting the FMS to SELECT '0.00' with Auto Refresh enabled on When Field Changes = Document Total just to see if the FMS would fire when the main Sales Order total changed.  FMS would not fire.
    Appears to me that the freight form is in some way disconnected from the main Sales Order form as it relates to FMS.
    Anyone gotten this to work outside of going to SDK?

  • Formatted Search on Distribution Rule

    Experts,
    I have a client where we use the Cost Centers for Sales Employees to get the P&L by cost center to work for them without any additional custom reports.
    Because this client might have documents with many lines they asked to have the Distribution Rules be filled in automatically with what Sales Employee is selected on the document.
    To make this easier I have used the same codes in the Sales Employee list (OSLP) and Cost Centers (OOCR). This means that George is code 1 in OSLP.SlpCode and OOCR.OcrCode.
    Is there a formatted search that will auto-populate code 1 in the field for Distribution Rule in all the lines if I select Sales Employee 1 in the document?
    Your help will be much appreciated,
    Marli

    Gordon,
    Thanks, that code works.
    The issue with this is that as soon as you tab out of the field, it brings up the 'Select Dist. Rule' box, even though you populated this with a code with the Formatted Search.
    I have tested this with all the formatted search options of auto refresh and without and found that for all this options it brings up this box.
    Thanks,
    Marli

Maybe you are looking for

  • Problem when deploy adobe interactive form

    Hai all, i am new to adobe interactive form designing, i had developed a simple adobe form, the following error occured while running the application, i had followed the procedure to "Installing a credential for Adobe Document Services" Help me to so

  • Cisco Wireless AP Report.

    I would like to develop a report package for Cisco Wireless device using the SNMP (MIB Objects) access. Can anyone suggest me what are all kind of report i can produce ..? Like, CPU Usage, Memory and Buffer Usage, Process utilization and Conne cted N

  • Windows 7 64 bit + IE10 = no pdf in HTML Help

    When I generate a .chm in RoboHelp and click to view the result: the .chm becomes displayed; when I click in the .chm on a link for opening a .pdf the .pdf is displayed correctly in the main .chm window. When I doubleclick the same .chm in the Window

  • Why local file destype does not appear in the parameter form ?

    Hi, There is a Destype option Local File but it does not appear in the list for Destype in the Parameter form.Why? Even file is not working & the reports server is getting hanged if i specify the destype as file & a valid file name & format is given.

  • Problem invoking web service

    We have a web service that is working some times and not others. It is local so it's not a problem with the internet being busy or anything like that. We do service.addEventListener(InvokeEvent.INVOKE, debugInvoke); service.send(); and the times when