Searching in Alphanumeric fields.

Hi guys,
I have a problem referred to a select from custom table where my variable is GE an alfphanumeric field and LE another alphanumeric field.
Both of alphanumeric fields are char18.
Under you can find the record status, the variable value and the select code.
WERKS   ZBU DATBI        ZPRDHA_FROM         ZPRDHA_TO              PRCTR
DE10         3    31.12.9999 A00000000000000000 AZZZZZZZZZZZZZZZZZ DE10-C-ENE
XVBAP-PRDHA = A721451I
               select single prctr into l_profit_centre
                       from ztallbuprctr1
                       where werks = xvbap-werks
                         and zbu = l_zbu
                         and datbi ge xvbap-erdat
                         and zprdha_from ge xvbap-prodh
                         and zprdha_to le xvbap-prodh.
Why, according to you, sy-subrc = 4?
Have you got some workaround?
Thanks for your answer.

Thanks for response.
You are right, but I don't know exactly where can I delete these 6 fields (because they are generated automatically?). If i delete them in bindings (Page Definition file) fields also dissapears in query result table.
Query embeded in .jsff page looks like these (there are no fields, only reference to the binding):
          <af:query id="qryId1" headerText="Search" disclosed="true"
                    value="#{bindings.AMeklesanaCriteriaQuery.queryDescriptor}"
                    model="#{bindings.AMeklesanaCriteriaQuery.queryModel}"
                    queryListener="#{bindings.AMeklesanaCriteriaQuery.processQuery}"
                    queryOperationListener="#{bindings.AMeklesanaCriteriaQuery.processQueryOperation}"
                    resultComponentId="::pc1:meklesanaCriteriaQueryResult"/>
Result I would like to achieve: http://my.jetscreenshot.com/demo/20100630-ldrk-281kb.jpg
Edited by: andrejs on 2010.30.6 01:25

