Formatted search to update Batch attribute to match row project code

We have extented project codes to the batch level by creading a UDF OIBT.U_ProjectCode.
Is it possible to create a formatted search in the "Batch Setup " window to update this UDF with the project code from the corresponding row of the purchase order? Keep in mind not all rows on the purchase order may be tracked by batches.

Hi,
Formatted search can only get value from database or current form. There is no access to other open forms.
Thanks,
Gordon

Similar Messages

  • Formatted search to update item description in Purchase order document

    Hello Everyone,
       Has anyone developed a formated search to update the item description field on the PO or SO document?  I need to change the  standard Item Description  based on the BP catalog number but cannot seem to get it to work.  I know to change it using the screens you need to enter CTRL+TAB to move from the field without triggering a lookup process but do not know how to do this in a formatted search.  Has anyone tried this?

    Hi,
    You may check this :
    BP Catalog Number in 8.8
    Thanks,
    Joseph

  • Formatted search Auto update based on copy to next document

    Hi all,
    I have a formatted search on Sales Order. I want this formatted search to update/trigger when a Sales Quotation is copied to a Sales Order. Is this possible. I tried using Sales order document number but under auto refresh when field change but didn't work. Looks like it's not possible to trigger a FS simple by opening a new document creation screen. In this scenario using sales order due date is not ideal.
    Thanks all

    Hi Nagarajan,
    I don't think the code of the FS matter. Its about whether a FS can be triggered without doing anything more once a quotation is copied to sales order.
    Thanks

  • Formatted search not updating

    Hello Experts,
    I have created a Formatted search on AR invoice document for an UDF and auto refresh is set on Document series.
    The FMs works fine for all series except for one which is set as default in document numbering. The values are in UDF not shown when this invoice is created with this series.
    Is there any limitation for FMs when set to auto refresh on an series with default one.
    Thanks
    Deepak

    Hi Deepak,
    UDF will refresh only when Series will change. This is Limitation.
    So Try to refresh UDF on some other field so that you can get Value in UDF for Default Series also.
    Regsrds::::
    Atul Chakraborty

  • How to update xml attributes as multiple rows

    I am new to this technology, but i need to show the result
    in xml document i have to update these attributes get from Databse utility class.
    <equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">
    <equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">By using XSLT Doucment i have to show this in table format multiple rows of data.
    I'll be happy if anyone tell me the example.

    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
    XSLT approach:  check these online tutorial
    http://www.xml.com/pub/a/2000/08/02/xslt/index.html
    http://www.xml.com/pub/a/2000/06/07/transforming/index.html
    ABAP approach:
    for example you have the xml (original) in a string called say xml_out .
    data: l_xml  type ref to cl_xml_document ,
            node type ref to if_ixml_node  .
    create object l_xml.
    call method l_xml->parse_string
      exporting
        stream = xml_out.
    node = l_xml->find_node(
        name   = 'IDENTITY'
       ROOT   = ROOT
    l_xml->set_attribute(
        name    = 'Name'
        value   = 'Charles'
        node    = node
    (the above example reads the element IDENTITY and sets attribute name/value to the same)
    like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
    so how do I access the XML file in order to update it?
    you have already read this XML into a ABAP variable right?
    Sorry couldnt understand your whole process, why do you need to read local XML file?
    Raja

  • (Creator I Update 8) datatable: no matching row found for rowindex

    I am creating an editable data table with a TextField column. The database is Oracle. I set concurrency of the underlying rowset. as CONCUR_UPDATEABLE. In the event handler I call datatablemodel.commit();
    But I'm getting "no matching row found for rowindex 0" error.
    There is only one related post and it doesn't give any definitive answers.
    Thanks for the solution.
    -Jie

    Hi Jie,
    I would highly recommend you to upgrade/use Creator 2 Update1. There has been two big releases of Creator after this release of Creator 2004Q2 you are using. There have been lots of new features and lot of bug fixes which could make things really easy for you.
    Please check out: http://developers.sun.com/prodtech/javatools/jscreator/downloads/index.jsp
    Best Regards,
    Sakthi

  • Formatted Search to Multiple Discounts in Sales Order Row

    I created 6 New UDF 3 for the new percentage e 3 for new discount value. Also created their formatted searh and the calculations are ok.
    But when I calculate the total the new value presents the following format -99.999.990,00.
    Bellow follow the querie:
    SELECT  (CAST($[INV1.U_VLRDESC1] AS NUMERIC(19,2)) + CAST($[INV1.U_VLRDESC2] AS NUMERIC(19,2)) +CAST($[INV1.U_VLRDESC3] AS NUMERIC(19,2))) - ($[$38.14.number] * $[$38.11.number] )

    try it as
    SELECT
    convert(numeric(19,2)
    (CAST($http://INV1.U_VLRDESC1 AS NUMERIC(19,2)) + CAST($http://INV1.U_VLRDESC2 AS NUMERIC(19,2)) +CAST($http://INV1.U_VLRDESC3 AS NUMERIC(19,2))) - ($http://$38.14.number * $http://$38.11.number )

  • 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 with multiple conditions

    Hi experts,
    I am using a formatted search to update the Unit price in Sales Order. Query mentioned below.
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049.0]'
    But while adding Item on Sales Order, it is showing error, Incorrect Syntax near  '$[$38.2000002049.0]'.
    Note: I have added an UDF named U_LOCATION( Alphanumeric, 10) in OPLN and selecting location in Price List through another FMS which is working perfectly.
    Please help in this regards.
    Thanks in Advance.
    Nabyendu

    Hi Nabyendu Saha..
    You said the u_location as alphanumeric the why you have given 0 for the field type in the FMS...
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049]'
    or
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = [$38.1.0]
         and     T1.u_location = $[ordr.u_location]
    Try the above , hope helpful
    Regards,
    Kennedy

  • 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

  • Problem with Formatted Search-Urgent

    Hi All, I have a problem as follows:
    I am trying to set up a formatted search in the Batches Setup window of GRPO document. I want to pickup the "Total Created" figure from Rows From Document grid (i.e. the upper grid) in the form. I want to add 100 to it and then to display the result in the "Batch Attribute1" Field in the lower grid i.e. Created Batches Grid.
    Please someone give me the tested query for the purpose..
    Thanks In Advance
    Amol Mangalkar

    Try the next FS:
    SELECT $[$35.38.Number]+100

  • External lists for updating marketing attributes

    Hi,
    I'm now working in CRM 3.1, but we're going to upgrade for 5.0 in the autumn. In this relation I'm working on a pre-project where I'm looking for the possibilities for using external lists for updating marketing attributes on existing BPs. How can I map this fields? Do I use advanced mapping fields or structure enhancement using appended fields?
    Thanks, Camilla

    Camilla,
    Yes, this function become standard for CRM 5.0. CRM5.0 ELM provide different format types for create BPs (with marketing attributes), activities and leads. You need to define different format type when you create mapping format. For updating marketing attributes, you need to choose type  "Business Partner" type so that all the marketing attributes will be available for you to pick to create the mapping format.
    You can look at the CRM5.0 release note and document for more details
    Regards,
    Min

  • Formatted search - syntaxhelp

    Dear All,
    i want to create a very simple formatted search, which updates the unitprice-field in sales order when itemcode changes.
    With the actual cardcode number and itemcode of the sales order (before saving) i want to check my udt (specialprice) for a fitting entry and want to return a price out of this udt.
    My FS:
    SELECT
          T0.U_SpecialPrice AS [Specialprice]
        FROM
          [@XXX_SPECIALPRICE] T0
        WHERE (T0.U_CardCode = $[$4.0.0] AND T0.U_ItemCode = $[$38.1.0])
    If i replace the $-Codes with a test-value the fs works. The udf's have the necessary types and digits.
    The error-message can't help me:  incorrect syntax near '$4.0.0'
    Thank you for your answers...
    GB

    hmmm.... I don't think so, because i have a more complicated query in purchase order which does nearly the same and this works....ok there is no direct where-condition with the udt-colums but an inner-join...
    SELECT
          T4.U_SpecialPrice AS [Specialprice]
        FROM
          OPOR T0 INNER JOIN
          POR1 T1 ON (T0.DocEntry=T1.DocEntry) INNER JOIN
          RDR1 T2 ON (T1.BaseEntry=T2.DocEntry AND T1.BaseLine=T2.LineNum AND T1.BaseType=T2.ObjType) INNER JOIN
          ORDR T3 ON (T2.docentry=T3.DocEntry) INNER JOIN
          [@XXX_SPECIALPRICE] T4 ON (T3.CardCode=T4.U_CardCode AND
          T2.ItemCode=T4.U_ItemCode)
        WHERE (T0.DocNum=$[$-8.0.0] AND T1.LineNum=$[$38.0.0]-1)

  • Problem With Formatted Search.

    Hi to all,
    I have linked a formatted search to a UDF that lies at row level in AP Invoice. This field is used to display the Sales  Order Price. The requirement is that from SO we create a purchase order and subsequently create a goods receipt and AP invoice.. Now in invoice it is showin perfectly fine whether it is copied from goods receipt or purchase order.. But in the purchase order and goods receipt screen this query will not work. And the same query used in AP invoice is being linked to these documents. Is there any work around for this?? Is it possible to run queries based on the form numbers?? If so ho do i pull the form number in the formatted search query??
    Please Help!!!!
    Regards
    Aris

    I recommend creating separate queries for each document.
    ie
    1 formatted search to lookup price on sales order from AP Invoice
    1 formatted search to lookup price on sales order from GRPO
    1 formatted search to lookup price on sales order from PO
    then change the lookup to pull fields from the document that you are using as a reference.
    when you are building the formatted searhes start by returning the values that are you are using as a reference. That way you are sure that you are pulling the correct information.
    Then layer in the lookup to the sales order.
    If you get stuck I recommend that you copy and paste the formatted search in SQL Server management studio and replace the variables refereces with real values.
    In my experience troubleshooting queries is more effective when using SQL Server management studio. (the error reporting is better).

  • 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

Maybe you are looking for