ABAP Query Variant Problem

Hi,
   I am trying to Execute a query through Program
  I had copied standard querys (ME80FN) Program  RM06EAAW  to my custom program
  In that program , it is caaling a query and assigning one variant
  Any idea from when that variant was assigned or How to create variants for ABAP Queries??
Thanks
Chandrasekhar J
Edited by: Chandrasekhar Jagarlamudi on Feb 20, 2008 1:08 AM

Hi,
Check these links...
http://help.sap.com/saphelp_nw04/helpdata/en/62/bc934814ba11d6999900508b6b8b11/frameset.htm
Re: ABAP Query variant - Error during SE93
Hope it helps u...
Regards,
KK

Similar Messages

  • ABAP Query variant - Error during SE93

    Team,
    I am creating ztransaction codes for abap queries via SE93. Sometimes in SE93 error comes stating that Variant is required. I want to know the table name where this info/indicator/flag is maintained.
    I need this info to automate my BDC.
    Thanks
    Error Msg:
    Report AQ10CR==========35============ can only be started with a variant
    Message no. DB623

    Hi,
    Check in SQ01, there are options to set the ABAP query to be executed with varaint. If this check box is enabled then you can execute the query only with a varaint. So i believe its the setting in the query definition and not in Se93.
    Btw you can define or create a transaction code  in SE93 to run a query with the varaint as well.
    Let me know if you need more info.
    cheers
    VJ

  • ABAP Query transport problem

    Dear All,
       I need to copy queries from Standard Area to Global area. When I use the transport facility (SQ03 --> Environment --> transport), it does pop-up the transport workbench request screen at the first time. I created one transport request number for it. After that, I accidently deleted the transport request without released it first. Now I have problem to add back the queries into the new transport request since the prompt for transport workbench request is not pop-up even I successfully copied the query from standard area to global area.
      Is there any suggested solution?. Thank you in advance for any suggestion.
    Edited by: shahrir razlan on Apr 16, 2008 6:36 PM
    Edited by: shahrir razlan on Apr 16, 2008 6:37 PM

    chances are very very slim.. (i think zero)  to delete a request, when it has objects . 
    so your statement - "I accidently deleted the transport request without released it first "  doesnt sounds logical...
    either you have removed your objects from the list before deleting the request..
    but if that was teh case, then it shud pop up for new request..
    as it is not asking for new request.... it is almost sure, that it is still in some request..
    look hard in se01 - your request shud be there... description shud be something like 'transport for abap query'.

  • ABAP Query Transport

    Dear All,
    we want transport ABAP Queries from one SAP instance to another..these ABAP Queries  under Global area (cross client).
    please suggest me how to create a transport request to transport these old queries , one more thing is all standard area (client specific) queries are copied .
    Regards,
    Gopala.S

    Check this link:
    ABAP Query Transport request related
    ABAP Query transport problem
    Creating t.code for ABAP query and Transport  it TO Production and run it .
    Edited by: Afshad Irani on Jul 20, 2010 12:30 PM

  • ABAP Query display variant problem

    Hi,
      We have three different SAP clients development DV1, Staging ST1 and production PC1. I have created an abap query for which I m trying to create a global display variant (not user specific). I m able to do so easily in DV1 and PC1 systems. But when I try to create a display variant on ST1 by first running the report and then going to menu Settings->Layout->Save . I find that by default the User-Specific checkbox is selected and disabled. Because of this I can create only user specific display variants for my queries.
    Where can I change the settings so that when I go to the above menu the User-specific checkbox is enabled and I m able to create global display variants ?
    Thank you for reading.
    Krishna

    I am confuse after reading your question , any way we can adding "default" variant in SQ01. You can also assign the same variant in SE93 , when you create T-code for the specific query !!.
    Well if it doesn’t solve your problem ..please explain your question with the help of tr. codes and what you’re trying to do !!
    I’m sorry , its really making me knutt by reading your question again and again .
    Thanks
    Saquib
    Message was edited by: Saquib Khan

  • Short Dump While selecting Variant for ABAP query

    Hi,
    ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
    I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
    I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
    Thanks in Advance.
    Nirmala K

    Hi nirmala,
    chk the links:
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
    regards,
    keerthi.

  • Problem with logical database DDF in ABAP query

    Hi All,
          I have created an ABAP query via the transaction SQ01 using the logical database DDF to retrieve customer master data from tables KNA1 & KNB1. The selection screen used is the screen 903 of the logical database DDF. But now the problem is that when I execute the query, I am getting a blank value in the tax code4(KNA1-STCD4) field though there is value in the KNA1 table for this particular field. This field was added to the table by means of a customizing include. Can anyone suggest a way to get around this problem so that I can view the content of the field STCD4 in the query.
    Thanks and regards,
    Sarath.

    I think it's not used by DDF.
    so you must check it with:
    check kna1-bran1 in s_bran1.
    A.

  • Problem in Currency field in Abap Query

    hi.
         I have created an additional field for storing the currency type.
         Based on some calculations i want to store the currency type into this additonal field.But the problem is that the currency field is not getting displayed in the report though i am getting the currency type in the additional field when i check it while debugging. Can anyone help me out...

    Vimal,
      Is it ABAP Query problem(SQ01).If yes, then
      In tcode SQ02(Infotype)>press extras button(F5)>In right side you will find 4 tabstrip buttons.Press on Extras--> create variable with same type of currency.
    goto Field group button--> add this field to field groups.
    In record processing event after your calculations assign your value of cuurncy to this new variable.
    In tcode SQ01-->enter query name >F6>F6>F6>select your new varaible
    >Press on basic list button(shift+F4)>left side you will find additional fields Node From there select your new field-->Save come back and execute the query.Now  you will find your variable.
    Don't forget ot reward if useful....

  • Tricky dynamic date variant in ABAP query

    Hello All,
    In an abap query there is a date field in the selection screen with from & to values.
    I am trying to create a dynamic variant that will fill the following data into those fields:
    From date: will be left blank
    To date: will show today's date - 90 days
    For example, if today's date is 01/12/2006 the variant should fill the following data into the fields:
    From date: <blank>
    To date: 01/09/2006
    I have tried all the methods I know with dynamic dates calculation in the variant definition but did not manage to create such variant.
    Any help will be very appreciated and points would be rewarded generously !
    Thank you very much,
    Ronen

    If the "from" date is meant to be left blank (beginning of time) and the "to" date is some date plus or minus number of days from today, you use the "current +/- days" dynamic date calculation format as was mentioned earlier.  Likewise if the "from" date is some date plus or minus today's date, and the "to" date is infinity -- you only need the one Dynamic Date calculation.
    To do this, first don't think about this as a date range, think of your Dynamic Date calculation as if this were a single parameter and not a select-option.  You are really saying "my date is anything LT/LE this date" or "my date is anything GT/GE this date" -- not a range
    In the Save Variant screen, find the desired date select-option and:
    1. Choose in column "Selection Variable", a "D" (Dynamic date calculation)
    2. Use F4 in the "Name of Variable" column
    3. Find "Current date +/- ??? days" or "Current date +/- ??? work days" in the popup, as appropriate
    4. For "I/E" (include/exclude) column select as appropriate
    5. For "Option" column, choose "LE", "LT", "GE", "GT", "NE" as appropriate
    6. After clicking green check mark, enter your plus or minus days (and factory calendar if using work days).
    7. Finish saving your variant.
    8. You may not see your changes in your variant until you back all the way out of the variant and then redisplay it.  You'll see a greyed out date along with the symbol matching your choice (LT, LE, etc.)
    Unfortunately if you don't have infinity on either end of the date you are limited to 999 days differences as far as I am aware.  If that is the case you can populate TVARVC table with parameter or selection variables, maintain them with STVARV transaction by hand, or use an ABAP program in batch to regularly calculate the values.  Then you can reference the TVARVC values in your variant instead of the Dynamic Date calculation.
    If someone knows a way to bypass the use of TVARVC for date ranges that are more than 999 days apart please let me know.  TVARVC works well but it is extra effort whereas Dynamic Date calculation would be much easier to maintain if the date range could be made larger than 999 days.

  • ABAP query problem.

    Hi All,
    I have one ABAP query which has been created for vendor details. Its using standard sap LDB KDF. Now there are some fields in vendor classification which are not there in LDB. so i need to add these fields in ABAP query.
    those fields are in other tables, ehich are not been used in standard LDB.
    Can anybody suggest me. Its really urgent issue.
    Regards
    Azad.
    If any further clarification required about the problem please get back to me.

    Azad,
    You will need to change the Infoset using tcode SQ02 (Probably copy current infoset and change in the new one), in new info set you can add tables and even custom fields with ABAP code behind them.
    Thanks.

  • ABAP Query download to Spreadsheet problem

    Hi,
    Using the Output Format "Spreadsheet" radio button choice from within the ABAP Query selection screen (accessible through SQ00) results in a certain user getting ONLY the pop-up that says "Save the data in the Spreadsheet", but the Excel Spreadsheet itself does not pop-up.
    We are on 4.7 and the user is using Excel 2007.  I suspected settings from within Excel, as well as perhaps the SAP Profile settings for the user in SU01, but am not sure what to check or where to look.
    If the user chooses ABAP List or SAP List Viewer, they can correctly save the data to an Excel spreadsheet of their choice path.  It just doesn't seem to work with the Spreadsheet radio button?
    Hoping for some advice on where to look / what to adjust.
    Thanks!
    Jeremy

    More info from the user, after I discussed an SAP GUI upgrade with her, indicates that it used to work well before she was moved from using a physical laptop to being on VDI and is now accessing a Virtual Machine.  Our whole company is converting to using virtualization to provide virtual desktops.  I will try to get her upgraded to the latest GUI, since our Basis group is piloting it.  That might do it, and I'll report back to this thread.
    While I try that, does the additional info of VDI seeming to "break" this, trigger any thoughts?
    Thanks
    Jeremy

  • Problem with ABAP QUERY LDB

    Hi to all,
    I am using LDB for ABAP Query. For this I given selection fields. I don't want selection screen as like standard one. Ex. For QM11 transaction what ever screen appering like that my query smae appering . Please give solution for this. I want my selection fields only in my selection screen while using LDB.
    Thanks.

    Resolved

  • BEX Query variant - how to make it Global ?

    We have a problem that we did not have in 3.x. In NW04s, when some one saves a query variant, it can be seen/accessed only by that person. We have a need to make it global so that other users in the division can use the variant to run the query. Does anybody know to make this work?
    I looked at the table RSRPARAMETRIZA and the field PERSONAL is always set to 'X' for variants created in BEX (using new BEX tool). We tried to blank this out (for testing) to see if the variant becomes global. But it did not help, in fact after this change whenever I choose this variant it kicks me out and I have to login again.
    Any input/workaround is appreciated.
    Regards
    -Bala

    As of NetWeaver 2004s variants (created in the BI70 runtime) are stored as an XML string inside of the table RSRPARAMETRIZA. In BW3.5 and before they were stored along with ABAP variants within the table VARI.
    Check these notes:
    1004479
    1003466
    990801
    981693
    973676
    978803
    973844
    774413
    Hope this helps,
    Prakash

  • Change a query variant using a program for APD

    Hello everyone,
    Some background:
    We have a complex reporting based on calculated key figures (CKF). However, the business rules do change over time, and the formulas for CKF get outdated. So the business meaning of CKF remains the same, but the way it gets calculated - changes.
    Yesterday CKF "A" = B + C
    Today CKF "A" = B + D - F
    Since the customer requires reporting for the former periods, maintaining several CKF of the same business meaning but calculated differently for each period becomes a problem.
    Instead of having several versions of CKF "A", we decided to use APD, to periodically run the query with valid CKF, save the query results to transactional ods, then move it to another infocube. Now we will have the infocube with figures and dates, and the customer needs to maintain just one CKF "A".
    After trying this out we've encountered following issue:
    Since the query will run periodically we must use a time period filter (in fact - variable on a time characteristic - APD is not working with filter) to select CKF valid for this month for example.
    The query in APD can work with variables only via query variants.
    Now, the question is how to change the query variant automatically?
    We can not force the customer to create new query variants each month for dozens of reports.
    We plan to integrate APD in the process chain (although we haven't check how it works), where the query variant will be changed using a program.
    so please advice:
    1) is there any function module to change query variants in the background
    2) which tables contain the query variant, so we can change it using abap
    3) may be you can suggest other options to make it work
    thank you
    Message was edited by:
            Northern

    Hi,
    here it is.
    write this code in SE38.
    REPORT  ZDATE_CAL..
    DATA: itab_tvarvc like tvarvc,
          l_date like sy-datum,
          l_monthyear_low type /BI0/OICALMONTH,
          l_monthyear_high type /BI0/OICALMONTH,
          l_day(2) type c,
          l_month(2) type c,
          l_year(4) type c,
          l_mandt(3) TYPE c VALUE '010',
          l_type(1) type c VALUE 'S',
          l_numb(4) type N value '0000'.
          l_day = sy-datum+6(2).
          l_month = sy-datum+4(2).
          l_year = sy-datum+0(4).
          concatenate l_day l_month l_year into l_date.
          concatenate '01' l_year into l_monthyear_low.
          concatenate l_month l_year into l_monthyear_high.
    variable for current month interval
    itab_tvarvc-mandt = l_mandt.
    itab_tvarvc-name  = 'ZDATE_INV'.
    itab_tvarvc-type  = l_type.
    itab_tvarvc-numb  = l_numb.
    itab_tvarvc-sign  = 'I'.
    itab_tvarvc-opti  = 'BT'.
    itab_tvarvc-low   = l_monthyear_low.
    itab_tvarvc-high  = l_monthyear_high.
    update TVARVC from itab_tvarvc.
    This code will always maintain the entry for the variable 'ZDATE_INV' as range from the start of month till current month.
    you can modify it store anything yuou want.
    Now when creating the variant by clicking the create variant option when running the query.
    you have the option in the "selection variable" column here you will find only TVARVC table as option select it and then in "name of variable" use the Z variable you have just created.
    This will automatically pick the current value for the variant for that variable.
    So anytime the variant is used in any of the scheduling it will pick the inout from here.
    make sure that the variable for time interval is of same type as that of the entry in the TVARVC table.
    That if it is of type calmonth then TVARVC table should have variable entry of type calmonth.
    thanks

  • Performance tuning for ABAP Query (created from t-cd SQ01)

    Hello all,
    We created ABAP Query report from transaction SQ01.
    But the generated report has an appropriate SQL statement which causes performance problem.
    To solve this issue, I guess the easiest way is;
    0. Give up to use it.
    1. Copy it to another object in the customer namespace.
    2. Ajust SQL statement.
    But I'm wondering if there're appropriate ways to adjust SQL statement of Query.
    Could anybody give me any better idea?
    Thank you
    Yuko

    You can try this: Create 2 ranges, for objnr and cdtcode and fill like:
    ra_objnr-sign = 'I'.
    ra_objnr-option = 'CP'.
    ra_objnr-low = 'OR*'.
    append ra_objnr.
    ra_code-sign = 'I'.
    ra_code-option = 'CP'.
    ra_code-low = 'CO*'.
    append ra_code.
    SELECT objnr udate utime
    FROM jcds
    INTO TABLE it_jcds
    WHERE objnr IN ra_objnr
    AND stat = l_tj02t
    AND cdtcode IN ra_code
    AND inact = space
    Regards,
    John.

Maybe you are looking for

  • Windows 7 Backup - System image includes non system disk

    Hi, I am trying out windows 7 backup, hoping at last that I won't need a 3rd party backup solution.  So far so bad! My first problem is how ridicilously slow the backup is, but this has been discussed at length elsewhere.  My second problem is the ba

  • What will i do if my email won't update?

    what should i do if my email won't update?

  • Acrobat Pro 9 Trial Ended Prematurely

    I installed the trial version two days ago.  Now the program has told me my trial has expired.  It was supposed to be a 30-day trial.  I see this problem has been posted with other Adobe programs. Talked and chatted with Adobe Tech to no avail. Is th

  • MRRL- Item 00002 for purchasing document not selectable

    I have a PO which was created with ERS flag on, when we did GR we realized this should not be ERS activated PO. So we reverse the GR  and unchecked the Inv. receiptm GR based IV and ERS flag on the PO but now this PO is keep showing up in MRRL with a

  • Restore non 10 OS backup to z-10

    Hello, I have lost my 9300 blackberry but luckliy I have a back up. I am following this KB (KB33322)http://btsc.webapps.blackberry.com/btsc/viewdocument.do?externalId=KB33322&sliceId=2&cmd=displayKC&d... but I don't see the ^ at the bottom of the lin