Issues regarding Abap Query

We have created a query " AQYZSYSTQV000001WBSLIST======= "
and then query program was copied to ZFI_WBSLIST
On execution of  ZFI_WBSLIST,got the below error.
A RAISE statement in the program "SAPLAQGF" raised the exception
condition "NO_QUERY_REPORT".
"RAISE_EXCEPTION" " "
"SAPLAQGF" or "LAQGFU02"
"RSAQ_DECODE_REPORT_NAME"
Kindly help us in resolving the above problem.
Regards,
Rachel

Hi,
  First check the server(developement,quality or production) where you have created the query.
Try to create the query in quality server and then copy the program in development.This kind of problem I  faced once in that I had create the query in development so I was facing prolem but after create the query in quality it generate some different code.
That quality code in copied in development and then tried to execute it was working fine.
Check in program whether at some place they are passing program name as value.If it like that then replace it with your program name.
Hope it will help you.
Regards,
Rajesh Akarte

Similar Messages

  • Regarding ABAP Query authorization group

    Hi Team,
    This is regarding ABAP Query!
    I have created one authorization group, for testing i have assigned my id in authorization group.
    After creation of ABAP query,standard program got generated. Now i have created one transaction code at the last for the ABAP Query.
    Now the isse is even though i have deleted my id from the authorization group. I am able to execute the query from SQ01 and with the Transaction code .
    It should not happen...i want who soever id is mapped to the transaction code ...that member should only be able to run that query, otherwise there is no use of authorization group.
    Please help me out in this case.
    Thanks & Regards,
    Anil Kumar Sahni

    Are you sure that you don't have access to that authorisation group? Execute report RSUSR002. In the 'Authorization Object 1' block inform  S_TABU_DIS in 'Auth.Object' and accept. Then inform Activity=03 and Auth.Gruop= your group.
    You will get a list of all the users which, theoretically, will be able to execute the query. If you press 'Roles' or 'Profiles' in the toolbar of the listing you will get to know why you have authorisation. May be you have the SAP_ALL profile.
    Also, one more thing to take into account: how have you created your transaction? Is it referring directly to the generated report? Then it is an error, you should execute program SAP_QUERY_CALL. Read this post: [Relate transaction to query;

  • Issue in ABAP Query varient

    I have created the varient name CUS& for attaching the abap query varient in tranport request.  I have done this. but I am geting following error. please help me on this. thanks.
    The varient is created as Protected by default. I can't able to create the varient unprotected. Can you tell me how to create unprotected varient for SAP Query? becuase other user can't able to change the varient it is giving the error message with my user name as " No authorization to change the varient <varient name> Protected by <my user name>".
    Please could you help me how to fix it. this issue?

    Hi
    Thanks for your inputs.I am using ABAP query for first time. Can you advice where to check for same.
    Regards
    Dinesh

  • Issue in ABAP query

    Hi
      I have a doubt regarding ABAP queries . I need to pass the output of an ABAP query to another program . For this i want to know if the output of an ABAP query is stored in some kind of internal table or some other logic is used in that .
    Is it possible to send the ABAP query output to a memory structure.
    Helpful answers will be suitably rewarded.
    Thanks.

    Hi,
    program 1:
    from select query get the output to internal table
    so that with export and import u can attain this
    EXPORT t_sflight1 TO MEMORY ID 'SFLI'.
    SUBMIT pgm2 AND RETURN.
    program2:
    IMPORT t_sflight1 FROM MEMORY ID 'SFLI'.
    LOOP AT t_sflight1 INTO fs_string1.
    where in use the same internal table in both reports
    Reward Points If helpful.
    Regards,
    priya.

  • Regarding ABAP Query,

    How can we insert the Z Function module into Standard ABAP Query.
    Plz help me in this issue in step by stpe process.

    Hi Ambichan,
    Try this link.
    http://www.sappoint.com/abap/ab4query.pdf

  • Regarding ABAP query layout changes

    In 46C system, we have addon transaction ZXX created thru ABAP query displaying in ALV report
    layout fields in order A,B,C,D. But after upgrade to ECC5.0 we found the layout is changed to fields D,B,C,A.
    why its changed? Is it Patch problem or its SAP problem.
    However after upgrade we could manualy drag and drop the fields as per the 46C existing report layout
    it works fine.
    But we would like to know the reason why its happenning.?
    Could somebody give me suggestion.
    Regards
    Ambichan

    Hi Ambikumar,
    The ALV output layout is dependent on user settings.
    THe order of layout fields is changed bcz user has saved the new layout.
    In the output, check the ALV toolbar for CHANGE LAYOUT button. Click on it & check if anyone has saved any new layout. Delete the layout & you would alwyz get the fields in the same order as specified in the query.
    No need to modify the query using SQ01/SQ02.
    Simply execute the query & click button CHANGE LAYOUT.
    Best regards,
    Prashant

  • Regarding ABAP query when using the LDB

    Hi Experts,
    Iam preparing one ABAP query by using LDB.
    And i added two more table VBPA and KNA1.
    When i add the VBPA table the system will automatically generate
    the sql query and we need to pass the where condition to thet query.
    system generated like this..
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                =
       AND POSNR                  =
       AND PARVW                 =
    but in the above query i need to pass the values to PARVW as 'AG' or 'SP'.
    how can i pass the two values to that query?
    rgds,
    Sruthi.

    HI,
    It is system generated....just we need to pass the values to where condition.
    in normal ABAP we can do like this...
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                = EKPO-ZZVBELN
       AND POSNR                  = EKPO-ZZPOSNR
       AND PARVW                in  ( 'AG' , 'SP').
    or
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                = EKPO-ZZVBELN
       AND POSNR                = EKPO-ZZPOSNR
       AND                             ( PARVW  =  'AG' or  PARVW  =  'SP' ).
    Rgds,
    Sruthi.

  • Regarding ABAP Query related

    Hi,
      Can any body tell me how to keep query related data in
    internal table?
    Regards,
    Suresh Kumar.

    Do you mean that you are running a SQ01 query and you want to get the data from it into your report program?
    If this is the case, the normal way that we pass internal tables and stuff from program to program, is thru IMPORT/EXPORT statements.  But since you are talking about a query this may be a problem in adding the EXPORT statement to it.
    Regards,
    RIch Heilman

  • Issue regarding ABAP/4 language.

    Dear All,
    Can any body tell me that ABAP is fully object oriented language? Plz explain.
    Regards,
    Chandramohan.N

    Hi,
    ABAP is not Fully object oriented programming.
    You can add normal procedural programming with Object oriented programming i.e. you can combine classical ABAP with ABAP Objects.
    ABAP Objects is not entirely a new language, it is just an enhancement or added functionalities with in ABAP.
    Below LINK would also helps you..
    OOABAP
    Thanks,
    Sreekanth

  • Authorization issue regarding Bex Query

    Hi All,
    User Requirement: When ever the user is executing the report in Design Studio, user can able to see all the company codes (summary data) in the main page of the dashboard. If user wants to drill down to a particular Comp code, then user should access only which are authorized. Ex: If the user Test4444 is executing the report, then he/she can able to see all the comp codes data in the main page of the dashboard. If the user wants to drill down further to see the comp code wise data, then he/she should not allowed to see except comp code-4444 or what and all authorized .
    Back ground work:
    I have a Bex query, which is using the Design Studio. In this query, "0COMP_CODE" is a char InfoObj and I have created a Auth variable on this InfoObj. There are 4 autho objects created based on this "0COMP_CODE". And also 4 Roles and 4 users have created.
    Each autho_Objet has assigned to that corresponding Role and that Role is assigned to that correspond User. Details are as follows.
    Autho_Objet
    Role
    UserID
    ZTEST_MAIN (which includes all - 23 compny codes)
    ZMain_Role
    All users have to access this role
    ZTEST_1111 (which includes only CC- 1111
    Z1111_Role
    Test1111
    ZTEST_2222 (Which Includes only CC - 2222)
    Z2222_Role
    Test2222
    ZTEST_3333 (Which Includes only CC - 3333)
    Z3333_Role
    Test3333
    ZTEST_4444 (Which Includes only CC - 4444)
    Z4444_Role
    Test4444
    To achieve this requirement, I have created 1 auth.object for all Comp.Codes and assigned to one main role and this role is assigned to all users. This looks fine and hopefully it will work.
        The problem is the next step of drill down to comp.code. Here I have created individual autho.object per Role per User and mapped accordingly. Unfortunately, user can able to access all the comp.codes data because of the main role assigned. I got stuck here in this second level restriction. Could some one can through a light how we can achieve this in authorization. It would be a great assistance if some one help here. I would be much appreciated and grateful to your assistance and inputs. Thank you in advance!
    BR
    Venkat...

    In the role ZTEST_MAIN,
    You need to remove all company codes as this is overriding the rest
    Then add aggregate authorization, ie "0COMP_CODE" = ":"
    This is a special authorization which grants authorization to see the summation of all the 0COMP_CODE without giving detailed authorization to any.
    The rest of your design is fine.
    You should then use RSECADMIN to check any authorization issue you have.

  • Issue regarding ABAP workbench

    Hi ,

    Hi,
    The ABAP Workbench contains different tools for editing Repository objects. These tools can be used throughout the entire software development cycle. The tools in the Workbench are integrated. For example, when you are working on a program, the ABAP Editor will also recognize objects created using other tools. This integration means if you double-click an object, the Workbench automatically launches the tool that was used to create the object.
    Or check this link.
    http://www.sapfans.com/sapfans/asap/FB-glossar.htm
    Reward points if useful....
    Regards
    AK

  • Issue regarding Select Query

    Hello experts,
    I want a join on table ekpo & mbew(for valuation class).
    But its not working.
    if valclass is initial.
    select  aebeln aebelp atxz01 amatnr abukrs awerks a~menge
    a~mtart
    b~bklas
    from  ekpo  as a inner join  mbew as b on bmatnr eq amatnr
    into corresponding fields of table ekpo_mbew
    where  ( a~matnr eq mat_num ) and
    ( a~bukrs eq compcode ) and
    ( a~werks eq plant ) and
    ( a~mtart eq mat_type ) and
    b~bklas  in ('3001','3045' ,'3006','3055','3065') and
    ( amatnr eq bmatnr ).
    else.
    select  aebeln aebelp atxz01 amatnr abukrs awerks a~menge
    a~mtart
    b~bklas
    from  ekpo  as a inner join  mbew as b on bmatnr eq amatnr
    into corresponding fields of table ekpo_mbew
    where  ( a~matnr eq mat_num ) and
    ( a~bukrs eq compcode ) and
    ( a~werks eq plant ) and
    ( a~mtart eq mat_type ) and
    ( b~bklas  in valclass ) and
    ( amatnr eq bmatnr ).
    endif.
    Plz tell where I m wrng.
    Ravi.

    Hi,
         Try the below code,
    SELECT aebeln aebelp atxz01 amatnr abukrs awerks a~menge
    a~mtart
    b~bklas
    FROM ekpo AS a INNER JOIN mbew AS b ON bmatnr EQ amatnr INTO CORRESPONDING FIELDS OF TABLE ekpo_mbew
    WHERE  a~matnr EQ mat_num AND
                   a~bukrs EQ compcode AND
                   a~werks EQ plant AND
    a~mtart EQ mat_type AND
    b~bklas IN ('3001','3045' ,'3006','3055','3065').
    ELSE.
    SELECT aebeln aebelp atxz01 amatnr abukrs awerks a~menge
    a~mtart
    b~bklas
    FROM ekpo AS a INNER JOIN mbew AS b
    ON bmatnr EQ amatnr
    INTO CORRESPONDING FIELDS OF TABLE ekpo_mbew
    WHERE  a~matnr EQ mat_num AND
    a~bukrs EQ compcode  AND
    a~werks EQ plant AND
    a~mtart eq mat_type AND
    b~bklas IN valclass .
    Note :- ( amatnr eq bmatnr ) this is not necessary as the INNER JOIN is on that condition itself.
    Regards
    Bala Krishna

  • ABAP query vs ABAP report

    Hi Experts,
       I have a question regarding ABAP query  and report.
      what is the difference between ABAP query and ABAP report  ?
      will the query be more efficient than abap report ?
      Is there a standard SAP report that could replace a query?
    Thanks in advance,
    Manoj

    Hi,
    A report is a piece of logic that you write in (this case) in a programming language (ABAP). It uses the syntax of the normal commands of the PL.
    ABAP Query is a higher level tool, that reduces or eliminates the need to "program" in the PL, and rather uses more intuitive, graphic tools, to basically get the same results.
    Generally speaking, if the reporting needs are simple and standard, it is easy and feasible to use the query. The more complex the logic gets, the more you'll probably need to use programming.
    Regards,
    Mario

  • Selection Screen pop up issue - with jump query RRI

    Hi Experts,
    I am facing one issue regarding Jump Query(RRI) functionality.
    I have one query and also one drill down query.
    I need to jump from the first query to the drill down query.
    To achieve this , I have added the first query as sender in RSBBS T-Code and added the drill down query as Receiver.
    I have also done the variable assignment from the Assignment Details tab.
    Now the Jump functionality is working.
    But , whenever I am jumping to the receiver query , The selection screen pop up is appearing.
    I don't want this selection screen to appear during jump.
    Please help me in this regard.
    Thanks,
    Biswarup

    Hi ,
    For testing purpose , I have used a single query as sender as well as receiver query.
    So , the characteristics set is same.
    The query is a simple query, with only one input variable.
    and I have assigned it, from variable assignment.
    But still the selection screen pop up is coming , when trying to jump.
    Please suggest.
    Regards,
    Biswarup

  • ABAP query issue when logoff error message query not created

    Hi All ,
    I created a ABAP query using SQ01 . I saved it and i'm able to see the output . But , if i logoff from the system and relogin again to system and trying to execute the query , it is showing an error message
    " The query has not been created " Please help me , is there any settings change or i have to do any thing else ?
    Thanks & Regards ,
    Sabu

    Hi ,
    Yes you are right , when i try that way i can see , is it the correct solution ?
    i have one more issue , i created the query , i can display and execute the query , but no one in the same system able to display or execute the query . What should i do .
    Thanks & Regards ,
    Sabu.

Maybe you are looking for