Query Regarding Fetching of Maintenance View

Hi Experts
I have one query regarding fetching of Maintenance View.
My Maintenance View is consisting of only one table.
so i am unable to fetch the data using inner join.i also found
one FM VIEW_GET_DATA  which fetches entire table with out
any condition it may lead to performance issue. kindly suggest
how do i fetch the data from such Maintenance View.
Thanks
Nishita G

Hi,
You can Direct Use the DML operations on the Underlying Database Table.( example 'SELECT' Statement and use 'WHERE' Condition for required output ).
Regards
Pavan Kumar

Similar Messages

  • Querying data from the maintenance view.

    Hi Experts,
    Well, i need the STEXT field value from the maintanance view V_T591A created for the standard table T591A.
    Table T591A has the field Subtype but doesn't have the field Stext, which consists the description of the subtype. The Stext field is there in the maintenance view V_T591A.
    So, if i want to query the respective description of the specific subtype, how do i get the values from the maintenance view?
    Please advice.
    Thanks in anticipation to all!
    Cheers,
    Sundar.

    Atish,
    It is not possible that way! U cannot Query directly from MV as a DB table.
    Anyways, i managed to find the answer.
    Thanks though.
    Regards,
    Sundar.

  • Query Regarding fetching selected records from table

    Hi All,
    I have a table like below:
    NUM1     NUM2     TYPE
    1     2     A
    1     2     S
    2     3     S
    3     4     A
    3     4     S
    4     5     S
    If for a record TYPE='A' then do not select the records for those num1 and num2.
    Eg: for num1=1 and num2=2 there are two records with type='A' and 'S', only records with type 'A' should get selected.
    Output should be like this:
    NUM1     NUM2     TYPE
    1     2     A
    2     3     S
    3     4     A
    4     5     S
    Please anyone could help me in this query.
    Any help would be highly appreciated.
    Thanks & Regards
    Anuj

    Just MIN function will get what you want
    SQL> with t
      2  as
      3  (
      4     select 1 num1, 2 num2, 'A' type from dual union all
      5     select 1, 2, 'S' from dual union all
      6     select 2, 3, 'S' from dual union all
      7     select 3, 4, 'A' from dual union all
      8     select 3, 4, 'S' from dual union all
      9     select 4, 5, 'S' from dual
    10  )
    11  select num1, num2, min(type) type
    12    from t
    13  group by num1,num2
    14  order by num1,num2
    15  /
          NUM1       NUM2 T
             1          2 A
             2          3 S
             3          4 A
             4          5 S

  • Query on Maintenance Views

    Hello Experts,
    Can we query on (using select statement) on a maintenance view?
    Thanks.

    Hi,
    No you can't. Better query the tables from which view is created.
    Regards,
    Atish

  • Can I write a SELECT query on maintenance view?

    Hi,
    Can we write a select query on maint. view? If not what are the views on which we can write the select queries?

    hi,
    you can write select query for maintenance view, database view and projection view but not helpview as it is only intended for f4 help.
    reward if helpful
    prasanth

  • Regarding maintenance views

    what is the main purpose in creation of maintenace views???????
    and where we use it in real time?????

    Hi
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Creation of Views:
    1.Go to se11
    2. select view radiobutton and give a name
    3. Create
    4. select type of view you want to create. Such as database view.
    5. give short description
    6. give a table name such as mara
    7. press the pushbutton relationship. here you will find all the tables which are allowed to create view with mara.
    8. select one or mane tables.
    8 copy
    9.save , check and activate.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Regarding Maintenance view

    Hi guys.
    we have created Maintenance view for addon table in 46C. so was Created Function group ZMXXXXX having below structure.
    ZMXXXXX
    -Func module
        Table frame ZMXXX
        TableProc ZMXXX
    -Dictionary objects
    -Dynpro
    -Include
      LSVIXXXX
      LSVIXF01
      LSVIXF02
      LSVIXF03
      LSVIXF04
    Now after upgrade to ECC, we found that all above standard includes are using SADR table. not sure whether it affects our logic.
    Now how to go with this problem. We need to recreate the Mainteance view in ECC or need to copy as Z-include and Modify the SADR table with ADRC.
    Please confirm
    thanks
    Jaichan

    Any suggestion please.

  • Problem regarding updation of Z-table through maintenance view

    hi ,
    I m facing problem in updation of Z-table through maintenance view (SM30).
    The scenario is that I have one customizing field in my Z-table which is checkbox.
    Now I need to populate 2 fields in Z-table on tick of this checkbox and clicking of SAVE button.
    For this I have created one module  ''change_field''  in PAI.
    Actually my database table is being updated but as soon as the control left my module all the updation that take place vanishes away.....
    So please help me in this matter.

    Thanks for ur previous effort it is updating the database but its effect is not shown immediately on screen.After i referesh the transaction it is dispalying the data.
    So can u please suggest me any way....
    Now i have one scenario infront of me....
    I need to restrict the data shown in maintenance view.
    I think it would be same as pop-up window displayed when we tick on 2nd radiobutton ("ENTER CONDITIONS")
    of intial screen of t-code SM30.
    Please suggest what shud i do....
    Thanks and reagrds,
    Amit
    Edited by: amit gupta on Jul 18, 2008 1:35 PM

  • Getting Data from Maintenance view V001N into ABAP program

    Hello Experts,
    I have to fetch data from the maintenance view V001N in my ABAP program.  I have used select statement in my program but I am getting a syntax error  'V001N is not defined in the ABAP Dictionary as a table, projection view or database view. '.  V001N is a Maintenance view.
    Can anybody help me out how to get the data from that maintenance view into the internal table of my ABAP program.
    Regards.

    Sunil,
    check these threads
    https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6074746
    https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6088233
    so query on the tables which are used in the view
    Thanks
    Bala Duvvuri

  • How to read data in a program from a MAINTENANCE View

    Hi Experts,
    Requirement:
    1. I have maintained a maintenance view on three Database tables.
    2.Data can be entered in the view as it is a Maintenace view as i have created maintenance generator for that and it is a requirement.
    3. In one of my programs i need to read this data, into an internal table, that is maintained through this view.
    Problem: When i am firing a SELECT query on this view, it goves me a syntax error that i cannot get data by select query on a Maintenance view.
    Solution required for: Is there any way i can get the data from this Maintenance view.
    Thanks in advance for your exteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hi,
       Only projection view or database view can be used
       in select query.
        Find the tables used in view and
       Select data into report program by
        joining tables .
    Regards
    Amole

  • How to capture the data that the user modified in SM30(Maintenance view)

    Hello experts,
    I have a new requirement wherein when the user modifies a particular record in SM30(maintenance view)
    it would also update that certain records in another table. For example, I modified the address
    of record 1 in table1 so I need to automatically update that same record in table2. Help would be greatly appreciated.
    Again, thank you guys and have a nice day!

    Hi again,
    1. But how can I capture the data that was modified
    Yes, u are right.
    We will have to use the event,
    'BEFORE SAVING'.
    2. In that,
      u must fire a select query,
       from the same table,
       for the same record.
    3. In this, u will get the OLD DATA (which was already saved),
    4. Using this,u can compare,
       (either thru LOOP, or field by field)
      to know, which field value has been changed.
    regards,
    amit m.

  • [Maintenance View] Mass maintenance of Z-Table

    Hi,
    I was wondering what were the options when dealing with mass maintenance of Z-table entries.
    SM30 is OK for maintenance view but you cannot process more than a given number of lines (34 entries or so) per page.
    Ideally, it should be possible to enter data from Excel file of even clipboard.
    SE16N is great for this since it allows pasting of clipboard data but it does not work with maintenance views (it switches to the SM30 dynpro).
    Besides, if I create a database view, it is not possible to save entries because it joins several table together (even if I only need additional fields for display only).
    I tried the FM 'SE16_INTERFACE' but it dumps with an CX_SY_DYNAMIC_OSQL_SEMANTICS error (SAPSQL_NO_DBTAB_OR_VIEW). (you can only query table or database view but no maintenance view)
    Thanks in advance for your ideas/advice.
    Best regards,
    Guillaume

    Hi,
    Developing a generic tool won't take much time probably 6 hours at an experience level of 2+ years!!!
    Once you develop you can use it for ever.
    What all you need to do is create a field-symbol of type standard table. Get the table name and the file from the selection screen.
    Create a dynamic internal table with reference to the table name entered in the selection screen. Upload the data and update the database.
    Limitations in the design:
    1. File should be in correct format and with the correct data. (Specific validations can't be done)
    2. Table maintenance events can't be tackled.
    eg: On entering the material number, Material description should automatically come.
    Creating BDC for SM30 is ok. But this works only at a table level. We may not be able to make it generic as the screen field names changes based on table name.
    So think and choose the right approach!!!
    All the best:)
    Thanks,
    Vinod.

  • Hi experts, how to use open sql to read data from one " maintenance view"?

    i want to use this part of data within report ,so how to use open sql statement to read data from one " maintenance view"?

    Hi
    You can't use OPEN SQl statements to fetch data from maintenance view
    You have to use only Database views
    see the different types of views and the difference
    The followings are different types of views:
    - Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    - Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    - Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    - Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Reward points for useful Answers
    Regards
    Anji

  • Maintenance view of v/76

    Hi gurus,
    I have a couple of problems with maintenance view of the v/76. I have to make a z transaction of the v/76. I have made that. Here they want this description field of the view to be conditionally editable. Like if the level of the product hierarchy is within 3(less than three),then the description should not be changeable or the row should not be deletable.
    How can this be done ?? There is another query too. I will post that separately.

    This can be done in either of the two ways..
    Use routines, on update or identify the development class and try to modify the screen under the development class.. by placing some conditions... usually for custom table maintenace it will not ask for access key.
    regards,
    Sairam

  • Use of Maintenance Views.

    Hi all
    I made a maintenance view for use in my programs to access data from different tables.
    But facing problem while accessing data using a select query in program.
    Like:-
    REPORT  ZVIEW.
    data: it type table of zabhiview,
         wa type zabhiview.
    select * from zabhiview into table it.
    loop at it into wa.
    write:/ wa-carrid,
             wa-ORT01,
             wa-CHANGEUSER.
    endloop.
    zabhiview-->maintenance view.
    please tell how to use views in our programs.
    Thank you.

    for maintaining depending table entries with in a single view.
    ex.
    Let us take example three table emp_master, emp_sal and emp_rating. three tables are containing following fields
    emp_master        emp_sal         emp_rating
    empno               empno             empno
    department        basic               status
    fname                variable          
    lname                 pf    
    email                  tax
    if you are creating maintanace view for the above three table. where you can maintain(create and change) value for the three table within a single view. Created and changed value in maintanace view will be saved in to the corresponding table.
    Hope it will crear your doubt.
    Regards,
    Peranandam

