Formatted Search disapear information when uptade to SAP v8.8

Hi, my dear experts:
This time have a question a bout my DB that was update from 2007 to V8.80.235 pl 17 before the update all formatted search work with out any problem, uncluding on this new version but in some record (in production orden) several fields disapear the information, when remove the formatted search the information without any problem appears again.
Some body know what need to do, I appreciate you help.
Regards
Ricardo Castro

Gordon this is one of formatted seach asigned.
if ($[owor.status] = 'P')
SELECT T0.[Quantity] FROM ITT1 T0 WHERE T0.[Father] = $[owor.itemcode] and t0.code = $[wor1.itemcode] and T0.[ChildNum]  = ISNULL($[$37.15.number]-1, 0)
else
Thanks

Similar Messages

  • Formatted Search Multiple Sources

    Hey all,
    I know that standard functionality in formatted searches in SAP B1 does not support multiple source fields.  However, I was hoping that someone had come up with a workaround for this scenario.
    Field A = Variable
    Field B = Variable
    Field C = Field A + Field B
    Can I get field C to update whenever field A OR field B is updated?
    Thanks,
    Kevin

    Thanks Gordon, that made perfect sense.  My solution was this:
    Field A -> Formatted Search refresh regularly when Field B changes
    Field B -> Formatted Search refresh regularly when Field A changes
    Field C -> Formatted Search refresh regularly when Field B changes
    This way, if you touch Field A or B, Field C will always be updated.  For the queries, I simply used the active screen syntax to pull the values that were already there.  For example:
    If Field B changes, then Field A = $[$38.Field_A.0]
    It's enough to register a change to field A which triggers the whole refresh.  Thanks for your recommendation Gordon!

  • 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 calling a stored procedure

    Hello all,
    I am having a problem getting a formatted search to work when I call a stored procedure from SAP (I am doing this because of a bug we discovered and need to get the client live Feb 1).  The stored procedure works fine when passing variables from within SQL Server, but fails when using SAP.  The problem seems to be where I need to get a UDF from the item master table, but not sure.  Thanks in advance
    The call from SAP query is:
    declare @LineType as varchar(6)
    declare @Width as numeric (19,6)
    declare @LI as numeric (19,6)
    declare @LN as numeric (19,6)
    declare @LD as numeric (19,6)
    declare @HI as numeric (19,6)
    declare @HN as numeric (19,6)
    declare @HD as numeric (19,6)
    declare @QtyOrd as numeric (19,6)
    Select @Width = $[OITM.U_WTH]
    FROM OITM
    WHERE OITM.ItemCode = $[$38.1]
    exec TBC_CHOP
    @Width,
    @LineType = $[$38.U_LINETYPE],
    @LI =$[$38.U_LI],
    @LN =$[$38.U_LN],
    @LD =$[$38.U_LD],
    @HI = $[$38.U_HI],
    @HN = $[$38.U_HN],
    @HD = $[$38.U_HD],
    @QtyOrd = $[$38.U_QTYORD]
    The stored procedure is:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    -- =============================================
    -- Author:          <Mark Rueff
    -- Create date: <Jan 5, 2009>
    -- Description:     <Chop Calculation>
    -- =============================================
    ALTER PROCEDURE [dbo].[TBC_Chop]
         -- Add the parameters for the stored procedure here
    @LineType AS varchar(6) ,
    @Width AS numeric(19, 6),
    @LI AS numeric(19, 6) ,
    @LN AS numeric(19, 6),
    @LD AS numeric(19, 6),
    @HI AS numeric(19, 6),
    @HN AS numeric(19, 6),
    @HD AS numeric(19, 6) ,
    @QtyOrd AS numeric(19,6)
    AS
    BEGIN
         -- SET NOCOUNT ON added to prevent extra result sets from
         -- interfering with SELECT statements.
         SET NOCOUNT ON;
        -- Insert statements for procedure here
    SELECT
    CASE
    WHEN @LineType = 'c' AND @Width >= 3
    THEN ROUND((((ROUND((((@Width * 10) + 5) / 10), 1) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
    WHEN @LineType = 'c' AND @Width < 3
    THEN
        CASE
        WHEN RIGHT(CONVERT(int,(@Width * 10)), 1) > 0 AND RIGHT(CONVERT(int, (@Width * 10)), 1) < 5
        THEN ROUND(((((ROUND((@Width - 0.5), 0) + 0.5 * 8)  + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd), 1)
        ELSE ROUND((((ROUND(@Width, 0) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
        END
    WHEN @LineType = 'j' AND @Width >= 3
    THEN ROUND((((ROUND((((@Width * 10) + 5) / 10), 1) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
    WHEN @LineType = 'j' AND @Width < 3
    THEN
        CASE
        WHEN RIGHT(CONVERT(int, (@Width * 10)), 1) > 0 AND  RIGHT(CONVERT(int, (@Width * 10)), 1) < 5
        THEN ROUND(((((ROUND((@Width - 0.5), 0) + 0.5 * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd), 1)
        ELSE ROUND((((ROUND(@Width, 0) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
        END
    WHEN @LineType = 'r'
    THEN ROUND(((((@Width * 2) + (@LI + (@LN / @LD))) / 12) * @QtyOrd), 1)
    WHEN @LineType = 's'
    THEN @QtyOrd * 1.5
    WHEN @LineType = 'o'
    THEN @QtyOrd
    WHEN @LineType = 'l'
    THEN @QtyOrd
    ELSE 0
    END
    END

    Mark,
    I believe the syntax of your formatted search is not right. I guess you are trying to get the U_Width from Item Master and the other values from the current form.
    SELECT @Width = T0.U_WTH FROM [dbo].[OITM] T0.WHERE T0.ItemCode = $[$38.1.0]
    EXEC TBC_CHOP @Width, $[$38.U_LINETYPE.0], $[$38.U_LI.0], $[$38.U_LN.0],
    $[$38.U_LD.0], $[$38.U_HI.0], $[$38.U_HN.0], $[$38.U_HD.0], $[$38.U_QTYORD.Number]
    If you see I have added a third parameter which is the Type to the formatted seach field selection $[$Item.Column.Type]
    I have made then all 0 but you may change it as per the col type.  This Type should be 0 for Char type columns, Number for numeric columns and Date for Date type cols
    Suda

  • 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 with DI API

    Hello,
    Can formatted searches be triggered when data is added via the DI API?
    Thanks,
    Sheetal

    Hi,
    As Ad said, it is not possible. The reason is that formatted searches are triggered when UI API events are raised. Using the DI API doesn´tt make UI API events to be raised, so that´s not possible.
    Regards,
    Ibai Peñ

  • 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

  • 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!

  • Conditional Formatted Search

    We have a formatted search in Sales Order to pull the Ship To Code from Sales Quotation based on the line #. But we want the formatted search NOT to happen for certain customers.
    How can we write a conditional formatted search so that when this condition is met, this formatted search does NOT carry out?
    thanks!

    Hi Yi Liao,
    try to use IF ELSE condition in the query.
    cheers,
    erwine

  • Formatted Search in Banking SBO 2007A

    Hi,
    Are there Formatted Searches available in SBO 2007A for the Registration of Bank Statements concerning the invoices of BP and if I select an invoice manually and the amount paid is not equal at the open amount the payment is not connected to this invoice. How can I solve this?

    Hi Andre
    There are no formatted searches available as these are always user defined. With other words you spec & build your formatted searches based on your requirements. SAP just provide the means to achieve it.
    I am not sure what the link is between Bank Statements and Invoice payments? Are you referring to how the system handles the matching or reconciliation of partial payments?
    Kind regards
    Peter Juby

  • How to Define and Use Formatted Search in Sap Business One 2007

    Hi
        Any Document on How to Define and Use
    Formatted Search in Sap Business One 2007.
    Thanks

    Hi Manish,
    It is Very simple Procedure of defining FMS(Formatted Search)
    in SAP 2007B Same as SAP 2005B & SAP8.8 Version
    Do this,
    ->> Open the require Document.
    for ex. IF you add the UDF in Marketing Document(Sales/Purchase)
    1. Goto the UDF (or) any Default(Original) Field and Click ShiftAltF2.
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query.
    4. Select the AUTO REFRESH WHEN FIELD CHENGES.
    5. Select the require Auto refresh field
    6. Check the Refresh Regularly (or) Display Saved Values.
    Regards,
    Madhan.

  • Problem when create auto numbering in BP master using Formatted Search

    Hi all,
    I have a problem in creating auto numbering in BP for Customer type using Formatted search
    My query is like this
    declare @tempNo as char(20)
    set @tempNo=(select  Isnull(max(REPLACE(OCRD.CardCode , LEFT(OCRD.CardCode,10),'')),0)  + 1
    from OCRD where (CardType ='C') and LEFT(OCRD.CardCode,3) = 'CU.' )
    set @tempNo='CU.'left(convert(varchar,GETDATE(),112),6)'.'+@tempNo
    select cast(@tempNo as char(20))
    It should be creating the new number for example
    CU.201101.1
    CU.201102.2
    CU.201103.3
    CU.201103.4
    The format will be like this CU.YYYYMM.autonumbering
    So if the current year is still the same it will always increase the number and it will reset the number become 1 if the current year is change.
    But when i execute the number , the number doesn't increase, still generate the last number CU.201103.4
    I have use this query in generate item number, it runs well but different format.
    Is there some thing wrong with my query?
    Thanks in advance
    Regards
    Jia shun

    Hi Jia shun,
    You have posted an identical threads. There is no such need. Please close this one and response to the one with answer already.
    Thanks,
    Gordon

  • I need to execute a formatted search when the field loses focus

    Is this even possible?  I do NOT want to force the users to press shift-f2 every time to validate/search on every field on the form.  This is absurd.  How can I trigger a formatted search on a field when it loses focus?
    I tried activating menu item #7425, but it's not executing the one on the field that loses focus, but a different one.  I guess it only works on the active field??
    I tried catching an earlier event, but after it executes the formatted search on the right field, it places the value on whatever field just gained focus instead of the one it was assigned to.
    Any ideas here?  We cannot force our users to press shift-f2 on all these fields!
    The only other idea I have is to not use a formatted search but instead try to create some sort of popup form with a grid and my own query.  There has to be an easier way, right?

    Bryan:
    I use the following on a KeyDown event for when the User tabs out of a field after entering data if the data they entered is not valid.  Perhaps you could try this in the LostFocus event:
    g_B1Connection.Application.SendKeys("+")
    Also, I have used this in the KeyDown event:
    DisplayLookup("txtWO0")
    Private Sub DisplayLookup(ByVal objText As String)
            Try
                WOItem = WOForm.Items.Item(objText)
                WOItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                g_B1Connection.Application.SendKeys("+")
            Catch ex As Exception
                g_B1Connection.Application.MessageBox(ex.Message, "Ok", 1)
            End Try
        End Sub
    Thanks,
    EJD

  • 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

  • Selecting the Description field for a UDF when using a formatted search

    I am trying to pull the Description field from a UDF on CRD1  in a formatted search in marketing documents.
    Here is my current query but I do not know the correct syntax to pull the description instead of the code from the UDF.
    SELECT T1.[U_ISEName]  FROM OCRD T0  INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode
    Any help would be appreciated.
    Thanks
    Steve

    Gordon
    I tried your suggestion. On CRD1 I created a FS to pull the name from the OSLP tabel. I then used your query on the sales order to pull the stored value on CRD1.
    but now I am getting this error message
    1). {Microsoft]{SQL NativeClient} ][SQL Server] Invalid column name 'U_ISE'> 2) {Microsoft]{SQL NativeClient][SQL Server] Statement 'Sales Tax Codes' OSTC (s) could not be prepared.
    The name appears to pull
    Any suggestions.
    Thanks
    Steve

Maybe you are looking for

  • Error while PG1

    Hi SAP Gurus, I have created a delivery with reference to an order, but while doing PGI getting error message: "Delivery has not been put away / picked completely". Please suggest what settings needs to be checked. Thanks in advance, Naveen

  • JTable column movement and scroll bar

    Hello: I have a JTable with about 30-40 columns. Sometimes I would like to drag the column from rightmost to closer to the left end. I am not able to do that in one shot. and instead have to do it in multiple steps. Is there a way for the scroll bar

  • Mulesoft - memory errors - need some advice

    Our developers have told me that they are looking to hire the Mulesoft people to diagnose what may be a minor issue.  They want a 40 hour commitment so I've convinced people internally that I should hopefully be able to find someone here that is fami

  • Force direct read instead of memory

    hi, is it possible via a hint or something to force oracle not to put a sql's blocks to buffer cache and read from directly from disk every time ? it is for a test issue. thanks all

  • AIRMenuBuilder Question (Third Time's A Charm?)

    This will be the third time I've posted this same question in various ways. Having received no responses, I'm wondering if anyone out there is actually using AIRMenuBuilder....but here goes anyway: Once I've created a root menu with AIRMenuBuilder, c