Maintenace view

i need to fetch the maintenance view data  using
IF i_vttk[] IS NOT INITIAL.
    SELECT route
           vsart
           vsavl
           vsanl
           tdlnr
           fahztd
           distz
           medst
           allowed_twgt
           from V_TVRO_COM
           INTO TABLE i_v_tvro_com
           FOR ALL ENTRIES IN i_vttk
           WHERE route = i_vttk-route
             AND vsart = i_vttk-vsart
             AND vsavl = i_vttk-vsavl
             AND vsanl = i_vttk-vsanl
             AND tdlnr = i_vttk-tdlnr
             AND fahztd = i_vttk-fahztd
             AND distz = i_vttk-distz
             AND medst = i_vttk-medst
             AND allowed_twgt = i_vttk-allowed_twgt.
  ENDIF.
but i am getting errors that V_TVRO_COM is not a table or projection view or database view in se11, cont we selec the data direclty from maintenace view .

YO uget the same data from TVRO table also.
IF i_vttk[] IS NOT INITIAL.
SELECT route
vsart
vsavl
vsanl
tdlnr
fahztd
distz
medst
allowed_twgt
from <b>TVRO</b>
INTO TABLE i_v_tvro_com
FOR ALL ENTRIES IN i_vttk
WHERE route = i_vttk-route
AND vsart = i_vttk-vsart
AND vsavl = i_vttk-vsavl
AND vsanl = i_vttk-vsanl
AND tdlnr = i_vttk-tdlnr
AND fahztd = i_vttk-fahztd
AND distz = i_vttk-distz
AND medst = i_vttk-medst
AND allowed_twgt = i_vttk-allowed_twgt.
ENDIF.
Regards,
Ravi

