SQ02 Create a query whit the structures.

Dear gurus ,
i create a query SQ02 whit the initial impostation " Data retrieval by program"  and insert in the field "data structure" the name of the structures where are the value, example ( AFVGD).
When run the query the value is blanck .
I must for case to modify the program generated  from the system :
REPORT  RSAQDVP_TEMPLATE.
  declarations
  (insert your declarations in this section)
data:
  AFVGD                          type AFVGD                         ,
  it_data type standard table of AFVGD                         .
field-symbols: <struc> type AFVGD                         .
  selection screen statements
  (define your selection-screen here)
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_HEAD>
  read data into IT_DATA
(select your data here into internal table IT_DATA)
  output of the data
  (this section can be left unchanged)
loop at it_data assigning <struc>.
  move-corresponding <struc> to AFVGD                         .
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_BODY>
endloop.
You could advise to me like?
Thanks a lot for your help
Daniel Pistilli

Dear gurus,
i need of display the data result of the transaction of the leveling capacity in the transaction (CM22).
I find that this data is present in the structures RCYPP_GEN and after i create a inforecord and a query ( SQ02 and SQ01 ) whit this structures, but don't see the date in the query report.
In the SQ02 this code abap don't is present in the area coding "in Record Processing section" but the system created a pulsant "data reading program" for link a the area where is present this abap code.
Are there the soluction for my problem?
Thanks a lot for you important help
Daniele Pistilli