Similar Messages

  • How can I reliably search the "Notes" field in iOS?

    I know this isn't strictly an Applescript question, but I've found that the level of knowledge in this particular section of the boards is WAAAAAYYY higher than other sections, so I'm gonna ask this here anyway. FWIW, it does involve AppleScript....
    So I really miss the Palm style contact search by first initial and last name. So I wrote an applescript that runs nightly on my iMac and updates any new contacts to include this search term in the notes field. Actually, to be completely honest, some members of this forum wrote most of the script for me.... Anyway, for instance, Joe Smith has "JSmith" placed into the notes field.
    Now, usually when I search my contacts like this on my iphone it works like a dream. But sometimes the expected contact does not appear. In those cases, if I open the contact a different way (by searching for "Joe Smith," for instance, I find the contact, open it up, and always find that "JSmith" is actually in the notes field. My Applescript is working like clockwork... that's not the problem. Once I close the Joe Smith contact and retry the "JSmith" search, it now works. What gives?
    It's kinda like Spotlight is using a search index for the notes field but not the name itself? And the search index is not getting updated until I manually open the contact? But only on some contacte? Usually it updates itself just fine without my having to open the contact? And then today it failed to find a contact that has had the Palm-seach term in the notes field for at least three weeks. Once I opened it manually, though, it worked.
    So... help! Is there a way to force the iphone to manually rebuild whatever database spotlight is using to search the notes field? What's going on?

    I've turned on BOLD TEXT and turned on REDUCE MOTION but for me it feels like more than just the zooms in and out... I'm getting sick just reading emails and texts or just glancing at the lock screen. It's intant nausea. The only thing I can think of is that it's something to do with refresh rate or frequency of the screen.
    I thought I'd just get used to it but it has not subsided. I only hope I don't have to resort to backgrading to iOS 6 or worse, moving to a different brand of phone.

  • Searching for the fields of a table(very very urgent)

    Hi all,
    i am in graet trouble now.i am searching for the fields like
    1)country of origin where the finished good is created.
    2) customer sales order number
    3)customer sales order line number
    i am writing a report for delivery order.in this report i have to refer customer PO & customer SO .
      i mean, my company has a customer ( seagate) & seagate has a customer (let maxtor).initially maxtor will give a PO to seagate then seagate will raise a SO againest maxtor.
       Then seagate will send PO number(of maxtor), PO line number,SO number(seagate), SO line number(seagate) to our company.
       Then i have to write a report for sales order & delivery order.in these reports i have to refer seagate PO number & seagate SO number for reference.
    i got PO number as vbkd-bstkd but not getting any field for reference Sales order.plz advice me on this. it is very very urgent.
    ur idea is highly appreaciated.
    Thank u very much.
    Regards
    pabitra

    check out tables VBAK(sales order header), VBAP(sales items)

  • How to search for a field and its value in an internal table

    Hi,
    I want to search for a field(which i dont know whether it exists or not) in an internal table and on finding that field, I have to update the value of that field. How do I do it? I think its similar to how SEARCH works but i wanted to know the internal table eqivalent of it.

    Hi Sujay,
    this code will help ful to u, just gi through it,
    TABLES : KNA1,VBAK,VBAP.
    ***********INTERNAL TABLE DECLARATIONS****************
    DATA : IT_KNA1 TYPE TABLE OF KNA1,
           WA_KNA1 TYPE KNA1.
    DATA : IT_VBAK TYPE TABLE OF VBAK,
           WA_VBAK TYPE VBAK.
    DATA : IT_VBAP TYPE TABLE OF VBAP,
           WA_VBAP TYPE VBAP.
    START-OF-SELECTION.
      SELECT * FROM KNA1
      INTO TABLE IT_KNA1
      WHERE KUNNR = P_CUST.
      IF NOT IT_KNA1 IS INITIAL.
        SELECT * FROM VBAK
        INTO TABLE IT_VBAK
        FOR ALL ENTRIES IN IT_KNA1
        WHERE KUNNR = IT_KNA1-KUNNR.
        IF NOT IT_VBAK IS INITIAL.
          SELECT * FROM VBAP
          INTO TABLE IT_VBAP
          FOR ALL ENTRIES IN IT_VBAK
          WHERE VBELN = IT_VBAK-VBELN.
        ELSE.
          WRITE : / 'Customer',P_CUST,'does not exist ......'.
        ENDIF.
      ELSE.
        WRITE: / 'sales order does not exist for',P_CUST.
      ENDIF.
    Rewards points plz if useful
    Ganesh.

  • Maintaining Numeric Values in Alphanumeric field of Material Master

    Hello Everyone!
    Currently we are in midst of an SAP Project implementation. The problem arising is that we are using External Number for material codes which has already been used by the business in the legacy system. So the material code field has been set to Alphanumeric data type.
    During the data upload of material master a problem has been identified that some of the material codes that needs to be uploaded are number in nature or start with a numeral e.g 1234-5674-9, 1234-9876-D. While creating them the system generates the following error.
    Number 1234-5674-9 not defined for material type ICI PNT - Trading Goods
    Message no. M3318
    Diagnosis
    Every material type has a speific number range for external number assignment. The material number you have entered does not lie within the number range for this material type.
    Procedure
    Choose a material number that lies within the number range of your material type.
    Is there a way through which we can maintain such external numbers with Alphanumeric field.
    - Best Regards

    Hi Khalid,
    You assign as follows for external number range to your group
    From Number                                      to Number                                                                                EXT
    A                                                         ZZZZZZZZ( enter the number
                                                                    characters( Z) as required for your client)                                    Tick the Ext box
    By this setting you can assign ALPHA NUMERICAL external numbers
    Cheers
    Chris
    Edited by: CHRIS MM on Dec 27, 2010 9:27 AM

  • How to search for a fields ?

    Hello,
    I know it's an easy question but I've not find, how to search for a fields in Database on CR XI R2 ?
    Thanks in advance

    Hi Alexandre
    Do you want to see which database fields you have inserted in Crystal Reports and in which section you have inserted what fields?
    If yes then
    -open formula editor
    -In the right side pane expand Formatting Formulas.
    -Expand all the sections one by one and it will show you database fields,formulas and all the objects used in the sections.
    Hope this will clarify your doubts.
    Regards
    Asha.

  • How do I search the comments field in iTunes 11

    How do I search the comments field in iTunes 11 for windows

    I was suggesting you untick it.
    New search behaviour
    Old search behaviour
    Thinking that the old behaviour might prove more fruitful.
    If that doesn't help can you post a screenshot that shows what you're doing and why you think you're getting the wrong results?
    tt2

  • MATLOC_SET() - Issues when changing alphanumeric fields

    Hi All,
    I want to enable planner to quickly change safety stock settings for advanced safety stock calculation and recalculate the safety stocks through a macro button in the planning book.
    One part of this is to set the safety stock method. I am using the following code.
    MATLOC_SET(
    'MSDP_SB_METHOD' ;
    CHAR_VALUES_INPUT( 'Enter_Safety_Stock_Settings' ;
    'Safety_Stock_Method:'
    ACT_PRODUCT ;
    ACT_LOCATION ;
    ACT_VERSION
    But it does not work. whenever I enter anything the field is set to zero.
    I have tried the same code for the service level and other numeric fields and it works fine.
    With other alphanumeric fields like ABC indicator it also does not work. This seems to be an issue with alphanumeric versus numeric fields, but I am not sure how to fix the error, because I can only find the operation MATLOC_SET() as an option to change product-location specific product master fields.
    Please help.
    Thank you,
    Maria

    Hello Maria,
    You can use the macro function:
    SB_BETA_POINT() - for adv safety stock method BS.
    SB_ALPHA_CYCLE()- for adv safety stock method AT
    SB_ALPHA_POINT()- for adv safety stock method AS.
    SB_BETA_CYCLE()- for adv safety stock method BT.
    The syntax would be(if BS):
    SB_BETA_POINT( service level ; demand forecast ; forecast error demand (%) ; replenishment lead time ; forecast error replenishment lead time (%) ; days' supply ) returns the safety stock level for the Beta service level according to the point method.
    To get the values for Service level,: demand forecast ; forecast error demand (%) ; replenishment lead time ; forecast error replenishment lead time (%) ; days' supply you can use the the function MATLOC()
    You can store the values of the fields in auxillary KF and then call these in SB_BETA_POINT()
    The above method can be used to run interactively only and not in background.
    Thanks,Bopanna

  • How to attach search help in field BEDNR in table EKPO

    Hello, Experts!!!
    I have a problem in attaching Search Help in field BEDNR in table EKPO.
    Can anyone share something about this.. I've been dwelling on this for some time now,
    but still wasn't able to find a solution.
    Any thoughts would be highly appreciated.
    Thank you!!!
    Ellainne22

    Hi,
    I don't think you can directly link any search help with BEDNR without modification. If a search help was already linked, we could have gone for append search help. But in this case, nothing is there. So the options would be,
    see whether you can insert any search help through enhancements in the screens..You have to do it in every screen then.
    Other option is create a database view, & replace the dataelement with your own with a search help. You can refer this view after that.
    or go for modification & change the dataelement.
    Regards,
    Gokul

  • 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

  • Search in multiple fields

    I have a form an I want to search in multiple fields of same data block,but with OR condition (not AND condition).How can I do this?

    you may needto create a search screen based on a control block containing all these fields you want to search. then construct the string and set the default_where condition for your data block qeury; or pass the string to stored procedure if you based on your query block on procedure.
    e.g.,
    if field1 is not null then
    str := ' OR column1= '||:field1;
    end if;
    if field2 is not null then
    str := str||' OR column2 = '||:field2;
    end if;
    sure you need to have an intial v_where to || to the far left of that str, if nothing, using v_where := '0=0 ';
    str := v_where||str;

  • Spotlight does not search the notes field in contacts

    I can't get spotlight to search the notes field in a contact. I think that this used to work a short while ago. Am I missing something here?

    That's just how iOS is right now. You should try out the "Contact Notes" app. It's just $0.99 (in the US), and lets you display and search all your contact notes, all from one page. Here's a link to iTunes page: http://itunes.apple.com/us/app/contact-notes/id396281211?mt=8
    Full disclosure: I made the app.

  • How do I search all Contacts fields in the Q5 with OS10.2?

    Blackberry appear to be advancing backwards with their new Q5 and 10.2 operating system. I originally bought the Blackberry specifically for its ability to search into the notes field of email contacts, which no other phone could do at the time. When the operating system was "upgraded" to OS7 I was disappointed to find out that the Blackberry Search was no longer able to access the Contacts Notes field. But then I discovered the "OldSearch" app. This app replicated the old search functionality and I have been using it on my 9790 quite happily for the past two years. However, when the time came to renew my contract this year I made the BIG MISTAKE of assuming that the Q5 with its OS 10.2 would be a big step forward. I was VERY DISAPPOINTED. Once again the Blackberry search function could not search the notes field of Contacts but, worst of all, OldSearch cannot run on OS 10.2. After four days trying to persevere with the new menu format and combined with the search problem I decided to give up and hand the Q5 back. I have subsequently found out that most cell phones now have the facility to search into the Contacts notes, including the Samsung Galaxy and the iPhone. So, reluctantly, I say bye-bye Blackberry, hello Samsung S4.

    So, you're not really asking how to search contacts notes on the device. You just came to tell us you switched to to the S4.
    Good luck!
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Why is the search and logins fields are black when using AOL

    Why is the search and logins fields are black when using AOL??

    M3nth,
    Seems like we're all asking the same question
    As tst says... try not to use the one at the bottom.. it's ... hummm..
    It's behavior is unpredictable...
    As for the multiple listing I'll have to read Molly's response on this (I asked the same question is the "Xtreme thread")
    JLV
    === EDIT ===
    Hi Molly,
    I read your answer on the bottom search engine..
    That's what I thought it did... but it didn't work for me.. I tried to use it to find some of my own posts within LV.. and it didn't find anything.
    The search was : serial
    I did this while reading a LV question of the subject.
    I shall experiment with the search engine again and report my findings.
    R.Message Edited by JoeLabView on 03-17-2005 02:24 PM

  • Create search helps for fields of custom tables

    Hi,
    Could any one please provide me the step by step process to create search helps for fields in custom tables?
    Thanks in advance,
    Nobin.

    Hello Nobin
    There is basically no difference between a search help for standard vs. customer tables.
    An important choise is the selection method for your search help:
    Either you use your custom table, a view or a search help user-exit if you need to implement very specific requirements.
    Assuming that you can use your DB table as selection method the further implementation of the search help is quite straightforward:
    (1) Define the parameters you would like to have a selection criteria (SPos = SPos) and which should appear on the result list (= LPos).
    (2) Define the parameters that can be used as input for the selection (flag IMP) and are returned by the search help (flag EXP)
    Regards
      Uwe

Maybe you are looking for

  • Safari will not open Quick Time Video

    Safari can't seem to recognize many QT Videos. I have to open them in Netscape browser to view them. Any cure for this problem? PowerBook G4 17-inch   Mac OS X (10.3.9)  

  • Brazil issue regarding payment advice not generated in F110

    Hi , F110 Payment Run - Payment advice  File cannot be generated . Client had done  the  maintenance in the table J_1BFORCODE. Atfer that payment run carried out no payment advice is getting generated.Please provide me a solution.

  • Wanna learn XSLT mapping??

    hi forum, i want to learn xslt mapping, can the forum pls help me.... and i want to know in which case XSLT mapping is better than java mapping and Graphical mapping

  • RE : F4 functionality

    hi , plz tell me how to add f4 help functionality to a text field in a screen in module pool program. ie., the input should be given by selecting from the list of entries from the database table for that particular field. Thanks & Regards, Syam.

  • Java2 runtime environment for Solaris 2.5.1 ?

    Hi, I need to run Java2 applications on Solaris 2.5.1 (SunOS 5.5.1) Can I install Java2 runtime environment on Solaris 2.5.1? Which version of JRE should I have? Any advise will be appreciated.