Formatted Search issue

I have a UDF attached to a Purchase Order, Goods Receipt PO and Batch Numbers for Items.  B1 automatically carries the UDF data forward from the Purchase Order to the Goods Receipt PO.  However, I am trying to create a Formatted Search that will also bring that data into the Batches Setup transaction when a Goods Receipt PO transaction is being added.  Since the Goods Receipt PO record is not yet written when the Batches Setup screen is activated, I somehow need to access the UDF data from POR1 from the Batches Setup screen (OIBT).  I don't seem to be able to find a way of writing my query for the formatted search that is able to return the data from POR1 to my UDF in OIBT.  Any ideas of how I might be do this?

Timothy,
The values in the Purchase Order / Goods Receipt screen are not available in teh Batch Number screen.
You will need to use a temp table to store the values from the Purchase Order / Goods Receipt screen.
You will set a formatted search on one of the columns of the documents row.  Through this formatted search you will insert the data into the temp table and from the Batch screen you will read the values from this temp table
Suda

Similar Messages

  • FMS - formatted search issues on 8.8

    After upgrading to 8.8 we are receiving many errors on the red line when opening a new marketing document (quotation or SO for example) with different messages and tables being referenced. They were working fine on 2007 A. These are some of the errors we are getting:
    Divide by zero error encountered
    Error converting data type nvarchar
    These errors reference tables such as Incoming Payments ORCT, Countries OCRY, and Payment Terms OCTG.
    What could be different between 2007 A and 8.8 on the FMS?
    Thanks for prompt reply.

    These are some of the queries called by the FMS:
    SELECT T1.[GroupName] FROM OCRD T0 INNER JOIN OCRG T1 ON T0.GroupCode = T1.GroupCode
    WHERE T0.[CardCode] = $[$4.CardCode]
    DECLARE @CARDCODE AS VARCHAR (15)
    SET @CARDCODE = (SELECT $[OQUT.CARDCODE])  
    SELECT  DISTINCT T2.[GroupName]  FROM OQUT T0   INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode  INNER JOIN OCRG T2 ON T1.GroupCode = T2.Groupcode 
    WHERE t0.CardCode=@CARDCODE
    SELECT ($[$38.U_CloseSF.NUMBER]*T1.SalPackUn) FROM OITM T1
    WHERE T1.ItemCode=$[$38.1.STRING]
    As mentioned, there are 40 FMS associated with the Quote form, and the strange thing is that they were not giving messager on 2007 A.
    Regards.

  • Issue with Formatted Search and Sales BOM

    Good afternoon,
    One of our customers uses a Formatted Search on the Sales Order row to lookup the Project Code stored against the Item.
    This works very well, except for when a Sales BOM is selected.  I assume the FS lookup is working correctly, but the screen is quickly refreshed to list all the component items related to the BOM.  This process appears to overwrite the contents of the Project field.
    We wish to keep this functionality, but retain the FS lookup results in the Project column.  Could the order of the process be changed so that the BOM refresh occurs prior to the FS lookup.
    Thanks
    Greig
    Edited by: Greig Burrows on Jul 21, 2010 5:57 PM

    Hi,
    For metadata, which metadata are you not seeing? Are they custom properties within the PDF, and have you checked if you have crawled properties matching these?
    I know there's issue with last modified on PDF's (http://sharepointfieldnotes.blogspot.no/2013/05/understanding-and-getting-sharepoint.html) 
    Thanks,
    Mikael Svenson
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Formatted Search Rounding Issue

    Hi everyone,
    I have a slight issue. I have defined a formatted search on the A/R Invoice that calculates the item price based on a user defined field. The problem is whenever the formatted search runs, it rounds the figure to two decimal places. For instance; the query is supposed to divide a value you put in the user defined field by 50 if you put in 2.25 the value you get is 0.04 instead of 0.045. The query i've used is as below.
    Please assist.
    SELECT (CAST($[$38.U_pprf.0] AS DECIMAL)/50)

    Hi Duncan,
    Try this FMS in UDF2. you will be get the exact value in UDF2.
    for Example:
    *Create 2 UDF's
    UDF Type -> Unit and Total.
    UDF Structure -> Price (or) Amount.
    UDF1 -> U_pprf
    UDF2 -> U_Item_Price
    UDF1 = 2.25
    UDF2 = 2.25/50 => 0.045
    SORRY Last Query is not correct because that Query will not get Exact Result.
    If you want exact value. Try the below Query.
    First Assign the below Setup.
    ->> Administration.
    ->> System Initialization.
    ->> General Setting. -> Display Tab.
    Assign the Decimal Places  (0..6) value.
    Price (or) Amount -> 3
    IF you assign the setup of Price (or) Amount = 3 in Decimal Places.
    Result: 0.045
    IF you assign the setup of Price (or) Amount = 2 in Decimal Places.
    Result: 0.05
    Query: 2
    declare @UDF as numeric(19,6)
    set @UDF = $[PDN1.U_pprf]
    select  (@UDF/50)
    Result: 0.045
    Assign this FMS in UDF2 and Auto Refresh of U_pprf
    Regards,
    Madhan.

  • I need one formatted search for Goods Issue

    Hi Experts
    I need one formatted search for Goods Issue
    ex. I have Issued One item  on 20/07/2011
      In Goods Issue Line Level one column LstIssDt 
    when i issue for the first Item  My document Date Will be my Ige1.LstIssDt(LastIssueDate)(linelevel)
    Now
    the Same Item Iam issuing on 23/07/2011 
    Now  In Goods Issue Line Level   LstIssDt column  shud come as 20/07/2011 when i click formatted search
    Similarly For all the Other Items
    can anyone help me in these
    Thanks  & regards
    Jenny
    Edited by: Jennifer Anderson on Jul 23, 2011 7:57 AM

    Hi Jenifer.....
    I think it should work as it is working on my DB
    Select Top 1 T0.U_LstIssDt From IGE1 T0 Where T0.ItemCode=$[IGE1.ItemCode.0]
    Order By T0.U_LstIssDt DESC
    Do execute this just save and Apply this on Goods Issue for. So when you select the Item this will bring the Last Issue Date of this Particular Item on which field you applied this FMS.......
    Is that an UDF of Last Issue Date or standard field?
    I modified above FMS and please now try.....
    Regards,
    Rahul

  • Formatted search on UDF, DIAPI issue

    Hi,
    I have a formatted search on a UDF in the DETAIL of a SALES ORDER
    When I try to set a value on this UDF, the DI API doesn't give any error but the UDF doesn't get the new value.
    but all other UDF works except this one which have a formatted search on it in SAP
    Is there something I don't know ?

    Hi,
    My goal is not to make the formatted search working in DI API, as I said, I'm just trying to set a value in the UDF and because there's a FORMATTED SEARCH on this udf, it keeps the default value instead of the value I'm setting by the DI API
    And yet, I have other UDF that have formatted search, and I'm able to set a value on the UDF anyway.
    What I see different is that this UDF is numeric and the others aren't
    I just don't understand why the DI API reports no error and yet the value I put in it isn't taken but only the formatted search default value for a numeric UDF  Is this a known bug in SAP ?

  • Formatted Search for Sales Order

    Hi,
    I setup a formatted search in Sales Order unit price field.
    Condition required:
    If Sales Order is copied from Sales Quotation, unit price remains as per Sales Quotation unit price, else formula to calculate mininum selling price appllies.
    Here's the query:
    DECLARE @BASE_ENTRY INT
    DECLARE @PRICE NUMERIC(19,6)
    SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
    SET @PRICE = $[$38.14.0]
    IF @BASE_ENTRY = 0
    BEGIN 
    SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
    FROM OITM T0
    WHERE T0.[ItemCode]=$[$38.1.0]
    END 
    ELSE 
    BEGIN
    SELECT @PRICE
    END
    l have no issue if the Sales Order copied from Sales Quotation, however when enter the Sales Order manually the formatted search having error message:
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Error converting data type nvarchar to numeric.
    FMS execution failed on field '' with query name 'Get Minimum Selling Price (SO)'
    Looks like my query has error...

    Hi ,
    Try this below query and let me know your feedback,
    DECLARE @BASE_ENTRY INT
    DECLARE @PRICE NUMERIC(19,6)
    SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
    SET @PRICE = $[$38.14.Number]
    IF @BASE_ENTRY = 0
    BEGIN
    SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
    FROM OITM T0
    WHERE T0.[ItemCode]=$[$38.1.0]
    END
    ELSE
    BEGIN
    SELECT @PRICE
    END

  • How to use "insert into & select" in format search

    Hello,
    I am just wonderring whether you can help me solve this issue.
    I want to change the value of a field in the title area for a sales quotation. however, this field is not shown up on the interface.
    For example, there is a field in the title area, "OQUT.Ref1". You actually cannot see this field from the quotation interface or any other doc. Now I want to update the value of this field.
    What I am now trying to do is to create an field named "update" in the title area, use format search to update. the code for the command will be something like
    Insert into $[OQUT.Ref1.0]
    select $[OQUT.U_MFG#]
    here, U_MFG# is UDF. as you may understand, I want to copy the value in the U_MFG# to the field of "Ref1".
    However, when I run "Execute", it gives me error. I believe there is something wrong with the code of "Insert into $[OQUT.Ref1.0]
    Does anyone know how to write the code?
    many thanks
    Stanley

    Thanks both Suda and sagar. The reason I wanted to do this is because I wanted to have UDF info be shown on the  MS word-templated quotation document.
    As you know, when you click the word symbol, a word-templated doc will be generated. The client needs two completely different format of quotation printout. thus I plan to print one type from PLD and other type by clicking the Word symbol. but later, I found out that the UDF field cannot be selected on the MS word template, or only system fields.
    Thus, the only way I can do is to copy the value from udf to some unused sytem fields and then show that system fields on the MS word template.
    any idea do you have?
    I wanted to tell SAP that It is not useful if the udf fields cannot be inserted into word template.
    thanks
    Stanley

  • Formatted Search query for Vacation Accrued

    Hi Experts,
    I have a Client who needs to keep tract on the Vacation Accrued on the Employee Master Data. I have created this UDF on the Master Data, but I could not get the query for the Formatted Search right.
    This Formatted search on the UDF ( must look at the OHEM.startDate field and populate the following:
    If it is a still within year of the system date, it must populate 0,
    If it is > 1 year and < 3 years, it must populate 5,
    etc.
    Any help would be greatly appreciated.
    Marli

    Hi Experts,
    Here is what I did for the query mentioned above:
    {SELECT
    CASE
               WHEN (T0.startDate > GETDATE() -356)
                       THEN 0
               WHEN (T0.startDate > GETDATE() - 712)
                       THEN 5
    END
    As 'Vacation Accrued'
    FROM OHEM T0}
    The issue is that if I link this query to the UDF on the EMD, I get a list of 0 and 5 to choose from. I need to populate automatically.
    Thanks.
    Marli

  • Formatted search as such G/L Account name to be shown

    Dear All,
    I have added in Udf in the row level of marketing document like U_Sales A/C Name, U_Cogs A/C Name, U_Inventory Account Name.
    Stock is maintained Warehouse Wise. Now I want that in the row level for any item e.g warehouse 001 I want a formatted search which should refresh automatically and show the G/L account name of Sales A/c, Cogs A/c and Inventory A/C respectively in the individual udfs.
    I think it could be possible through formatted search but am not able to create the query for it.. Please help.
    regards,
    kamlesh

    Hi Kamlesh,
    Check the link
    How to insert G/L account name in query
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • Decimal and formatted search

    hello,
    I've defined an UDF as Price.
    Number of decimal for prices is set to 3 in the general settings.
    the actual result of my formatted search is rounded to 2 decimals although 3 decimal are displayed.
    here is a simple formatted search that illustrate the issue :
    SELECT 100 / (100+19.6)
    the displayed result is 0.840 instead of the correct value : 0.836
    How can It be solved ?
    Best regards,
    Francis

    Hi
    Please check the decimal settings of
    amount as well(general setting -display tab)
    there is one case:
    When under Adminstration -> System Initialization -> General Settings ->
    Display, the decimal for the amount is defined as 0 and the UDF is
    defined as eg.  alphanumeric or units and total amount, The UDF does not
    return the decimals and round the amount.
    base on my testing:
    if I define 2 decimal places for amount
    then the UDF result  will be 0.84
    But if I define 3 decimal places for amount
    then the UDF result will be  0.83
    Best Regards
    Helen Sun

  • Extra Discount in Marketing Documents - Formatted Search

    Hello All,
    I am trying to add a UDF for "Extra Discount" in the marketing documents. I have tried to attach a formatted search on the document total to calculate the final value after this extra discount has been specified. However, the formatted search doesnt work and I get an "Internal Error".
    The scenario mentioned underneath will explain the requirement:
    <b>Default Option in SAP:</b>
    Customer                               C0001
    Item        |       Price     |        Discount       |      Tax      |     Total
    I0001      |       100         |        10%           |       VAT@4   |   90
    Total                                    90
    Discount                     5%    4.5
    Tax Amount                         3.42
    Doc Total                             88.92 
    <b>Requirement:</b>
    Customer                               C0001
    Item        |       Price    |         Discount     |        Tax        |   Total
    I0001       |      100      |           10%           |       VAT@4  |    90
    Total                                    90
    Discount                     5%    4.5
    <u>Extra Discount            2%    1.8</u>
    <b>Tax Amount                         3.348
    Doc Total                             87.048</b>
    Is it possible to have this scenario mapped in SAP Business One using formatted search without using SDK/Customization?
    Regards,
    Gyanesh Rupani

    Hello Jimmy,
    The client wants the extra cash discount to be visible on the invoice itself. I have tried creating the UDFs and assigned appropriate FS to them to change the document total. However, the issue is that the moment the document total is affected, the discount (available by default in marketing documents footer) automatically gets changed proportionally!
    So, for eg. if an invoice is for 1000 USD and I give a discount (system field) of <b>10%</b> to a customer and 5% as cash discount (UDF), with the help of FS, the invoice amt automatically gets changed to 850 USD but the discount field also automatically gets changed to <b>15%</b>!
    This is the inbuilt functionality of SBO - so if someone can help me overcome this, I will be very grateful.
    Regards,
    Gyanesh

  • Formatted search to get the cost center name

    Dear experts, I need to display the cost centre name/description on goods issue via formatted search. i have set the cost centre as " Display distribution rule in a unified column".
    Dimension 1
    01 Abc
    02 xyz
    Dimension 2
    001 aaa
    002 bbb
    Dimension 3
    0001 jkl
    0002 mno
    System shows only the code on goods issuance screen like "01,001,0001 " while i need to display "Abc,aaa,jkl" . Is it possible via formatted search
    or any other way?
    Regards,
    Awais

    Hi,
    Create on UDF at Row Level in Good Issue form beside distribution rule column
    & apply below FMS to it
    SELECT T0.[PrcName] FROM OPRC T0 WHERE T0.[PrcCode] =(select $[$13.10001018.0])
    auto-refresh it on selection of distribution rule
    regards,
    Raviraj

  • Formatted Search returns no values

    Good Afternoon
    Experts:
    I have a situation where I am using a Formatted Search on the BINS column of the Inventory Tab matrix for the ItemMaster Data screen.  It works great...displays the information I am looking for.  Here it is:
    Select T0.U_BinLoc AS 'Bin Location', T0.U_WhseCode AS 'Warehouse', T0.U_ItemCode AS 'Item Code', T0.U_Quantity AS 'Qty in Bin' FROM [@ITEMBIN] T0 where T0.U_ItemCode = $[OITM.ItemCode]
    <b>Issue:</b>
    If there are no entries in the @ITEMBIN table for the item in the ItemNumber field, the FormattedSearch box does not pop-up.  Good so far.  However, the screen changes to Update mode. 
    <b>Questions:</b>
    1)Is there some kind of "no result invisible" character that is getting returned back to the column behind the scenes? 
    2)How can I alleviate this behavior and just have the screen stay in OK mode if there are no results from the Formatted Search?
    Thanks,
    Ed

    John:
    I was not aware I could utilize that type of functionality in the query for a formatted search. Thanks for the suggestion...I will try it.
    Ed

  • Creating a Formatted Search in Item Master based on Unit Price

    Hi Experts,
    I have to create a Formatted Search for assigning the Standard Cost of Items as Selling Price-Selling Price*.05  i.e the Standard cost of the item should be set upon automatically equal to 5% less of Selling Price .
    I have created the following Formatted Search Query :
    SELECT ((SELECT $[$34.68.NUMBER])-(SELECT $[$34.68.NUMBER] *.05))
    and have assigned this FS to Standard Cost Field . I am not able to base it upon Unit Price field . This FS is correct but it is not automatically refreshing upon change of Unit Price and I have to manually update it(ALT+F2) . I guess the filed upon which it should be based upon is not correct .
    please guide me how to resolve this issue . How to base this FS upon Unit Price.
    Thanks and Regards,
    Pooja Singh.

    Hi,
    Actually I dont want to set upon the last No for the Series. What about the Sequence ? Administration->setup->financials->Tax->Sequence. Here also the same thing can be done but Location Specific. When I created 2 Series for the two different locations , I found that two different fields appeared on the screen Sequence Name Where I found the two sequences I defined for the two locations. If you have any idea about what this sequence is for and how far is it different from Document Series , please let me know.
    Thanks and Regards,
    Pooja Singh

Maybe you are looking for