Similar Messages

  • How to maintain  data in tables using maintenace view of the tables in ECC6

    Hi,
    I have  two table  SBUSPART (Business partner) and STRAVELAG (Travel agency).
    SBUSPART  is foreign key table while STRAVELAGE is a reference table.  The relationships is :
            SBUSPART-MANDANT          =     STRAVELAGE-CLIENT
            SBUSPART-BUSPARTNUM    =     STRAVELAGE-AGENCYNUM
    now, I create a maintenance view ZVI_HT_PARTNER in which SBUSPART is primary table and STRAVELAGE is secondary table. I have also created maintenace interfaces by generating maintenance modules in function group zht_fg. Authorization group is SUNI  and maintenance type is one-step, the number maintenace screen is 100.
    Now I want to maintain the data in tables SBUSPART and STRAVELAGE together in the maintenace view. If i want to enter a new partner dirctly I have to enter it in table SBUSPART first, only then could I enter the corresponding data in STRAVELAGE.
    in older version I easyly do this by the way: in maintenace screen of zvi_ht_partner ( in se11) I choose:  system/ services/table maintenace/Enhance.Tab.maintain.
    but in ECC6 when I choose:  system/ services/table maintenace, there is no Enhance.Tab.maintain instead there are two options Extended table maintenace and View cluster maintenace.
    So in this case I don't know how to tackle this problem, Please help me if you have a solution. 
    Thanks,

    Hi,
        I suppose 'Extended table maintenace ' would be same as 'Enhance.Tab.maintain'.
    Regards,
    Himanshu

  • Tcode Assigned to Maintenace view......really Urgent!!!!!!!!!!!!!!!!!!!

    Hi Experts,
    Is there any way to find the transaction code assigned to a Maintenace view?
    ( Scenario : Previous developer has cretaed a Maintenace view and assigned the tcode but he hasnt documented the Tcode assigned, Now the user wants to know whteher any tcode is assigned to it or not?)
    Please help me in this issue..
    Its really Urgent.
    Helpful answers will be rewarded.
    Regards,
    Naveen

    Hi,
    Iam unable to do the way as what you have guided.
    Can you please provide me the screen shots ( as iam confused with the statement "use the icon for all selections and mark the parameter transaction")
    Email:    [email protected]
    Thanks for your help.
    Regards,
    Naveen

  • Fields in a Maintenace View

    Hello Experts,
    How can we make the fields in a "maintenance view" as mandatory fields? The requirements is I have created a maintenance view with 5 custom fields. And the business analyst wants to make all these fields as the mandatory fields i.e, without filling all the values for the first record, it should not allow them to enter the values for the second record.
    Is it possible?
    PS: I have tried to make all these 5 fields as the key-fields but as some of them are type "numeric", I am getting warning messages while activating.
    Thanks

    Hi Dev,
    u can make any field mandatory by
    parameters : matnr like mara-matnr obligatory.
    or,
    There are two ways to make this field mandatory
    1) Check the SPRO settings with your BASIS Consultant
    (Maintain screen fields for User Settings)
    2) Modify the screen 100 for GUI program SAPLSUU5 use -Code SE51
    or,
    You can do this by using transaction variant ( tcode SHD0).
    when you are creating the transaction variant just check the check box required .
    for some tutorial help pls go through this.
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm
    kindly reward if found helpful.
    cheers,
    Hema.

  • Value put in the maintenace view for field of DOC type gets divided by 100

    Hi all,
    We have a product table ZPROD_T which contains one quantity column (QUANT) of the data type DOC. We have also created a view and a maintenance view for this table.
    The problem is that when we add new values to the table using the maintenance view, the value that we add to the QUANT field gets devided by houndred. E.g. if we put in 4 in the QUANT field (type DOC), the value that we later see in the table is 0,04!
    How do we go about to solve this problem and get the correct value in the table? Should we change the maintenance view somehow or change the data type in the QUANT field from DOC to something else?
    All help is greatly appriciated!
    BR,
    Armin

    Yes, that would be an option, but I was kinda hoping there was another way to solve this problem. Namely, when we would like to have ability to have decimal values in that field, e.g. if we have quantity in sqr meters or meters. Also if we change data type to QUAN than we need to put values in the "Currency/Quantity fields" in the table ZPROD_T, and at the time we are not sure about what unit of measure we are gonna have!
    Is it possible to keep DOC data type and still get the correct values in the table?
    /Armin

  • How to display an error message in maintenace view

    Hi,
    I have following requirement.
    I have a table. In the table, there is a field named REPORT which keeps an executable report name. When adding an entry i need to fill the field with an report name, which should exist in the system. The report name should not be include objects.
    Then I use search help HELP_TRDIR with import parameter SUBC = 1.  I also create a maintenance view for the table.
    Then my question is how to display a warning message if the report I input in REPORT field doesn't exist in the system. If I need to modify the generated objects of the maintenance view, how to do it.
    The reason i don't use foreign key is that it seems filter functionality is not availabe in the case with import parameter SUBC = 1.
    Thanks in advance,
    Best Regards, Johnney.

    Hi,
    You need to add your validation in the table maintenance events:
    Use the event : 01 - Before saving data to the databse table... for this purpose
    1) Go to Menu-> Utilities->Table mainatenace generator
    2) On the table maintenance screen->Menu->Enviroement-> Modifications->Events
    3) select an event 01 and give some subroutine/form name.
    4) Add your validation in the form(Note this form should be in the Func Group of the table maintanance genetaor)
    Regarrds
    Shiva

  • How to transport contents of maintenace  view to one system to another?

    Hi Gurus,
    I have a  urgent need of transporting table contents(through maintenance  view )
    from DEV to QA and  then to PRD. How we can do it using  the transport button in SM30?
    Your appropriate help will be reqarded with points
    -B S B

    Hi,
    Look at the below link
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1240876,00.html
    Regards
    Sudheer

  • How to enter values for newly inserted field for maintenace view table

    Hi ,
    I have inserted new field for custom table which consits of maintance view..
    I want to put some values in to this newly inserted field..
    When i try to insert values bu useing se16,iam unable to view this newely inserted field..
    Can you please let me know how can i insert values to this newely created field
    Thanx,
    Parnith

    Hi Parnith,
    It is easy to use a table maintainance to enter values to a database table....
    if you have a table maintainace generator and you are not able to see the newly added field here is the reason
    Everytime you add a new field , the table maintainance needs to be regenerated..The reason is that the screen you are using in the table maintainance is created within a program with respect to the fucntion group and not directly linked to the table..whenever you change the table,the function group is not affected and changes are not reflected in the table maintainance , so you have to regenerate by utilities-> table maintainance generator in sell for that table..once you do it , the function group assigned to the table automatically creates a new one with the latest fields added
    Reward if helpful
    Regards
    Byju

  • Maintenace view for fld more than 500 characters

    Ho do i create a maintenance view for fld more than 500 characters? i  need a maintenance view to maintain URL which is sometimes more than 500 chars.

    The way SAP solves this for webservices is via a hash.
    Once you have executed the service, the URL populates a mapping table and generates a unique hash value for it.
    Via this hash, you can assign it to authorization fields and use it in your coding where the fields have limitations.
    As a consequence this causes some confusion if you dont use F4, but it does work.
    Cheers,
    Julius

  • Can we create the T-Code for a maintenace view

    Hi All,
    I have a table for which i create a maintence view . Now we want to create the Transaction code for that.Can it possible..?  if yes Plz help me .its very urgent .
    Thanks!
    Vipin Kumar

    Use TC SE93.
    Select option Create TC with Parameter.
    Enter TCode.
    In it maintain TC as SM30
    Click on Skip first screen
    Maintain Default Values as
    VIEWNAME = <View name>
    UPDATE = 'X'

  • 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 create a Maintenance view in order to update 4 tables

    Hello,
    I want to update 4 tables having the same key. MANDANT + SIRET (fiscal french ID).
    I try to create a maintenace view, i need to update the 4 tables using a single screen.
    When i use the relationship the system display a message "Relationships with unsuitable cardinality"
    The first table contain only the ID, the 3 others contains some informations (adress, name, and others)
    Thanks for your help
    Christophe

    Hello,
    you could check, if your other three tables have a correct foreign key definition on the field  SIRET.
    Tranaction SE11 -> pstion on the field and press the foreign key button.
    Check Table has to be your first table; cardinality has to be 1 :1 or 1 to N.
    Regards Wolfgang

  • Expand/Collapse feature in table maintenance view

    Hello experts,
    We have created a custom table and maintenace view.   For some table rows, the only key value difference is an EFFECTIVE DATE.   The generated table maintenace dialog by default "Collapses" the rows that only differ by Effective Date.  Using the Expand <-> Collapse button, we can see the missing detail for individual rows.
    Can the maintenace dialog be expanded by default?

    Hi,
    See the given link, It may help to you.
    maintenance view
    Regards,
    Shamma

  • Table maintenance view - tcode

    Hi experts,
    We have a tcode (already in production) created for table maintenace view of z-table.
    Everything is working fine.
    Now I added one new field to the z-table and changed the table maintenance view accordingly. In SM30 I can maintain the table without difficulties - the new field is visible and maintenable. However, when I call the transaction code created for this view, it doesn't have the new field yet.  I tried a lot but without success to update the tcode accordingly.
    How can I get the tcode adjusted with the new field?
    Thanks for your advise and help in advance!
    Your feedback will be << appreciated >>.
    Regards,
    Sally
    Please do not offer rewards.
    Edited by: Rob Burbank on Dec 6, 2009 5:22 PM

    It's about one week you asked the question, but I answer in case you didn't understand what happened:
    First, screens 1000-1010 can't be used in a table maintenance dialog (an error is mentioned by SAP when you try to use these numbers). So, I really don't understand how you can get 1000 in your table view!
    So, I think that your transaction is linked to a custom program (not the SM30 view). So you just need to adapt manually the custom program. Note: maybe the program is a partial copy of the SM30 function group, so maybe you may just copy the dynpro 1000 of the SM30 function group  to the dynpro 1001 of your custom program...
    Note: when you want to create a transaction which is linked to a table maintenance view (SM30), you must define a Z* transaction of type parameter, with reference to SM30 transaction, select "skip initial screen", do not choose any dynpro, and choose VIEWNAME = your view and UPDATE = X as parameter values.

  • Maintenance view concept clarification needed

    Hello all,
       lets take the following into consideration:
         1st DB table -  element1(key) , element 2(key) , element 3.
         2nd DB table - element1(key)
         3rd DB table - elemtent2(key)
    there is a foreign key relationship created for element1 and 2 of DB table1 to DB table2 and 3 respectively.
    I have created a maintenace view for db table1 and want to allow users to create new entries throught transaction sm30.
    However because of foregin key relationship the user will not be able to create any new enteries.
    How do i solve this problem?
    Thanks in advance.
    Regards,
    Naveen M

    Hi,
    You'll first have to populate DB2 before inserting any records into DB1.

