Searching the User List using cfquery

I have a inventory web site, and I'm trying to create
multiple search engine, so I have a lot of text boxes and search
buttons in one page and I wanna be able to search by each category.
I'm suppose to have 121 records in my database, but it shows only
71 records after I did syntax...probably, I'm using AND, but if I
changed to OR, the search doesn't work...Here is my code...

How many database records you have where 1 field has a value
and another one has a value of an empty string? I ask because
that's what your query is looking for.

Similar Messages

  • How to find out the user list that created by someone?

    Hi all:
    Now I want to develop a program that can find out the user list created by someone.
    such as :
    John create 3 user in SAP ,they are u1,u2,u3.
    Susan create 2 user in SAP , they are s1,s2.
    I input the the parameter such as John , the program can give me the list :u1,u2,u3.
    Could you tell me which table should I use in this program?
    Thanks .
    Elisa.

    Hi Ling,
    As per my understanding, you are looking for listing down the number of Users created by a particular users of the System. Like a System Administrator has created some 30 users. If this is correct, then you can use the table
    USR02 - Logon Data (Kernel-Side Use). This table has 2 fields which are of importance - BNAME - User Name in User Master Record & ANAME - Creator of the User Master Record. You can query the ANAME with the username of the system and you will get the resultant users.
    But I would reccomend to search the Table for a standard class, function module or RFC or BAPI so that you can reuse the same and need not to develop from the scratch.
    Hope this will help.
    Thanks,
    Samantak.

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How get the user that use CRM in my web site

    Hi all,
    I have a web app that connect to my CRM. I use C#.
    I connect to CRM with my credential because I'm admin in CRM.
    But my app is used from others CRM user and I need to know who is systemuser CRM that use app.
    I need the same of Xrm.Page.context used in js or the same context used in plugin, but I have the problem that I connect  to CRM with my user. So If I use WhoAmIRequest class I have my userid and not the userid of the user that use my web app.
    Is it possible know this? Do I change my login with user login in CRM?
    Thanks

    Hi,
         As you use system admin to connect to CRM, WhoAmIRequest does not return the user from website. You are correct. Change that so that it uses logged in user however be aware that means each user needs to be a valid CRM user else they
    will get not a valid user error.
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • How can I find out the screen size of the users moniter using the Acrobat SDK?

    How can I find out the screen size of the users moniter using the Acrobat SDK? I need to know how much sreen real estate that is available on the users moniter. Is there some call that I can make from the SDK to discover the maximun X and Y coordinates?
    Thanks,
    Gregory

    Currently, I am testing on multiple moniters and it is defaulting to the moniter designated as the #1 moniter. For our purposes, this is acceptable. Once the two documents have loaded, the user can move and re-size at will.
    Gregory

  • How to detect if the user is using SSL

    I use weblogic 5.1 sp6and NES 4.1. Netscape plug-in connects them together.
    I also install the verisign certificate on the NES 4.1.
    I want my JSP code to detect if the user is using http or https to visit my
    site. However, isSecure() will return false and getSchema will return https
    and getServerPort will return 80, even when the user is using https:// . I
    guess the reason is when the NES forwards the request to the weblogic, it is
    not using https.
    Then how can I detect the protocol the user is using? I use getHeaderNames()
    method to print out all the infomration in the HEADER. However, I find that
    it only includes client header information. Is it true that NES plug-in only
    fowards part of the HEADER information to the weblogic server?
    Thanks

    Comments inline....
    "Lan Jiang" <[email protected]> wrote in message
    news:3a74d511$[email protected]..
    I use weblogic 5.1 sp6and NES 4.1. Netscape plug-in connects themtogether.
    I also install the verisign certificate on the NES 4.1.
    I want my JSP code to detect if the user is using http or https to visitmy
    site. However, isSecure() will return false and getSchema will returnhttps
    and getServerPort will return 80, even when the user is using https:// . I
    guess the reason is when the NES forwards the request to the weblogic, itis
    not using https.getServerPort should return 443. It's a bug. Fixed already in the later
    service packs.
    Workaround: run the server in a port other than 443.
    >
    Then how can I detect the protocol the user is using? I usegetHeaderNames()
    method to print out all the infomration in the HEADER. However, I findthat
    it only includes client header information. Is it true that NES plug-inonly
    fowards part of the HEADER information to the weblogic server?No, it forwards all except the Connection header because it doesn't support
    http 1.1
    Vinod.

  • Can anyone help me display the calendar list using an iphone4 wit iso 7.1.1?  I have already tried tapping the magnifying glass and that doesn't work.

    Can anyone help me display the calendar list using an iphone4 with iso 7.1.1?  I have already tried tapping the magnifying glass and that doesn't work.

    That icon allows for the calendar month to display with the appts for that month below.  I want to see only the list of appointments without the month displaying.  I use to be able to get that display but since the last update tapping the magnifiying glass doesn't work.

  • How to get the users list that can Add/Remove or modify Vendors in Oracle?

    How to get the users list that can Add/Remove or modify Vendors in Oracle?
    I need to generate a report like name and responsibility. Thanks

    That query gives the Supplier information.
    But what i would be needing is to find out the USERS in oracle who can Add/Modify or Remove Vendors.
    I assume it should be based on the Responsibility.

  • Restrict the users to use the field Unplanned delivery cost at MIRO

    Dear Friends,
    I want to restrict some users to use the unplanned delivery cost at MIRO. It should be displayed as visible to enter for some users and it should be displayed in grey mode not to enter anything for some users. I am asking this to restrict some misutilisation of this field by some users. Can I restrict through profiles?
    Simply, I want to restrict the users to use the field Unplanned delivery cost at MIRO through Profiles of them. Pls help me,, it is impacting our business.
    Regards,
    Venkata Reddy.Mudda

    Hi,
    Check the customization for unplanned cost:
    SPRO -- Materials Management -- Invoice Verification -- Logistics Invoice Verification -- Incoming Invoice -- Configure How Unplanned Delivery Costs Are Posted
    Best Regards
    Anamika

  • How to check the user is using mobile to browse my website??

    Dear all,
    i am new in Java.Pls help!!i want to check the user is use what tools to browse my website...i mean if the user is using mobile to vist my website(eg:http://www.abc.com), it will rediect the mobile user to a webpage only for mobile user,otherwise,it will redirect to normal page for normal user(use browser such as ie,netscape)...
    how to do it? which function did i use?please give me some tips!!!
    Java baby , Frankie

    Check the User-Agent header of your request. Most phones will identify themselves through it.

  • Using LDAP in 9.3.1, I can got the user list but can not use their password

    Hey guys, I need your help.
    I am using msad for Shared Services External Authentication.
    I configurate the msad successfully.
    And I could find the user in local domain. But I can not use their password in workspace.
    That mean's I could find the user in local domain and do the provision job.
    But I can not use their password in localdomain to login on workspace.
    Is there any thing I missed when configurate the Shared Services?
    Need your help.

    you may have trouble -
    if password use NATIONAL character, such letters like (я ч ъ ю )
    if user, who's have access from SS to AD under "NATIONAL" folder
    p.s. my settings for AD
    Name: NTLM Domain NAME
    Hostname: x.x.x.x
    Port: 389
    Base DN: DC=NAME,DC=domain suffix
    User DN: CN=user_name, CN=Users Catalog
    Login: sAMAccountName
    Email: mail

  • Search the Part number using autocomplete function

    Hi,
    I want to search the Product and Part Number. Filter Parts are associated with the selected product.
    For eg:
    Product  
    Part No
    Brass      2BA2316
    Monel     4BA4316
    Steel       6BA6316
    User will search by inch wise order by spacing semicolon (;) another text he will type.
    Once he typed text,related datas should be shown below textbox. Autocomplete function i tried using javascript
    but its not working. 
    Need Solution for this!!!
    Thank you in advance..

    Hi,
    According to your description, you might want to filter a list dynamically based on multiple columns and implement autocomplete for user input.
    For the dynamic filtering, here are two solutions with code source for your reference:
    http://instantlistfilter.codeplex.com/
    http://developeratwar.com/2012/04/easy-list-filtering-in-sharepoint-with-jquery-quicksearch/
    For the autocomplete, we will need to retrieve values of each columns in the current list first using SPServices or JavaScript Client Object Model, then use JavaScript to make
    them “autocomplete”.
    Two samples provided in the links below:
    http://www.c-sharpcorner.com/UploadFile/sagarp/fields-autocomplete-for-sharepoint-2010-using-jquery-spservi/
    http://sharepointwings.blogspot.com/2012/05/autocomplete-textbox-using-jquery-in.html
    Best regards
    Patrick Liang
    TechNet Community Support

  • What's the best way to manage the user list for  Reports on P6 web R8.2?

    BI requires a separate users list from P6 EPPM. Any recommendations on this?

    Welcome to the Apple Community.
    iTunes is straight forward, just use the same ID on all of them.
    What exactly do you want to see in messages on the Mac and iPad, messages combined from each of your phones or a different account just for both of you.
    You should think about what you want in calendars, contacts etc, on your shared devices.

  • Taking exactly 10 min to open the task list using smartview

    Hi All,
    We are using hyperion smartview 11.1.2.2
    when I connect to hyperion planning task list using smartview it is taking exactly 10 min to open the task but the same is taking only 3 seconds in our Production environment. Can someone help me out.
    I have also followed the below but it did not help me out.
    It might be that APS is timing out, I assume you are running OHS
    if so stop OHS, go to <MIDDLEWARE_HOME>\user_projects\<instance_name>\httpConfig\ohs\config\OHS\ohs_component
    edit mod_wl_ohs.conf
    In there you will see something like
    < LocationMatch ^/aps>
    SetHandler weblogic-handler
    WeblogicCluster <APS_SERVER>:13080
    < /LocationMatch>
    add
    WLIOTimeoutSecs 3600
    so it looks like
    < LocationMatch ^/aps>
    SetHandler weblogic-handler
    WeblogicCluster <APS_SERVER>:13080
    WLIOTimeoutSecs 3600
    < /LocationMatch>
    Save, start OHS and try again.
    Below is our planning0.log
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE =   CONTEXTID = 0000K2RgbvYCsl95nfp2iZ1I4pUX00000x TIMESTAMP = 1377001701090 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    ####<Aug 20, 2013 8:28:21 AM EDT> <Warning> <HTTP>  <Planning0> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000K2RgbvYCsl95nfp2iZ1I4pUX00000x> <1377001701106> <BEA-101138> <ServletContext@30584151[app:PLANNING module:HyperionPlanning path:/HyperionPlanning spec-version:2.5 version:11.1.2.0] One of the getParameter family of methods called after reading from the ServletInputStream. Not merging post parameters.>
    ####<Aug 20, 2013 8:28:21 AM EDT> <Info> <WorkManager> <AMIWSP01> <Planning0> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000K2RgbvYCsl95nfp2iZ1I4pUX00000x> <1377001701106> <BEA-002936> <maximum thread constraint WatchManagerEvents is reached>
    ####<Aug 20, 2013 8:28:22 AM EDT> <Alert> <Diagnostics>  <Planning0> <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor (created: Tue Aug 20 08:28:21 EDT 2013)> <<WLS Kernel>> <> <> <1377001702028> <BEA-320016> <Creating diagnostic image in C:\Oracle\Middleware\user_projects\domains\AMIHYPRD\servers\Planning0\adr\diag\ofm\amihyprd\planning0\incident\incdir_69426 with a lockout minute period of 1.>
    ####<Aug 20, 2013 8:39:11 AM EDT> <Error> <WebLogicServer> <Planning0> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1377002351544> <BEA-000337> <[STUCK] ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "635" seconds working on the request "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started time: 635907 ms
    POST /HyperionPlanning/SmartView HTTP/1.1
    Accept: */*
    Accept-Language: en-US
    Accept-Encoding: gzip
    ORA_EPM_SVCLIENT_CLIENTIP: 10.101.6.194
    ORA_EPM_SVCLIENT_EXTENSIONS: b78f60ca-e18b-401d-a10f-626c0118daf2;AF52322C-D60B-41f1-A8C8-0C299FBB0AA4
    Content-Encoding: gzip
    User-Agent: HttpApp/1.0
    Content-Length: 212
    Cache-Control: no-cache
    Cookie: JSESSIONID=DtdJSTgFpg67nJ2wvxKncMtlvKFJvZn9Q5Ljj0y4t5nZGkDRbsvN!165491247; ORA_EPMWS_User=admin; ORA_EPMWS_AccessibilityMode=false; ORA_EPMWS_ThemeSelection=BpmTadpole
    Connection: Keep-Alive
    X-Forwarded-For: 10.101.6.194
    Proxy-Client-IP: 10.101.6.194
    X-WebLogic-KeepAliveSecs: 30
    X-WebLogic-Force-JVMID: 165491247
    ]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    Thread-203 "[STUCK] ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, in native, suspended, priority=1, DAEMON> {
        com.hyperion.planning.olap.HspEssbaseMainAPI.EssGetCalcList(HspEssbaseMainAPI.java:???)
        com.hyperion.planning.olap.HspEssConnection.essGetCalcList(HspEssConnection.java:306)

    In order to diagnose your problem you will need to download and install the below
    Try clicking the tap problematic apps while the trace is running
    Install the WPT (windows Performance Toolkit) 
    http://www.microsoft.com/en-us/download/details.aspx?id=30652
    Help with installation (if needed) is here
    When you have, open an elevated command prompt and type the following 
    WPRUI.exe (which is the windows performance recorder) and check off the boxes for the following:
    First level triage, CPU usage, Disk IO.  
    If your problem is not CPU or HD then check off the relevant box/s as well (for example networking or registry)  Please configure yours as per the below snip
    Click Start
    Let it run for 60 secs or more and save the file (it will show you where it is being saved and what the file is called)
    Zip the file and upload to us on Onedrive (or any file sharing service) and give us a link to it in your next post.
    Wanikiya and Dyami--Team Zigzag

  • Is possible to save the user that uses the download action in an interactive report.

    Hi,
    In my application I want to save who is downloading the interactive reports information in any format, is it possible?
    Regards

    Hi Eva,
    As far as I know there is not an out of the box option that shows you the user that is downloading the interactive report. I guess you would have to write your own logic for that.
    You can create your own logging table and a dynamic action with
    1) a pl/sql procedure to insert the logging into the table, and
    2) submits the page with the appropriate download format, eg. f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION_ID.:CSV::::
    As trigger of the dynamic action you need to use either of the download buttons, so I'd suggest the jQuery selector "#apexir_dl*"
    Kind regards,
    Vincent

Maybe you are looking for

  • Zen vision M: playlists for vide

    Hit there!?I bought this player a few days ago, and i love the quality and freedom.But there is only one thing that puzzles me, why isnt it possible to make playlists or play more than one video at a time? I have about 70 musicvideos in the player an

  • Error Message when delivery qty more then po qty in MV50AFZ1

    Hi Sap Gurus, I gt a requirement  that while creating deliveries in vl02n if delivery quantity greater then po qty it should through error but i have alredy done coding in mv50afz1 user exit its working fine. My problem is if delivery no is differnt

  • How to stretch lov in table?

    Hi, i need to stretch LOV in table. i attach examples Please, help.

  • PHOTOsmart ESTATION , IS IT LIKE A IPAD, WHERE ARE THERE VIDEOS THAT TEACH US HOW TO USE IT

    I JUST GOT A HP PHOTOSMART ESTATION.   THE PART THAT DETACHES  LOOKS JUST LIKE A IPAD.    What i'd like to know is can it be used just like an IPad?  and does HP have Videos that can show and/or teach us how to use this detachable part to it's fulles

  • How to push color settings and profiles?

    I understand AAMEE 3.0 does not support packaging settings alltogether with the apps. So the questions comes, how do you guys push the color settings and the workspaces to the newly deployed CS6 packages? Is there a safe/approved way to do it? Thank