SQVI query

Hello All,
could anyone help me in creating a new query SQVI.
I am trying to create a view where i want to get a report which has the following fields. I want to get this information where i used company code as the selection fields.
Period: Fiscal year
WBS
Purchase order
Value -Amount
Cost center
Profit center
Network
Sales order
Activity type and activity.
Thanks for all the help

In SQVI under the Infosets use /SAPQUERY/FIBR, it has all the fields you require. Assign yourself in a user group and then assign the Infoset to the user group. After that you can create a new query once these fields are available. If you need to add more fields make a Z of the infoset and add it to the Field Group to make it available in the query.
Good Luck

Similar Messages

  • SQVI QUERY REPORT GENERATION

    EXPERTS,
                   I WANT A REPORT WHICH CONTAINS THE FOLLOWING FIELDS VIA QUERY GENERATION
    1)MATERIAL
    2)SHORT TEXT
    3)QUANTIY
    4)STOCK AS ON DATE
    5)UNIT
    6)DELIVERY DATE
    7)MATERIAL GROUP
    8)MATGEIAL GROU P DESCRIPTION
    9)PLANT
    10)REQUISITONER
    11)NO OF REQUISITIONS
    12)PURCHASE ORDER
    13)OREDER QUANTITY
    14)VENDOR
    15)CHANGED ON
    16)PO DATE
    17)PURCHASE REQUISITIONS
    18)BALANCE QANTITY TO ORDER
    19)QUANTITY TO BE DELIVERED
    I HAVE USED THE FOLLOWING TABLES TO JOIN- -- - MARA,EBAN,MBEW,EINE,EKPO,EKKO,MSEG
    IN SELCTION FIELD I HAVE CHOOSE --- SUPPLYING VENDOR, PLANT
    REPORT IS NOT RUNNING.
    WHEN I RUN THE REPORT MESSEGE COMES "no data was selected"
    please guide
    THANKS & REGARDS,
    MANISH K. BACHATE
    Edited by: Csaba Szommer on Aug 19, 2011 8:08 AM

    Manish,
    There are so many things that could be wrong with your query, it is hard to know where to start.
    You are using joins to link EBAN (Purchase Reqs), MSEG (material documents), MBEW (Material valuation), EKKO/EKPO (Purchase Orders), and MARA (Material master).  Depending on the types of joins, and the sequence, you would have to have a LOT of stars in alignment to get any data output.  Each join further limits the possible data that can be selected.
    I suggest that you start with a less agressive query, say, EKPO joined to MARA on material, and EKPO joined with EKKO on Order number.  You will be able to get a substantial number of your desired fields.
    If this solution is unsatisfactory, I suggest that you enlist the aid of a programmer to create a custom report that will solve your business requirement.  I really doubt that you will be able to get a meaningful report, meeting all of your business requirements, using SQVI.
    Best Regards,
    DB49

  • Using SQVI To Generate Program in DEV

    I have read a lot about the merits of using SQVI for simple queries and then generating the code and assigning to a transaction code so that others can run the query/report. I have found posts in this forum that suggest using SE93 to create a transaction code and assign the SQVI generated program is the only way that an SQVI query can be shared. I certainly hope they were not assuming that users have SE93 in a production environment??
    My question is, if I create this query and generate the program in our DEV environment and then assign it to a transaction code, can this be transported from DEV to TST to PRD intact? Will this work?
    One other question, when the program is generated does it also create the required authorization checks? I am using USR* tables for this report, nothing considered sensitive, would any additional authorizations be required to allow just about any user to run the transaction?
    Disclosure, I am a power user and not an ABAP specialist.
    I appreciate a speedy reply if that is possible.
    Thanks
    Mark

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Can't save query for fixed asset

    I'm using sqvi query and logical database ADB, and fields comp code, asset number, subnumber, cost center, planned ord. depreciation, ordinary dep. posted in current year, i can't save, it says:
    global syntax check
    Error in parameter PA_PGSEL
    Statement concluding with "...TYPE" ended unexpectedly.
    Message no. AQ006
    how to resolve?

    Hi,
    try below query
    SELECT T0.[ItemName], T0.[AssetItem], T0.[validFor] FROM OITM T0 WHERE T0.[validFor] ='Y' and  T0.[AssetItem] ='Y'
    you can choose here depriciation type too same as above..
    Regards
    Deepak Tyagi

  • SQVI for BOM header and component -reg

    Hi ,
    Requirement is we need to download BOM header wise Components for the BOM headers across the plants
    As it is of mass and for around 7000 BOM headers we need the details , i have created a SQVI query using MAST , STKO and STPO
    but when i execute it in masss inputting the BOM headers  results are not correct  with errors like repetitions , not matching with CS03 etc...
    is there any other effective way for this requirement ?
    i need to input the BOM header material and where and all plants they have BOM i need to get the corresponding BOM components
    pl suggest  soon as it is relevant for year end
    Madhu Kiran

    Hi ,
    Tried with the combination of MAST--STKO-STAS----STPO , still having issues
    SQVI results shows combination of soem BOM headers and components which are not yet all linked through BOM , wehn i cross check the result through CS03 , for the BOM header , plant there is no BOM still SQVI shows the records again with repititions
    dont know which is  missing as earlier i used to feel this SQVI is effective  but i think if we use more number of tables we get issues ..
    i can not ask for ABAP report development as this is one time activity required for year end things
    if some one can share any doc on this please share, as i tried and tired with all combinations
    can not use the function module as i need to input materials in mass
    pl guide
    Madhu kiran

  • Adhoc Query Outer Join

    Hi
    Is it possible to have adhoc queries with outer join since logical databases use inner joins.. Was just wondering if this is possible
    Thanks
    Case

    Hi
    As workaround u can use the SQVI - Query where u can play with infotype .
    you can select wat are the infotypes to be joined and wat are the filedls u wish to get out put and selection everthing
    with regards
    partha
    keep sharing and learing

  • Can we call function modules in SAP query or ADHOC query

    Hi ,
    Can we call afunction moudule in sap query or ADHOC query ?If yes How
    An early responce is greatly appreciated
    Thanks and best regards
    Rajeev Chhabra

    Hello Rajeev Chhabra,
       Yes; you can call function module in SAP Query. In InfoSet definition (SQ02), you can create additional field. In this field definition, you can add code snippet where you can function module.  
    However, this is not possible in Quick Viewer (SQVI) Query.
    Thanks,
    Venu

  • SQVI info req??

    Hi
    I am told to make a tcode for a SQVI generated Program,i copied the program to a ZPPRG,but when i moveed it to QAS,I found that the Reports Texts Elements are missing,both form the selection-screen alos from the O/P disply.
    so can any one tell me how to copy the SAP SQVI Query Generated program,so that i can make its tcode & take it to QAS along with all text elements.
    its a uregnt issue.
    pls help me??

    Vipin,
      I answered no. of times for this question.You might have not tried.
    Steps
    1.Execute your query .
    2.Goto tcode se38 you will get the programe
    3.Open one more session with tcode se93.
    4.Enter your name of your ztcode there.
    5.Press create button
    6. Give short description
    7. Select  second radio button(Program and selection screen(Report transaction))
    8.Enter program name which you have select in SE38
    9. assign to dev. class
    10.SAVE.
    It will work fine

  • SQVI 's/Tcode info req??

    hi
    I am told to make an tcode for a program generated by a SQVI on PRD,that progrm don't hv any TR no,wheni tried to copy the Program & make it under a TR in DEV,after executation its not displaying its TEXTS,both of selection-screen & also of its O/P.
    I how ever had written some TEXTs,but I am not able to found them for the O/P fild,as its a SAP generated program,& even few texts I assigned are not displayed on selection-screen.
    How to make the Tcode for it can any one tell me?or how to make an exact copt of it,so that all the text elemnts can be copied...plz tell me..
    regds...

    Hi,
    The SQVI might need to be created again within the Development system since you will not be able to create a new program in PRD.  Note that you can also convert an SQVI query to a regular SQ01 query if you need to make it available to other users within certain user groups.  This is done from the SQ01 screen, menu path Query -> Convert QuickView.
    Assuming you are now working in your DEV system, you simply need to obtain the auto-generated SQVI program name by running it and using the System -> Status menu path.  Cut-and-paste this name into the program field within the SE80 workbench.  Right-click the program name and choose the Copy function.  Enter a Z-program name for the target program.  Select all options except Includes in the copy program popup.  Your text elements will now be created for you.  Now that you have a transportable Z-program, you can create a report transaction using the normal "Create Transaction" function.
    Hope this helps you out!
    Best Regards,
    Jamie
    Edited by: James Gaddis on Feb 25, 2008 2:40 PM

  • Add additional field on query

    Dear ,
    I have created a quick viewer.
    I need to add an additional field on a SAP query.
    This new field must be calculated as a multiplication of two fields displayed in the query.
    How can I do that ?
    Thanks

    Hello,
    In Quick Viewer, you cannot define local fields. You may convert (In SQ01->Query->Convert Quickview) SQVI Query into an SQ01 Query and then define local field.
    Thanks,
    Venu

  • How to make SQVI report accessible to others?

    I know that SQVI is suer specific.
    Is there a way that we can make the SQVI query generated by me , avilable to other users.
    I do not want to transport it from Development system to production environment.
    Thanks,
    Ven

    Hello,
    In transaction SQ01, select the option in the menu Query->Convert Quickview. Then you can mention the SQVI Query name to be converted, New Query Name, Info Set and User Group names. Then a Query will be created and it can be accessed by Users assigned to the User Group.
    If you are creating SQVI Query directly in Production, there is no requirement for transport.
    Thanks,
    Venu

  • Can we join Ztables with SAP std. tables in SQVI ?

    Dear All,
    Can we join Ztables with SAP std. tables in SQVI ?
    How to use "left outer join" in SQVI ?
    What r the rules/steps to be followed for creating right SQVI/query ?
    Sometimes it gives error / we do not get any output ....
    Pl' give examples.

    hi
    good
    1- Yes
    3-Check this example for SQVI Query.
    It is possible to generate a complete list of purchase document releases with the purchase document number (requisitions and orders), releaser, release date and release time.
    First, create an Infoset using transaction SQ02 directly reading from table CDPOS and create an additional table: CDHDR. If you are releasing purchase requsitions at the item level, it is convenient to create an additional field (PURPS LIKE EBAN-BNFPO) to capture the item number. Once the field is defined add the following code to it:
    PURPS = CDPOS-TABKEY+14(5).
    Once created, make sure to assign your Infoset to the user groups.
    Second, create an SAP Query (SQ00) or QuickViewer (SQVI) based on the Infoset you created previously. Set CDPOS-OBJECTID, PURPS (additional field), CDHDR-USERNAME, CDHDR-UDATE & CDHDR-UTIME, CDPOS-TCODE, CDPOS-VALUE_NEW, and CDPOS-VALUE_OLD as list fields (display screen).
    Set CDPOS-OBJECTCLAS, CDPOS-OBJECTID, CDPOS-TABNAME, CDPOS-FNAME, CDPOS-CHANGIND, CDHDR-USERNAME, CDHDR-UDATE & CDHDR-UTIME as the selection fields (selection screen).
    Finally, execute your query. For filtering purchase requisition releases set:
    Object class='BANF'
    Table Name='EBAN'
    Field Name='FRGKZ'
    Change type='U'
    For filtering purchase order releases set:
    Object class='EINKBELEG'
    Table Name='EKKO'
    Field Name='FRGKE'
    Change type='U'
    Make sure to specify username, dates or purchase document number (object value) in order to reduce run times.
    thanks
    mrutyun^

  • SQVI Transaction - QuickViewer  Transport

    Hi,
    I understand that the SQVI transaction is used to generate custom reports at the user-level. A few questions on this
    (1)How can I transport/move a report created in Development Server to Production Server ?
    (2)Is it possible to create the SQVI query in my login and then "somehow" make it accessible for use to all users
    (3)Is the SQVI a strictly DISPLAY only transaction or is there anyway a user may change data present in the system..
    Appreciate your response,
    Thanks,
    KF

    KF,
    Maybe what you don't realise is that when you create an SQVI Query (or ABAP Query) the system creates an ABAP program in the background.
    You find this ABAP program by going to SE38 and searching for all ABAP programs that have been created by the same user that created the SQVI, and are program type "1" (executable program).
    The program name will be system generated so it probably won't make much sense, for example one of mine is AQICSYSTQV000004BADIS========= where BADIS is the name of the SQVI.
    You can now get your ABAP team to create a manual transport for this program and even give it a new TCode
    PeteA

  • Sqvi join of Mara and Marc with erroneous output

    hello all
    I have made a join between Mara and Marc in a SQVI query.
    as input i select material according to material type, material group and plants.
    output i want the material, the group and the maintenance view of material for each plant.
    not all the plants have the same maintenance view but the query returns the material for each plant with wrong maintenance view!
    what can it be?

    i am trying to achieve the following:
    material 12345 is in plants A, B, C
    plant A has maintenance status KBVE
    plant B has maintenance status BVE
    plant C has maintenance status KVB
    when I run the view, with the tables MARA and MARC joined by the material number, i requested the material filtering by material group, material type and maintenance view E.
    i want the system to return material 12345 for plant A and B with the respective statuses and exclude C because it does not have the status E.
    instead it returns material 12345 with plants A, B, C and all with maintenance status KBVE
    is it clearer now?
    also, what is the difference between mainenace status in MARA and in MARC?

  • Create a program form SQVI

    Hi guys,
    i created a query in sqvi and the program that is generated automatically,
    also i create a txn for that program
    i want to transport it to Productión, but i cant!
    i tried to attach the program manually to a transport (se10, using R3TR PRG MY_PROG),
    but an error msg is displayed "u need to enter in a catalg"
    any knows if is posible to transport it?
    tks in advance

    Hi!
    i dont know how to transport a SQVI query, wich option do i need to use?
    i tried infosets, infoset + queries but both does not display the query that i created in sqvi transacction
    any directives?
    or example ?
    tks

Maybe you are looking for