Maybe you are looking for

  • Warning message required in po to identify whether price is taking from info record or condition record

    Hi experts,                     while  creating purchase order,If condition record and info record both are exists means how system will identify that which price need to pick for particular vendor.                    Is it possible to set  warning o

  • Vendor text not visible in SAP R/3

    Hello All, When a purchase order is created in SRM with additional text - ie. Vendor text. ( Either at item or header level) This text is not visible when viewing the purchase order in SAP R/3.Does it not come default ??? i am expecting the text to b

  • Imac 24 aluminum with 750GB drive freezing

    I have a new 24inch - 3GB 2.8GHZ and 750GB drive iMAC. I have 5 other C2D systems. The new one locks up from time to time - odd as the mouse moves but nothing else. have to remove power cord sometimes the button wont do it either. I dont think its th

  • Add Customer_PO number to SQR Invoice

    I need to add customer po number to our invoice.I am very new to PeopleSoft and SQR when I look at biivcpn.sqr and bisubp00.sqc I can't tell where(What Table) it pulls from How do I tell that? How do I need to add the Customer PO line to bisubp00.sqc

  • Calculating a new Date and Time

    I need to calculate a new date using an hour value eg: Date : 23 March 2005 14:00 pm Hours to be added: 12 Working hours : 8am - 5 pm I need to calculate a new date/time using the working hours, so that the added time falls within those working hours