Similar Messages

  • How to create a query using the requirements given ? step by step  plz

    REQUIREMENTS
    1)     Model- Use multiprovider ZXT_MXXX as infoproviders
    2)     Query- copy ‘ZXT_MXXX_QYYY’ as head start
    <b>b.     Fields for output</b>
    1.     Hourly Rate-- I know its dataflow .It comes from infotype IT yyyy
    Program name MPyyyy00 and query name QXXXX-XXXX
    So can I Get this feild to Query Designer
    2.     CC /WBS/IO on ITyyyy--?
    I know dataflow .they come from infotype IT yyyy
    Program name MPyyyy00 and  3 different fields.
    So how can I Get cc/wbs to Query Designer?
    Can anyone suggests steps to do it plz..

    Check the<b> ZXT_MXXX</b>  multiproivder is based on what all infoproviders..
    Check in your infoproviders..for this <b>CC /WBS/IO</b>field..
    If it is avialable in the underlying infoproviders, it should be available for your reporting on multiprovider..
    Regards
    Manga

  • How to use a query in the Print Layout Designer?

    I created a query with the query generator:
    SELECT T0.[Discount], T0.[NumOfDays], T2.[DocNum] FROM CDC1 T0, OQUT T2 INNER JOIN OCTG T3 ON T2.GroupNum = T3.GroupNum WHERE T2.[GroupNum]=T3.[GroupNum] AND  T0.[CdcCode] =  T3.[DiscCode]
    The result shows the cash discout (the days and the percentage) of every record.
    I need this query, because I want to design a sales order report.
    To show the payment conditions with cash discount I need to have the table CDC1 but when I create a new database field in the report I can't see that table.
    So I queried the table CDC1....
    Then I created a new database field and in the list box "table" I made the following steps:
    extras\customizing tools\user defined values - definition\search for saved query in user defined values
    But the problem is that I don't get the result of the query into my report.
    What's the problem? I don't know what I've done wrong...
    please help me

    Hi,
    I am creating the layout for a sales order which will be send to a customer.
    In that order the customer can see the payment conditions.
    It should look like this:
    net price: 1000,00 EUR
    19,00% taxes: 190,00 EUR
    gross price: 1190,00 EUR                          
    payment conditions:
    payable within 30 days net: 1190,00 EUR
    payable within 14 days with discount of 2 %: 1166,20 EUR
    to get the bold marked digits I need to have access on the following tables:
    OCTG and CDC1
    In the OCTG table I get the days (in this example 30)
    In the CDC1 table I get the days of cash discount and the percentage (in this example 14 and 2)
    but in the sales order layout in PLD only the OCTG table is shown when I create a database field and the CDC1 table isn't.
    So what can I do to get this?

  • Error shown after creating a query in BI analyzer

    "A critical program error occurred. The program has to close. Please refer to the trace for further information."
    This error is shown while i try to execute the query after i have created a query using the BI contents that i activated. However, i am not sure if there is an error while creating the query or not. I just started learning BI analyzer and SAP logon. Any help will be useful =)

    Hi Low Soon Wee,
    Plz refer to the below threads which may solve ur issue:
    Critical Error when launch Analyzer
    Problem in Starting Business Analyzer  (NetWeaver 2004s) in Excel
    Hope this helps u...
    Regards,
    KK.

  • How to overwrite an inner query in the select clause

    Hello,
    I have a queryof this form:
    SELECT t1.ID,
               t1.column2,
               (SELECT SUM (t2.column2)
                    FROM table2 t2
                  WHERE t2 = t.ID
                       AND t2.column1 IN (SELECT ..... FROM table3 t3 WHERE t3.column1 = t1.column3 ........)
        FROM table1 t1At the stage where I select from table3 I do not see the columns of table1. In other words:
      t3.column1 = t1.column3will NOT work.
    The version of the database is 10.2.0.4.
    How could I rewrite this piece of code in order to surround the problem?
    I cannot join table3 with table1 in the outermost query, because the structure of this database is such that it would not work for me.
    I know that most of you would say, change the DB structure, but anyway, any ideas? :)
    Besides, is the same restriction for inner queries applicable in Oracle 11g2?
    Thanks

    user13080027 wrote:
    Hi
    I mean I receive the error ORA-00904-"t1.column3" invalid identifier.Something does not add up here. You said earlier
    I cannot join table3 with table1 in the outermost query, because the structure of this database is such that it would not work for me.Why can't you rewrite your query something like follows:
    SELECT t1.ID,
               t1.column2,
               (SELECT SUM (t2.column2)
                    FROM table2 t2
                  WHERE t2 = t.ID
                       AND t2.column1 = t3.column3
        FROM table1 t1, table3 t3
    WHERE t3.column1 = t1.column3p.s. I am not saying this is the exact query you need but then you don't provide any details requested. ;)

  • Help in creating a Query

    Hi,
    I have 2 ODS, one holding the PO data and other with GR data.
    Now I want to create a report where where I can show pick up specfic field from each of the ODS and show.
    For example I want to Open order summary report.
    Here my selection is on PO Creation date.
    In the report I need to show these fields.
    PO Creation date - from PO ODS
    PO Num  - from PO ODS
    PO line  num - from PO ODS
    PO item text - from PO ODS
    PO Qty - from PO ODS
    GR Qty - from GR ODS.
    For this I have used replacement path for Variables PO Num and PO line Num.
    I am able to get the result required, But the PO qty and GR qty are showed in different line rather than Combined into one line.
    When I move the PO creation date into free charector then it is showing combine information of PO & GR qty in one line. 
    Can any one provide me the best data model which I should go.
    Note : Presently we are using Infoset but we want to get ride of it.
    Regards,
    Tony

    Hi Doniv,
    we have tried it, but the problem when we use multiprovider or infocube is when we select the data based on fields which are not common on the boths sides it will not pick up the data correctly. For example PO creation date is on PO ODS. So when you create a query on the multiprovider with PO creation date as in selection. Then it will pick on PO data as PO creation date is not in GR ODS.
    anyother ways...
    Regards,
    Tony

  • In a query, for the selection field 'KNB1-ZWELS' a match-code isn't availab

    Hi All,
    Creating a query, for the selection field 'KNB1-ZWELS' a match-code isn't available.
    Could anyone tell me the reason?
    Thanks
    Gandalf

    Hi,
    Match Code Object is not available for the field ZWELS. If required, You need to contact a Developer for creating one .

  • How can I create a query

    Hi BWers,
    How can I create a query, when the Customer run the report today he should see this month data.when the customer run the report for previous month he should see previous months data.How can I do this without going for Select options.

    Hi,
    If your customer run this report when he input a day in previous month, they want the whole previous month total data, you can use Replacement Path variable to get the previous month. If your customer run this report when he input a day in previous month, they want the data from 1st day to input day in the month, you can use customer exit variable to calculate 1st day in the previous month.
    When the Customer run the report today he can see this month data, those two type variables can do.

  • Create a query in SCCM 2012 R2 for NIC Driver Version

    Hello,
        Is there a way to create a query for the specific NIC driver versions with SCCM 2012 R2? For example I can do this and other descriptors for video i.e.,
    select SMS_R_System.Name, SMS_R_System.LastLogonUserName, SMS_R_System.HardwareID, SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_COMPUTER_SYSTEM.Model, SMS_G_System_VIDEO_CONTROLLER.DriverVersion, SMS_G_System_VIDEO_CONTROLLER.Description, SMS_G_System_VIDEO_CONTROLLER.VideoProcessor
    from  SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_VIDEO_CONTROLLER on SMS_G_System_VIDEO_CONTROLLER.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model
    like "HP EliteBook Revolve 810 G2" and SMS_G_System_VIDEO_CONTROLLER.Description like "%intel%"
    Is there a script that will give the version for NICs?
    Thanks Bill

    This article provides one way to do it:
    http://blogs.technet.com/b/configmgr_geek_speak/archive/2013/11/10/inventorying-and-reporting-network-adapter-driver-details-and-how-to-report-only-the-wireless-type-in-configuration-manager-2012.aspx
    Jeff

  • Creating MyBO query for an OWL

    This is actually a common usecase:
    How do I create a query for an OWL that only contains my BO's?
    I see two difficulties to this question:
    1. Store "ownership" of a BO
    To store the ownership of a BO I can use
    this.Identity = Identity.Retrieve(Context.GetCurrentIdentityUUID());
    or an
    Employee-OVS and store the EmloyeeID in the BO.
    2. How do I create a query in the UI-Designer that filters based upon the User?

    Hi,
    I thinkat first  you have to define what ownership is. Is it the Creator, or would you select one by creating, changing etc.
    If it should be the creater, you can use the standard (automatical created) "created by" element, in other cases you have to add an own element to your business object.
    To create a query for your business in UI, you can follow the instructions in the documentation...page 617-618.
    Best regards,
    Andreas

  • Can anyone create a Query for this?

    Can anyone help me to create a query for the followinf table info?
    I have tried to use joins but no success.
    Table Name: Org
    ID     Severity     Status
    1     Red     New
    2     Yellow     New
    3     Green     Closed
    4     Green     Open
    5     Yellow     Closed
    6     Red     Closed
    7     Red     Closed
    8     Red     Open
    9     Yellow     New
    10     Yellow     Closed
    The result of the query should look like this. The most important thing is that I want this result set in a single query and in this format.
    Severity     Total_Status     Total_Closed
    Red     4     2
    Green     2     1
    Yellow     4     2

    select severity,count(*) tot,sum(decode(status,'closed',1,0)) tot_closed
    from org
    group by severity;
    Not tested..                                                                                                                                                                                                                                                           

  • The structure in the query

    HI,BW experts, I have a question about the structure of the query :is there only one key figure in the query?in my query ,i have a key figure structure already, could I create another key figure structure,and how to ?
    Thanks for your help.

    Hi Cindy
    If your query already has a structure then why you want to create a new one? add new key figures to the exisiting structure.
    If you have to create new structure for key figures then
    GO to Query change in Query designer & in Columns section do right mouse click and select structure. This will add new structure and then you can add new key figures to that if you need.
    Hope this helps
    Regards
    Pradip

  • Can I select the query elements of structure manually in transport conn

    Hello all,
    I am trying to select a structure and the elements of the structure manually in transport connection. I am able to slect the structure from from query elements -> structure but now how can i select (manually) the items like new selections and new formulas that are inlcuded in my structure.
    When I go and search for that query element in table V_ELTDIR_TXT it says that the the items of my structure are RKF but when i try to serach under query elements -> RKF i dont see them.
    Can someone help here.
    Thanks in advance

    Hi Kamaljeet ,
    you are trying to tell me that i can just slect my query and structure (manually..so basically only 2 query elements in transport request)...and transport that and it should take care of selections and formulas in structure.
    I have created a transport as per what you have told, waiting on basis to transport it. Will update you in few minutes.
    Thanks again

  • Show all the structure in the Query

    Hi people,
    I would like to know if there is some way to show all the structure I created by hierarchy to my query, enven if some nodes there isn´t any data.
    I have configurated to show only the lines there is amount. It means it won´t show the lines that have zeros.
    But the structure (all of the nodes) I would like to show, include that one there aren´t any datas.
    Thanks in advance,
    Rosana.

    Jaya,
    You are 10. It worked!.
    I only will leave opened this request yet because I would like a new suggestion.
    For exemple, I have the hierarchy but on the side "colum"  I already have a structure where is restricted by data because it is a report  "Year to Date".
    On this case, is it possible to do something to show all the structure of the hierarchy?
    Ps.: If it is necessary close this request and open a new one, you can tell me ok?
    Thanks a lot,
    Rosana.

  • What will be the Structure of itab created with "LIKE TABLE OF sy-ucomm"

    Data fcode like table of sy-ucomm
    The table thus created will have one column but it will not have any structure.
    How can I write a code with this effect:
    LOOP AT fcode.
      WRITE:/ fcode-????.
    ENDLOOP.
    This question is just out of my curiosity I undertsand that by altering the declaration like
    Data begin of fcode occurs 0,
    data ucomm like sy-ucomm,
    end of fcode.
    I will be able to name it. But out of the academic interest I want to know that without altering the decalation part can we do it

    Hello Flora,
    There are two points to be noted here -
    1. the table you have created doesn't have a header line.
    2. The table you have created doesn't have a "structure".
    All internal tables declared with reference to a non-structural type / object have got only one field.
    for example -
    Data ITAB TYPE I OCCURS 0.
    These internal tables have certain limitations. They cannot be displayed in an ALV Grid, for instance.
    And since they do not have a <i>structure</i>, the hypen operator '-' doesn't really make sense. When you say SYST-UCOMM, you are referring to the field UCOMM in the structure SYST.
    Hope that's clear.
    Regards,
    Anand Mandalika.

Maybe you are looking for