Unusual Problem in SAP Query

Hi Experts,
I am facing a very Unusual problem in during SAP Query Devlopment.
In Input screen I am taking value as User , which is coming from User02 table and field name is
Bname . In USR02 table Username is maintained boths as Numeric num ( like 1236533) and Username wise ( Like gd.anil etc).
But While running the query , Its execute only when giving the nUmeric Num , It wont executes if i give the name like gd.anil .
This gd.anil is also maintained in USr02 table .
Can anyone tell me why its happening.
Thanks .
Koro

If the user ID is actually stored as lower case, then it was entered directly or with a screen field that doesn't have a screen mask.  You are most likely using the DB field in your selection screen and it's being converted to upper case after entry but before selection.  Have you debugged the generated program?  You should see this in the query.

Similar Messages

  • One more Problem with SAP query

    Hi All,
    I am having a problem with SAP query
    Execution of SAP query transaction is leading to Dump
    the dump says Field 'R01' contains no fields, syntax check on the program shows same error.
    When I tried regenerating the Query in SQ01
    " Query Specification cannot be use to generate list
    Ranked list contains only numeric fields
    Please help me

    Gianpiero Bucchieri wrote:
    > So its important to listening the following tables too: Faktura (invoice), Partner Role, Partnernumber and the requierements number. The table are EKKO EKPO AND VRKPA OR vbkd, but if I join this table the query doesn't listining any results. If I cancel this 3 or 4 table and I start the query, the listening are ok. 
    >
    I am not sure what business process you are describing here - is it some kind of third-party sales order? If so, your join is wrong.
    From VB E P, firled BANFN and BNFPO you can go to table EBAN, where in field EBELN you will find the number of the purchase order (if somebody already had an MRP+Me58 run over the PR) which will lead you to table EKKO, and EKPO.
    So what we have here (essentially is):
    VBAK -> VBAP -> VBEP -> EBAN -> EKKO -> EKPO
    But that only solves one of your problems - you still have a long way to go to get invoices, partner and partner roles into there and I am beginning to ask myself what exactly it is you want to evaluate.
    Care to explain?
    Edited by: Mylène Dorias on Apr 1, 2010 2:10 PM

  • Problem Change SAP Query in Crystal Reports

    Hi,
    i have a problem with changing a SAP Query in an Crystal Reports.
    I build a Report with a Query(1) and Design the Report complet everything works fine.
    I make a new Query(2) and if i make a new Crystal Report with this new Query everything works fine.
    Now my problem is i would like to use the design of the first report. Therefore i open the first report and save it under a new name. Delete all Database fields and delete the database connection.
    Now i gave in the new database connection to the new query(2) and in the Database fields i see a lot of Fields but not the right ones. Its completly wrong. Is there anybody how know this problem?????

    Hi i solved my problem by myself.
    I have to set Query as external available and have to use the MDX Query.
    Its strange because if i build a new report the query dont have to be set as external available.

  • Problem in sap query

    Hi All,
    I have  changed the standard sap query . i have written coding for newly added feilds in infoset(sq02 code part).
    I want to join my internal table with standard internal table ( final internal table ) to incorporate changes.
    Please guide me to merge both the internal tables.
    Thanks in advance
    Sudhakar

    Hi,
    All other part remain same.Could you please tell me why we got that error any probable Opinion from your side...
    thanks in advance.
    Regards,
    Moni

  • Problem in SAP Query with currency conversion   based on table TCURX

    Hi All,
    I have an infoset where tables A903 and KONP are joined . Query is displaying the KONP-KBTER values with currency as stored in the database table .My requirement is to show the KBETR value as per decimals stored in TCURX table for that currency .
    For Example If KONP-KBETR = 51.29 JPY , It sholuld display as 5129  as  Decimal places for JPY is 0.
    There is FM CURRENCY_AMOUNT_SAP_TO_DISPLAY Which gives the equvivalent display value to the databse value value.But it is giving dump because of type conflict with
    KONP-KBETR .
      Can any body help me how can i solve the problem in My Query ? .Pls any small idea taht may help greatly  also warmly welcome .
    Thx,
    Dharma .

    Hi Sriram ,
    But how can i use it in Queries . I mean should I go for a additional filed in infoset and then passing the  converted value to the the that additional field .
    Thx ,
    Dharma .

  • Problem with SAP Query

    Hi,
    In my Query The Outputs are <b>user ame, role and role discription</b>
    for one language we are having 10 lines of role discriptions .but i need only one role discription to my output for this what i need to do?

    Dear Ferdinando,
    Visit the following link for information on Transport of Queries:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4699455611d189710000e8322d00/content.htm
    http://www.sap-img.com/basis/transport-of-abap-query.htm
    Reward points if this is helpful.
    Regards,
    Naveen.

  • Re: Transport problem of SAP Query in Global Area

    Hi All,
    I am facing a problem in transporting the query which is created in Global area.
    I created a Query in Global Area and saved in a Transport Request. Now i created a Transaction code for this query by taking the Program name generated by this Query.
    then i released the TR to Quality sys, which contains User Group, Infoset, Query & Transaction code. I see User Group & Infoset in my Quality sys but i dont see th Query & Transaction code assigned to this Query, and when i try to run the transaction code assigned to this query its giving dump saying 'LOAD_PROGRAM_NOT_FOUND'.
    Could anyone please help me in resolving this..am i missing any steps here...kindly do the needful...
    Regards,
    Pavan

    Hi i solved my problem by myself.
    I have to set Query as external available and have to use the MDX Query.
    Its strange because if i build a new report the query dont have to be set as external available.

  • Problem in SAP Query will displaing the curency and quentity values

    Hi Gurus,
    I had copied one query which is having  currency and quantity values and displaying  with out unit of measurement, And in my copied query i and able to see unit of measure automatically while executing the query.How to remove this .
    Thanks and regards
    Ravinder Elagam

    solved by myself

  • SAP Query not working

    Hi,
    I am facing problem with SAP Query. My query is not working for one particular date. Its giving timeout error when i just give date as input. I tried executing it by giving some particular document as input, then its giving "no data" message but when i check the table data, there are some records for that input condition.
    I debugged it, i found that the statement "FETCH NEXT CURSOR cursorname" is throwing sy-subrc eq 4. I couldn't understand the problem.
    Any inputs will be very helpful.
    Regards,
    Mahidhar.

    Hi Azeem,
    There are more than 10 tables that were used in this query with different types joins like inner join, left outer, right outer join. So i wasnt able to decode the select query that was present in open cursor command.
    I have given the date and executed the same in background. It ran in 19min. But when i add one more input parameter, then its running more than a day(still running ). Didn't get the exact problem still.
    Regards,
    Mahidhar.

  • How to override security for table access when using SAP Query?

    We have a number of infosets which use table join between PA0001 and CATSDB table. To execute a query based on such a query you would need access to table auth group PA through S_TABU_DIS. This was earlier not a problem as SAP query was earlier used by support staff and not end users. We do not want to give S_TABU_DIS with to end users as this amounts to givin them access to all PA tables.
    The generated code for the query checks for the condition
    "%rtmode-no_authchk = space"
    before going for the authorization check.
    Thus, ideally the authorization check for an InfoSet can be skipped if we can pass X for this variable from the InfoSet definition. Is there a way to do this?
    Would appreciste any inputs to help suppress the authorization check at this point. Thanks.....

    >
    Julius Bussche wrote:
    > Perhaps you could replace it with a class of your own (transaction SE24)?
    >
    > I have not tried to do this; it was just a thought.
    >
    > Kind regards,
    > Julius
    unfortunately this does not work. SAP saw fit to 'hard-code' the implementation of the interface in RSAQEXCE:
    (only parts of that abap displayed here).
    170 data: iref type ref to if_query_tab_access_authority.
    1107 *       FORM AUTHORITY_BEGIN
    1112 form authority_begin using p_auth_classname type AQS_CLSNA.
    1119   perform authority_init using p_auth_classname.
    1120   call method iref->access_authority_begin.
    well for my part (searching a solution for a query on LTAK, wanting L_LGNUM as an object) i'm out of ideas. i shall have to modify SAP-standard and disable the class and do my own coding in the info-set. no other possibility - i cannot allow S_TABU_DIS for group LA and even if i did, what help would it be - i would have to allow that to all companies in that client having WM - and that would be literally all - i need LGNUM here!

  • Duplicates in SAP Query (crmd_order_index)

    Hello, SAP-friends!
    I'm trying to get all Bus.Transaction of a particular partner using table CRMD_ORDER_INDEX in sap query.
    I insert the part number and in the result screen I get more items than it has to be (here are some duplicates items). My result differences compared with B.Tr CRMD_ORDER using search criteria as business partner number or b.tr se16-CRMD_ORDER_INDEX, here I get another result without duplicates! What is problem in SAP Query?
    Did anyone face this problem?
    Thanks in advance!

    Hi Andrey,
    CRMD_ORDER_INDEX table will provide all entries for a particular PARTNER_NO at both header and line item levels . So if a transaction has 2 line items and a PARTNER 'XYZ' maintained at header and also in those 2 line items , so number of entries in the result list after querying CRMD_ORDER_INDEX will be 3 .with same header and different line item guids.
                               Whereas in Tcode CRMD_ORDER it will provide all the different transactions if any PARTNER_NO is maintained in entire transaction( can be at any level header or item).
    Regards,
    Nithish

  • Problem with create universe on Business Objects XI 3.1 base on SAP Query

    Hello,
    I have a problem with create universe on Business Objects XI 3.1 base on SAP Query.
    The problem is hierarchy. Massage on Busines Objects is :
       OWBS_ELEMT__ISTKOSZT(cube ICPC01/BEX_ICOC01):Exception condition  "HIERARCHY NOT FOUND" raised.(WIS 10901) 
    Query in BEX run OK.
    Best regards.
    Ela.

    Hello,
    Thanks for response.
    When I run BEX QUERY, all works OK.
    All hierarchies was created and activated  on system BW.
    This situation appears after upgrade BW to SAP NetWeaver 7.3.
    Before upgrade I created universe without any problems.
    Regards Ela

  • Problem in transporting generated program of SAP Query

    <h5> Hi all,
    I created a SAP query in development server and generated the program for the same, I transported the infoset and the user group etc. to the next server but couldnot transfer the program, since the program is not a Z Program, so coudlnot save it and capture it in request so that the same can be transported.
    What could be the possible solution for the same????
    Regards, </h5>

    Yep, this gets a bit tricky. Remember that SAP Query is designed as an end-user tool. To this end, the creation of queries could be done in a productive environment. The maintenance of infosets could be restricted to Development systems only. I know that some sites do not allow this.
    Through the use of authorisations, you could appoint an administrator to generate the queries in PRD for the users.
    The name of the ABAP is a combination of the query name, infoset and the client number (I think - going from memory). You could possibly change the package name of the generated program and then attach it to a transport, but it becomes very messy and I wouldn't recommend it.

  • Problem with a SAP Query

    Hello all,
    I am working on an sap query and i am running the query for a date intreval say for the current month. But the query is picking the date from the infotype begindate and not the interval with which i am running.
    What might be the possible cause for this.
    Thanks,
    Krishna

    Hello Krishnakumar,
    U have selected the fields in query from the infoset and u r entering the value in the same now as the query the program should use the values entered in the fields selected from query unless u have create local fields which are not connected the the database.
    What is the data selection?

  • ABAP QUERY (SAP QUERY) Coding problem?

    Hi experts,
    Can anyone tell me how to find what is the final internal table in SAP QUERY? I want to delete some unwanted records from my final internal table but I am unable to find it. please do help. Its urgent I am strugling from 3 days, to day I have to finish this task...
    Help !!!!!

    HI,
    It is not the the internal tables but the structures have been filled for the tables you have declared in SAP QUERY
    or defined using EXTRAS option.
    in the application tool bar there is  a button 'CODE' by using the 'Record Processing' event of this you can clear the fields you want.
    REgards

Maybe you are looking for