To use a maintainence view in programe.

Unlike projection and database views, i am not able to use maintainence views for getting the data using the SELECT query .
How can we get the associated data using the maintainence view.

Hi,
We can call the VIEW_MAINTENANCE_CALL function module inorder to use the maintenace view.
To this pass the view names and U for Updattion and S for display.
This maintainenance is used to update the tables and display them.
pls check this link for it's usage -
Plant , Storage Locations...
Regards
Lekha

Similar Messages

  • How we can use help & maintain view in program

    hi Gurus,
           how we can use help & maintain view in program?
            is it able to use in program?
    thanks in advance,
    Regards,
    Arun.

    Hi
    maintain view can be used in program using the function module 'VIEW_GET_DATA'.
    and help view is for search help.
    check this link below.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecd2446011d189700000e8322d00/content.htm]
    Regards,
    Sakthi.

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

  • How to retreive data from a maintainence view?

    Hi all,
    I have used select query to retreive data from a maintainence view. But it gave me a syntactical error that XYZ is not in abap dictionary , it's a database / projection view?
    So can't we get data from a view using select query?
    Please share if u have answers.
    Thanks & regards,
    Chandru

    Hi,
    Maintenance view will be created for database tables only.
    Just display the maintainence from SE11 and click Tables tab in the screen
    Here you can find the list of tables used to created for Maintainence view.
    YOu can use these tables to write SELECT.
    If you give us the maintainence table, we will help you.
    Thanks,
    Ramakrishna

  • Maintainence View-Data Selection

    Hi,
        I need to update a table in Oracle with the SAP data.
        The SAP data is in a maintainence View.When I try to select the data into an internal table ,I am getting an error message that tells that the corresponding View is not defined in the DB as a table ,projection view or database view.
    Can we select data from a Maintainence View??
    Thanks.

    Hi,
    check this
    MAINTENANCE 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.
    Data that is distributed on more than one table often forms a logical unit, called an application object. You should be able to display, change and create the data of such an application object together. Users usually are not interested in the technical implementation of the application object, such as the distribution of the data on several tables.
    You can maintain complex application objects in a simple way using a maintenance view. The data is automatically distributed on the underlying database tables.
    All the tables used in a maintenance view must be linked with a foreign key. This means that the join conditions are always derived from the foreign key in the maintenance view. You cannot enter the join conditions directly as in a database view.
    A maintenance interface with which the data of the view can be displayed, changed and created must be generated from the definition of a maintenance view in the ABAP Dictionary.
    When the maintenance interface is created, function modules that distribute the data maintained with the view on the underlying tables are automatically generated.
    The maintenance interface is generated with the Transaction Generate Table View (Transaction SE54) or from the view maintenance screen with Utilities -> Tab.maint.generator.
    With thanks & regards,
    Sravani yendru.

  • Long text in  PURCHASE order text view in program RMDATIND

    hi all,
    ive to upload data for material master  iam doing this using lsmw & standard object 0020  program RMDATIND.purchase order text.In this iam unable to upload purchase order text  in Purchase order text view can anyone plz tell me how to do tht??? its a bit urgent
    points will be awarded!
    rgds
    Message was edited by:
            abbaper
    Message was edited by:
            abbaper

    Hi
    In LSMW
    for Long texts Upload
    Please take a look at this..
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    Regards
    Anji

  • The visual Studio Test controller service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs

    We are using VS2013 Premium. i have installed vs2013 Test controller in my dev environment. While i am configuring (https://msdn.microsoft.com/en-us/library/hh546459.aspx) getting error message in
    the Configuration summary dialog box displaying following error's : 1. Failed to Configure TFS Team Project Collection, 2. Could not complete operation as the time out expired. ''
    I have checked the "visual Studio Test controller " in the
    Services --> Administrative. Its automatically stopped the service. When i started the manually its showing message like as 'The visual Studio Test controller
    service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs'
    Please guide me how to resolve this problem. 
    Thanks in Advance...

    Hi Divakar,
    What’s the version of your TFS?
    How do you configure the test control?
    Please make sure you are specify the team collection instead of team project.
    On the other hand, you may enable test controller logs. (You could share the log file on the OneDrive)
    # How to enable test controller logs
    http://blogs.msdn.com/b/aseemb/archive/2009/11/28/how-to-enable-test-controller-logs.aspx
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am unable to use the Live View function when working with JavaScript in Dreamweaver.

    I am currently trying to set up my own website with dreamweaver and am very familiar with Java and JavaScript. However, whenever I try to use the Live View function it never lets me. Additionally, I am unable to preview my work in a browser as the option to do so is greyed out.
    However, I have noticed that when using html in a project, all these functions are available. Any ideas how I can be able to use these functions?

    Is it possible you meant to say you were "very unfamiliar with Java and javascript" in your initial post?
    Javascript doesn't do anything without an html page to affect.
    Java and javascript are not the same thing, they're really not even related other than browsers can be made to render both. Java is its own programming language while javascript is basically html's helper monkey. I don't think it's even feasible to "understand javascript" without knowing html. My last post still stands, if you are coding javascript, you need an html based page to turn it into anything but plain code to a browser, so the option to view it will never come up. When you preview the page it's attached to, it will function correctly (as long as it has been attached to the page correctly).
    Java on the other hand can create programs that run without a browser at all and I've never gotten close to touching that monster.
    You may need to explain what you're trying to do and post the code here to get the help you need.

  • Maintainence View Problem

    I have created a ztable, and have used that table in maintainence view, but when i use that view in sm30 for entering the data, one of the field description is not coming it is just showing '+' ., what would be the problem .

    in the ztable for that field u might have used a data element which has no description. If there is no description for a field then in SM30 it will be shown as +.
    To solve this, for this field create a new dataelement and assign the dataelement to the field. Then goto table maintenance, delete the one existing, create a new one and activate it.
    Now, when U go to SM30, u will see the description instead of +.
    Award Points...Useful...

  • 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

  • Grid using Object Oriented View

    Can anyone send me program for grid using object oriented view.

    hi Sandeep,
    please look at this code
    REPORT Z_PICK_LIST .
    TABLES: RESB.
    SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1.
    SELECT-OPTIONS: S_WERKS FOR RESB-WERKS," Plant
    S_AUFNR FOR RESB-AUFNR," Order number
    S_BDTER FOR RESB-BDTER." Req. date
    SELECTION-SCREEN END OF BLOCK BL1.
    PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT DEFAULT '/STANDARD'.
    DATA: BEGIN OF OUT OCCURS 10,
    AUFNR LIKE RESB-AUFNR, " Order number
    MATNR LIKE RESB-MATNR, " Material
    BDMNG LIKE RESB-BDMNG, " Requirements in UM
    MEINS LIKE RESB-MEINS, " Unit of Measure (UM)
    ERFMG LIKE RESB-ERFMG, " Requirements in UE
    ERFME LIKE RESB-ERFME, " Unit of Entry (UE)
    MAKTX LIKE MAKT-MAKTX, " Mat. description
    END OF OUT.
    INCLUDE Z_ALV_VARIABLES.
    INITIALIZATION.
    REPNAME = SY-REPID.
    PERFORM INITIALIZE_FIELDCAT USING FIELDTAB[].
    PERFORM BUILD_EVENTTAB USING EVENTS[].
    PERFORM BUILD_COMMENT USING HEADING[].
    PERFORM INITIALIZE_VARIANT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
    PERFORM F4_FOR_VARIANT.
    AT SELECTION-SCREEN.
    PERFORM PAI_OF_SELECTION_SCREEN.
    START-OF-SELECTION.
    PERFORM GET_ORDERS.
    PERFORM GET_MATERIAL_DESCRIPTION.
    END-OF-SELECTION.
    PERFORM BUILD_LAYOUT USING LAYOUT.
    PERFORM BUILD_PRINT USING PRINTS.
    PERFORM WRITE_USING_ALV.
    FORM INITIALIZE_FIELDCAT *
    --> P_TAB *
    FORM INITIALIZE_FIELDCAT USING P_TAB TYPE SLIS_T_FIELDCAT_ALV.
    DATA: CAT TYPE SLIS_FIELDCAT_ALV.
    CLEAR CAT.
    ENDFORM. " INITIALIZE_FIELDCAT
    *& Form GET_ORDERS
    text
    FORM GET_ORDERS.
    SELECT AUFNR MATNR BDMNG MEINS ERFMG ERFME
    FROM RESB
    APPENDING TABLE OUT
    WHERE XLOEK EQ SPACE " deletion indicator
    AND XWAOK EQ 'X' " goods movement indicator
    AND WERKS IN S_WERKS " plant
    AND BDTER IN S_BDTER " req. date
    AND AUFNR IN S_AUFNR. " pr. order
    ENDFORM. " GET_ORDERS
    *& Form GET_MATERIAL_DESCRIPTION
    text
    FORM GET_MATERIAL_DESCRIPTION.
    SORT OUT BY MATNR.
    LOOP AT OUT.
    SELECT SINGLE MAKTX
    INTO OUT-MAKTX
    FROM MAKT
    WHERE MATNR EQ OUT-MATNR
    AND SPRAS EQ 'EN'.
    MODIFY OUT.
    ENDLOOP.
    SORT OUT BY AUFNR MATNR.
    ENDFORM. " GET_MATERIAL_DESCRIPTION
    FORM TOP_OF_PAGE *
    FORM TOP_OF_PAGE.
    DATA: L_POS TYPE P.
    first line
    WRITE:/ TEXT-001. " Plant:
    IF S_WERKS-HIGH NE SPACE.
    WRITE: S_WERKS-LOW, TEXT-TO1, S_WERKS-HIGH.
    ELSEIF S_WERKS-LOW NE SPACE.
    LOOP AT S_WERKS.
    WRITE: S_WERKS-LOW.
    ENDLOOP.
    ELSEIF S_WERKS-LOW EQ SPACE.
    WRITE: TEXT-ALL.
    ENDIF.
    L_POS = ( SY-LINSZ DIV 2 ) - ( STRLEN( TEXT-TIT ) DIV 2 ).
    POSITION L_POS. WRITE: TEXT-TIT.
    L_POS = SY-LINSZ - 20.
    POSITION L_POS. WRITE: TEXT-011, SY-UNAME RIGHT-JUSTIFIED. " User:
    second line
    WRITE:/ TEXT-002. " Order:
    IF S_AUFNR-HIGH NE SPACE.
    WRITE: S_AUFNR-LOW, TEXT-TO1, S_AUFNR-HIGH.
    ELSEIF S_AUFNR-LOW NE SPACE.
    LOOP AT S_AUFNR.
    WRITE: S_AUFNR-LOW.
    ENDLOOP.
    ELSEIF S_AUFNR-LOW EQ SPACE.
    WRITE: TEXT-ALL.
    ENDIF.
    L_POS = SY-LINSZ - 20.
    POSITION L_POS. WRITE: TEXT-012,SY-DATUM. " Date:
    third line
    WRITE:/ TEXT-003. " Req. Date:
    IF S_BDTER-HIGH(1) NE '0'.
    WRITE: S_BDTER-LOW, TEXT-TO1, S_BDTER-HIGH.
    ELSEIF S_BDTER-LOW(1) NE '0'.
    LOOP AT S_BDTER.
    WRITE: S_BDTER-LOW.
    ENDLOOP.
    ELSEIF S_BDTER-LOW(1) EQ '0'.
    WRITE: TEXT-ALL.
    ENDIF.
    L_POS = SY-LINSZ - 20.
    POSITION L_POS. WRITE: TEXT-013, SY-PAGNO. " Page:
    ENDFORM. " TOP_OF_PAGE
    FORM END_OF_LIST *
    FORM END_OF_LIST.
    DATA: L_POS TYPE P.
    ULINE.
    WRITE:/ '|', TEXT-021. " Delivered by:
    L_POS = SY-LINSZ DIV 2.
    POSITION L_POS. WRITE: '|', TEXT-031. " Received by:
    L_POS = SY-LINSZ.
    POSITION L_POS. WRITE: '|'.
    WRITE:/ '|'.
    L_POS = SY-LINSZ DIV 2.
    POSITION L_POS. WRITE: '|'.
    L_POS = SY-LINSZ.
    POSITION L_POS. WRITE: '|'.
    ULINE.
    WRITE:/ '|', TEXT-012. " Date:
    L_POS = SY-LINSZ DIV 2.
    POSITION L_POS. WRITE: '|', TEXT-012. " Date:
    L_POS = SY-LINSZ.
    POSITION L_POS. WRITE: '|'.
    WRITE:/ '|'.
    L_POS = SY-LINSZ DIV 2.
    POSITION L_POS. WRITE: '|'.
    L_POS = SY-LINSZ.
    POSITION L_POS. WRITE: '|'.
    ULINE.
    ENDFORM. " END_OF_LIST
    *& Form WRITE_USING_ALV
    text
    FORM WRITE_USING_ALV.
    Look this code*****
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = REPNAME
    I_INTERNAL_TABNAME = 'OUT'
    I_INCLNAME = REPNAME
    CHANGING
    CT_FIELDCAT = FIELDTAB.
    IF SY-SUBRC 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC,
    'REUSE_ALV_FIELDCATALOG_MERGE'.
    ENDIF.
    LOOk this code also.*********
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = REPNAME
    i_callback_pf_status_set = 'PF_STATUS_SET'
    i_callback_user_command = 'USER_COMMAND'
    I_STRUCTURE_NAME = 'OUT'
    IS_LAYOUT = LAYOUT
    IT_FIELDCAT = FIELDTAB
    I_DEFAULT = 'A'
    I_SAVE = G_SAVE
    IS_VARIANT = G_VARIANT
    IT_EVENTS = EVENTS[]
    IS_PRINT = PRINTS
    TABLES
    T_OUTTAB = OUT.
    IF SY-SUBRC 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC, 'REUSE_ALV_LIST_DISPLAY'.
    ENDIF.
    ENDFORM. " WRITE_USING_ALV
    ***************report over***************
    HOPE THIS CODE HELPS U
    Reward if its useful.............
    thanks and regards
    suma sailaja

  • Problem when creating  a tcode for maintainence view

    when i'm trying to create a tcode for maintainence view of table ,i used to fields view name: here i gave the table name;
    update : x
    now when i activated and executed the tocde the screen is showing some abnormal values in the display..this is happening in the development server..can any one help me on this..i can send the screen shot if required..thanks in advance,,
    challa

    hi,
    thank you.
    i have done the same...but here i dont want to skip the intial screen...so i didnt check that box..now comes the problem ..i can see some boxes with 'x' at the end of the paarameters..give me u r mail id i can send u the screen shot..
    thanks,
    challa

  • MSSTV001 - Delegating tasks using the team viewer iview.

    We are setting up a proxy so that our highest level mangers will not have to do their own compensation planning through MSS.  We found the user exit MSSTV001 to use for this purpose.  Does anyone have experience in using this user exit?
    I am looking for examples of code entered into: EXIT_SAPLHRWPC_TO_REMOTE_001 and EXIT_SAPLHRWPC_TO_REMOTE_002.
    Any other helpful information is appreciated.  I already have a sheet from SAP Online help that gives me a few details on what to do.  It is called:  Delegating tasks using the team viewer iview.
    Points will be rewarded for any helpful answers.
    Thanks,
    Sara

    Hi Gabriel,
    Requirement 1
    Thanks. I did so. Using this I can see the OrgUnit. However, this is the OrgUnit of MSS user. It remains same through out the program. It is unlike pernr which changes as the user clicks on different Employees.
    My exact requirement is as below:
    User will click on Employee Selection drop down box. After that he will select "Employees from Organizational Structure". Here organization structure will be displayed. Now the user will expand Org Structure. I want to know the Org Unit of different Organization as the user will go on expanding the Org Structure using the buttons
    Requirement 2
    User will click on Employee Selection drop down box. After that he will select "Employees from Organizational Unit". Now we can see the Go button. I have to write some code on the button. Where I can find the code for the button. I spent lot of time. I am not able to find out the exact place where the view for the button is located.
    Please help.
    Regards,
    Gary

  • How to use DTD in my XSLT program

    I've got a DTD,i've to code the XML part in XSLT_TOOL but when i use the statement
    !DOCTYPE doc SYSTEM "c:\doc.dtd"
    it is throwing me an error and i don't know how to use it also.Can anybody please send me a sample program showing how i can use that DTD in my program. Say my DTD when opened in IE5 and viewed it's source shows me like this
    <?xml version="1.0"?>
    <!ELEMENT note (to,from,heading,body)>
    <!ELEMENT to (#PCDATA)>
    <!ELEMENT from (#PCDATA)>
    <!ELEMENT heading (#PCDATA)>
    <!ELEMENT body (#PCDATA)>

    Hi,
      Have a look at the following link-
    http://72.14.235.104/search?q=cache:19IIghpohpcJ:https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/xml processing and xslt transformations with abapDTDinXSLTprograminXSLT_TOOL&hl=en&gl=in&ct=clnk&cd=2
    Reward if helpful.
    Regards,
    Tanuja.

  • Creating Certificate using Acrobat dll in C# program

    Hello,
    I need to create a certificate, basically .pfx file in C#. I used makecert tool to create the certificate first and then export it into .pfx file through command line. My attempt was successful. Then I used the .pfx file to encrypt a pdf using iTextSharp. The pdf is encrypted successfuly but when i try to open the pdf,  Acrobat/Reader shows a message "You do not have access rights to this encrypted document". I intalled the .pfx file but the problem still remains.
    Can anyone please guide me what am I doing wrong. I used the following code from command prompt to create a certificate and then export the certificate to a pxf file
    Create certificate - makecert -r -pe -n "CN=My CA" -ss CA -sr CurrentUser -a sha1 -sky signature -sv MyCA.pvk MyCA.cer
    Export to pfx - pvk2pfx -pvk MyCA.pvk -spc MyCA.cer -pfx MySPC.pfx -po <password>
    Is it possible to create a pfx file using acrobat dll in C#??
    Please help me, its urgent.
    Thanks in advance!

    No, there are no APIs for working with certificates from C#.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Tue, 13 Dec 2011 22:35:57 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Creating Certificate using Acrobat dll in C# program
    Re: Creating Certificate using Acrobat dll in C# program
    created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4083490#4083490

Maybe you are looking for

  • New CS in oracle 10.2.0.4.0

    All, I am trying to add a User defined Coordinate system. I have read article 395171.1 and 788145.1, but it doesnot work yet. Somewhere I make a mistake in one of the assumptions. I am using Oracle 10.2.0.4.0 on linux. The old coordinate system prior

  • Question about MBeans for web service metrics and configuration

    Hi, I'm new to JMX and trying to figure out how to create a MBean structure that captures a tree similar to the following for some web services I'm working on. All the operations will have the same set of metrics I'm collecting, so I'd like to reuse

  • Logic pro x, scanning AU plug ins every time I open it

    How can I turn this off? 9 never did this

  • Photoshop CS4 printer driver

    I installed the Photoshop CS4 printer driver (ipf6100) that I downloaded from Canon's website. When I chose export and choose the ipf6100 it gives me the error message "Could not complete the export command because of a program error". How do I get t

  • WVC210 web controls

    Hello, Why some controls (such as volume, recordin, img resolution) do NOT appear in browsers like Chrome? And why, even in IE 8, they often do NOT load? - as shown in the picture - Thanks Enrico