Maybe you are looking for

  • Follow-up Activities in Case Management using Actions

    Hi Gurus, I am configuring the case Management, On save of the case document I would like to create the Activities automatically and assign it to various departments who are responsible. One way of doing this uisng Actions. I have created a Z* Action

  • Export in Replication Environment

    Is an Export of user/table VALID while the replication is in "Quiescing" mode ?? I don't want the replication tables get updated by a user or any batch job, while doing an export. I thought Quiescing the replication will protect the data from DML. Th

  • How is the latest gen of photoshop running on the new mac pro?

    Hi - I am running a 2009 mac pro and it is having trouble keeping up with my demanding photo editing - I am planning to purchase the new model in the next week or so - wondering how compatible the Adobe software (especially Photoshop ) with the GPUs

  • Photos transferred to sd card gone!!

    The phone told me the memory was getting full so.I should transfer data, music pics etc to the sd card. I've done this and then got a message saying transfer interrupted. (I didn't interrupt it) now I can't view any pics in the gallery. If I look in

  • Workflow WS14000146- back to approver strange behaviour

    Hi, In this workflow WS14000146 for PO changes, there is an option for a approver (Say APP1) to send the workitem back to purchaser ( PUR1). When the purchaser (PUR1) receives this workitem and checks the details and presses on "Back to approver"  wh