Formatted Search with like

I'am tring to do a Formatted Search with this: SELECT     DISTINCT T0.Code, T0.Name
FROM         T0 LEFT OUTER JOIN
                  ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name Like '$[ORDR.U_PDISCHAR] %%' ORDER BY T0.Name
but it not work any help... thanks
Message was edited by: Juan F Vásquez

Hi,
This worked for me:
SELECT DISTINCT T0.Code, T0.Name
FROM T0 LEFT OUTER JOIN
ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name
Like $[ORDR.U_PDISCHAR] + '%%'  ORDER BY T0.Name
Not whit this same fields, but with others.
Hope helps,
Ibai Peñ

Similar Messages

  • Formatted search with Query auto update

    hi all,
    I have created 2 UDF's at title level in marketing document, and assigned Formatted search with query to it with auto refresh when posting date field changes. One UDF gets updated automatically and the other one doesnt.
    any one can guide me on this.
    regards
    salman
    Edited by: Rui Pereira on Aug 8, 2008 11:47 AM

    Hello Salman,
    I took the effort to understand you question but I am not quite sure if I have all the pieces of the puzzle yet.  I can see Jeyakanthan has already grilled you with questions and you have answered all of them.
    UDF1 - is this se to Auto Refresh - Refresh regularly - on Posting Date?
    UDF2 - On which field is this set to Auto refresh?
    UDF3 - On which field is this set to Auto refresh?
    One thing to note when you have two fields with FMS and the second one dependent on the value of the first, the second one does not auto refresh because it cannot detect the Field change on the First UDF.
    This is probably what you are experiencing.
    If you don't mind I would like to understand the business reason for the 3 UDF's and what each one is for. There might be other options to look at to achieve the same result.
    Let me know
    Suda

  • Create a Formatted Search with SDK?

    Hi,
    Is it possible to create an Formatted Search with the SDK? With which API???
    Thanks for Help
    Thorsten

    Hi Thorsten,
    Nowadays, there is not any standar way to do this. An approach could be to search for the tables where Formatted Searches are stored which are some.
    If you are interested, we have developed a tool that is used to carry personalizations such us Literals, Formatted Searchs, Querys, Document Editings, User Reports, UDF and UDT. It has been very helpfull for us, and we are planning to sell it to other partners. If you are interested send me an email to [email protected]
    Regards,
    Ibai Peñ

  • Formatted search with UDF and syntax question

    Can you explain the syntax with when to use the dollar sign and negative in writing a query for a formatted search based on user entry?
    I now want to create a formatted search to pull values based on the user's entry into a UDF on the item master screen.
    User entry into UDF U_Customer Code
    to create Formatted search for UDF U_Rep01
    I tried the following, but it does not work.
    SELECT T0.U_REP01 FROM dbo.OCRD T0
    WHERE T0.CARDCODE = $http://$OITM.U_CUSTOMERCODE
    Thanks.
    Please advise.

    The right syntax would be like this:
    SELECT T0.U_REP01 FROM dbo.OCRD T0
    WHERE T0.CARDCODE = $[OITM.U_CUSTOMERCODE\]
    However, the logic of query may not be correct.  Select something must be already in the system and Where should also be locatable.
    Thanks,
    Gordon

  • How do i deduct dates using formatted search with a query

    Hi Experts,
    I would like to know how to get the date difference using query and formatted search. Below are the details:
    1. I have created 3 Header UDF's composed of 2  Date type fields and 1 Quantity field.
    2. The first one is for the Original Date, the next one is for the Payment Date and the Last one is for the No. of Days Lapsed.
    What I would like to do is automatically compute for the number of days from the original date to the payment date. What query syntax should i use to achieve this?
    Thanks,
    Yvette

    Hi Yvette,
    It should be something like;
    DATEDIFF (day, T0.[createDate], T0.[closeDate] ) as 'Aging'  This is just an example. You may add your udf's instead of dates.
    Thanks,
    Joseph
    Edited by: Joseph Antony on Jul 2, 2010 1:53 PM

  • Format search with operation (+ - * /)

    HI people, i have this format search working perfectly:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > $[$38.14.number] AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    But i need sum a % in $38.14, so i did the next:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]*1.20) AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    But this not work......how can i sum a % ???

    Ok, works with this:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]/(0.80)) AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    My problem was that no quit FS from field, i meaning i must quit and the put again the FS to take the changes.

  • Formatted Search with DI  leads to a very slow performance - HELP....

    Hello There
    I have defined some formatted search in OPCH - everything is working fine.
    I have added some logic to this form via the DI.(handlling 1 item press_event), and I get a very very slow performance - the ADDON-EXE jumps TO 230MEGA of memory, and entering values to each row in the tables/item in the form takes about 15 seconds.
    Any suggestions?
    RGDS
    HAGAI

    Hi Hagai,
    Normally an addon written using the DI would take up 60-80MBs.
    Are you filtering out all events except for the item press event for the form? If you are not filtering events then this can have quite a drastic affect on performance.
    What logic have you got behind the press event? If the addon exe is ballooning out to 230MB then it suggests that there is either a problem with a memory leak or that an error is occuring in the code. I would recommend putting try/catch clauses at suitable places in the code and maybe specifically setting objects to null and calling the .NET garbage collector to try and minimise the potential for memory leaks.
    Are you sure that it is the combination of the formatted search and the addon that is causing the problem, i.e. if you take away the formatted search but leave the addon do you still get poor performance or does everything speed up?
    Hope this helps,
    Owen

  • 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

  • To create a formatted search with customer ref no.

    Hi there, I am new to formatted searches and I am trying to do the following:
    on the delivery docket when the customer ref no is filled in I want this to populate a UDF called ordr_U_CAllREF
    I have the udf created and it is called Cust Ref.
    can someone please give me some tips on how to create this please?
    thank you.
    E

    Hi Edel,
    Try this.
    Select $[ORDR.NumAtCard.0]
    Save above query in query manager and go to Sales Order Form and put cursor on U_CAllREF UDF and press Alt+Shift+F2 and it will ask you to link the query by using 3rd option and simply link this FMS to U_CAllREF.
    Hope this will help you.
    Regards,
    Rahul

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

  • Multi line pattern search with like

    Hi All,
    I am using oracle 9i. I want to search for multi - line pattern.
    for e.g.
    update tablename
    set columnname .
    I used select * from user_source where text like '%update tablename%set columnname%' but this only seem to work if update tablename set columnname is in the same line .
    Thanks.

    Well, no wonder it does not work. USER_SOURCE stores one line of text per row, so column text by definition can not contain multi-line strings . One solution could be analytic function LEAD:
    SQL> create or replace
      2    procedure p1
      3      is
      4      begin
      5          update emp
      6             set ename = ename;
      7  end;
      8  /
    Procedure created.
    SQL> select  distinct name
      2    from  (
      3           select  s.*,
      4                   lead(text) over(partition by name order by line) next_text
      5             from  user_source s
      6          )
      7    where text like '%update emp%'
      8      and next_text like '%set ename%'
      9  /
    NAME
    P1
    SQL> SY.

  • Formatted Search with data from active window

    Hi experts,
    I created a FMS on the order document. To let the FMS work, i use some data from the active order window like this $[$38.1]. In this FMS i also show some data to the user. To complete my FMS, i would have to add a where statement, with the active window the custom window i show the user. If i look into the system information, following information shows up below:Form 20000034, Item =4, Pane=0, Column = Col2, Variable =1 #000006294,Col2.
    Any idea's on how i can make a FMS with data from this active custom window?
    Kind Regards,
    Frederik

    Hello Frederik,
    Have you tried
    $[$Item.Column]
    $[$4.Col2]
    And i want to say it is possible to pick value from other not activate form .
    by using SQL syntax after add temp table.
    Thanks
    Manvendra Singh Niranjan

  • Formatted Search with user defined fields??

    Hai everyone,
    I know how to use the search.. I did like this...
    SELECT U_Discount FROM OITM WHERE ItemCode = $[$38.1.0]
    But now i want to know the other way...ie.
    SELECT U_TVal FROM OITM WHERE U_Tcode='??????'
    the where condition is to be like this -I have 2 user defined fields
    1. U_TCode
    2. U_TVal
    I want to select the U_TVal where the U_Tcode= ????
    HOW TO SPECIFY THE USER DEFINED FIELD HERE like  this one $ $38.1.0 ....or is there any other method??
    Thanks
    Vibin

    Its Same..I didnt try your way but i tried this
    select oNHand from OITW where ItemCode=$[RDR1.ItemCode]
    Here in sales order- when an item selected the Stock in different warehouse will be listed in quantity...
    Try that
    $[Tablename.FieldName]

  • Search with LIKE on Long datatype

    I'm running a query on Oracle 10g on the 'dba_triggers' data dictionary view
    I'm getting ORA-0093: inconsistence datatypes: expected NUMBER got LONG
    What should I do to fix the syntax to make like words with long
    SELECT *
    FROM DBA_TRIGGERS T
    WHERE T.trigger_body LIKE 'ABC%'
    ---

    Use this approach
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:315118200346261192

  • Help with Formatted Search with Date

    Hi experts,
    I need help with the following query. In the PO item level, I want to take a user entered date and add 6 weeks to it. For example, after a user enters in a date in the field u_Date1, then U_date2 will populate with U_date1 + 6 weeks.
    I can get the query to copy the U_Date1 field. However, once I add 6 weeks (+42) then I get an internal error. Please advise.
    select $[por1.u_date1] + 42
    from por1 t0
    inner join t1 on t0.docentry = t1.docentry
    where t0.linenum = $[por1.linenum] and
    t1.docentry = $[opor.docentry]
    Thank you for your help.  i am on 2007A PL 47.
    Jane

    Hi Jane Liang ,
    you can try this : Select  DateAdd(day,42,$http://por1.u_date1 )  from por1 t0  .....
    regards
    H2

Maybe you are looking for

  • Do I have to upgrade my software when updating from 10.3.9 to Tiger?

    I have pretty much the latest versions of all my software, as far as 10.3.9, anyhow. Mostly, I used Adobe and Macromedia programs, and I use Eudora (I have the latest one- 6.2 - I know they've stopped updating it.) Also, I still use my Classic enviro

  • Inbound SMTP rejects all messages.

    Hi, In short: after a clean install i can't receive any mail anymore... Let me start by saying that I’m not an IT professional, just a hobbyist with only limited knowledge on server specific subjects. I trust i must be doing something totally simple

  • Putting an applet in a web page

    My applet connects to an Oracle database and when ran gets the following error: java.security.AccessControlException: access denied (java.net.SocketPermission oracle.isg.computing.dcu.ie resolve) Is it possible to run this without changing the java.p

  • R3load -testconnect fails while doing the Export Prepare

    Hi All, R3load -testconnect fails while doing the Export Prepare for the Unicode Conversion. I have upgraded the CRM system from CRM 4.0 to SAP Netweaver 7.0 with EHP1. Now I doing the Unicode Conversion. While using the sapinst as root to start the

  • Java options to see code running

    Is there any option I can use to run my Java in which I will be able to see my code running, what methods it calls when, all the if statements and how they are evaluated, etc. I know unix shell scrips have such a functionality, and I was wondering if