Web Dynpro ABAP: How to access the content of a mime object?

Hi everyone,
does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
DATA: xml_content type xstring.
xml_content = read_mime_object("test_123.xml").
Any ideas?
Regards,
Nils

dude here's the modification that i've done but I can't still access the content of the properties...
           Mail mail = new Mail();
           String message2 = sqlException.getMessage();
           File file = new File("Add.properties");
           Properties props = new Properties();
           props.load(new FileInputStream(file));
           String[] emailadd = {props.getProperty("emailadd","defaultValue")};
           mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
           Message was edited by:
ryshi1264

Similar Messages

  • How to access the content in the configuration files

    Hi, Folks,
    To make it easy, the questions can be like this:
    how to access the content in web.xml in a web application?
    Through ServletConfig and context?
    how to access the content in ejb-jar.xml in an ejb?
    initial context?
    Thanks

    There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.

  • How is Web-dynpro ABAP application is accessed in web.

    Hi
    How are pages in ABAP-Webdynpro rendered in web, how does they get converted in HTML.
    As far as my understanding, ICM forwards the request to Application server ABAP, if request is for ABAP webdynpro page.
    After that does ITS play a role to render these pages in Web ??

    First of all ITS has absolutely nothing to do with Web Dynpro ABAP. 
    When you design a Web Dynpro ABAP application an XML based meta-data representation of the User Interface is saved in the repository.  Then at runtime we have a Web Dynpro ABAP rendering engine (written completely in ABAP Classes) uses this meta-data to render corresponding HTML and JavaScript content that gets loaded into the HTTP Response object. We actually have multiple rendering engines for Web Dynpro (xBCML for Flash and the NWBC) as well as the ability to replace and upgrade these rendering engines over time without disrupting the applications.  This is what is currently happening with 7.01 - we have rewritten the HTML/JavaScript renderer with a new version called LightSpeed.

  • Web Dynpro ABAP call transaction in the foreground

    In Screen Painter/SAP ALV, we can create a screen where for example if you double click on a sales order field it can take you a VA03 transaction by :
    call transaction VA03 ... and skip first screen.
    I am creating Web Dynpro ABAP application that needs to do the same thing where if we click on the field, it will take to VA03 transaction or other transactions.
    Has anyone done this in Web Dynpro ABAP? I have done some research and determine that we cannot call transaction in the foreground? I hope I am wrong.  Any help/insights will be greatly appreciated.

    Hi Phong,
    WDA is generic client to Netweaver connection based on HTTP/S.
    At this stage on a few clients are supported. WEB dynpro client and Browsers...
    SAPGUI connects to SAP using a different protocol.
    No SAPGUI connection is implied by a WDA client connection.
    Therefore  abap statements that invoke screens and otherwise assume SAPGUI
    is connected are not supported in WDA.   eg call screen, call transaction
    You can either
                         a) build your own WDC to front end calls to BAPIs to get the Sales order data.
                        b) open/ exit to the new WDC for Sales Orders in ERP2005
                              see LORD_MAINTAIN_COMP
                           c) exit to the INTERNAL ITS URL for transaction VA03 
                               eg http://<host>:<port>/sap/bc/gui/sap/its/webgui?~Transaction=VA03
                              but getting the skip first screen may require you to call custom tran ZVA03
                               which calls VA03 to skip first screen setting the PID appropriately.
    Hopefully you opt for option a) or b).
    c) can work... I have used it from BSPs but it not pretty.
    regards
    Phil

  • WD ABAP: How to get the contents of selected table lines?

    Hi,
    I'm trying to figure out how to get the contents of table lines back from the UI. I display a table with several lines of data. The user selects some rows. I want to move the contents of the selected rows to another table. I have a context attribute, say DATA, with attributes FIELD1... FIELDn, using a DDIC structure. These are bound to the table UI element and the corresponding table columns. To get the selected rows, I use wd_context->get_selected_elements(). This works, but what I get from this method is references to if_wd_context_element. How do I know which row (row number = ?) this corresponds to? And how do I get the actual data? I want a structure with FIELD1 = value1 FIELD2 = value2 etc. My context attributes FIELD refer to table columns, but I'm looking for the table line...
    Can somebody help me?
    Thanks,
    Ira

    Hi Ira,
    wd_context->get_selected_elements() returns WDR_CONTEXT_ELEMENT_SET which is a table type of IF_WD_CONTEXT_ELEMENT. You can loop through the WDR_CONTEXT_ELEMENT_SET, get into variable say node_elelement which is of type ref to If_Wd_Context_Element. Then you could use the method GET_STATIC_ATTRIBUTES of If_Wd_Context_Element which returns a structure with values of all the attributes in the selected row.
    If you need the row number, while populating the node you could have an additional attribute called rowno and populate it correctly. When you select the data using method GET_STATIC_ATTRIBUTES, you would get the appropriate row number.
    Regards,
    Srini.

  • How to show the content of a data object in listbox

    Hello together,
    i have created a service employee_srv for my data object "Employee". How can I show the content of this data object in a listbox in my view, for example DropDownByKey.
    Regards
    Waldemar Schakiel

    Hi,
    An example to create a dynamic context in Webdynpro ABAP:
    data:
    rootnode_info TYPE REF TO if_wd_context_node_info,
    dyn_node TYPE REF TO if_wd_context_node,
    tabname_node TYPE REF TO if_wd_context_node,
    tablename TYPE string.
    rootnode_info = wd_context->get_node_info( ).
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
    parent_info = rootnode_info
    node_name = tablename " Data object Table name
    structure_name = tablename
    is_multiple = abap_true ).
    ***Bind data to Dynamic table:
    DATA: stru_tab TYPE REF TO data.
    FIELD-SYMBOLS:
    <tab> TYPE table.
    create internal table
    CREATE DATA stru_tab TYPE TABLE OF (tablename).
    ASSIGN stru_tab->* TO <tab>.
    dyn_node = wd_context->get_child_node( name = tablename ).
    Bind internal table to context node.
    dyn_node->bind_table( <tab> ).
    Shruthi

  • Web Dynpro ABAP: How to do checkboxes in table column?

    Hi,
    In Web Dynpro for ABAP, I have a table, where one column consists of check boxes, and the user should be able to check some boxes in some lines. In the context of my view, I created a node tied to a DDIC structure, with some attributes. The attribute where I want to see the checkboxes is of type boolean. In the layout I create an element of type table. Then I create the binding to the context node and for the columns I use cell editor of the appropriate type, that is, checkbox. However, when I test my application, there are no checkboxes at all. What am I doing wrong?
    Thanks,
    Ira

    >
    Jenny Karunakaran wrote:
    > Hi Jung,
    >
    > Thanks for the reply. But I dont know how to assign value set to this attribute(i.e. Context atribute to which filter value property is bound). Can I use a supply function for this ?
    >
    >
    > Regards,
    > Jenny
    No. A value set and a supply function are two completely different things. You use this Context API to populate the value set for an attribute:
    IF_WD_CONTEXT_NODE_INFO=>SET_ATTRIBUTE_VALUE_SET
    Value Sets are also how ByKey UI elements (like the DropDownByKey) are built.  Here is a help document that discusses value sets - but in the context of the ByKey UI elements.  The process is the same for creating the value set however:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • Web Dynpro ABAP: How do I fill dropdown lists?

    Hi,
    I'm doing WD for ABAP and I'm trying to get contents into a dropdown list. I'm using DropDownListByKey. The contents come from a customizing table. I'm not sure where exactly I should add my coding: does it go into a supply function for my context attribute? Or in the method WDDOINIT? Basically, if you could point me towards some sample code, it would make me very happy!
    Thanks, Ira

    Hi,
    see http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm and the examples in the system in WDR_TEST_EVENTS and WDR_TEST_UI_ELEMENTS.
    Regards, Heidi

  • How to access the parent class variable or object in java

    Hi Gurus,
    I encounter an issue when try to refer to parent class variable or object instance in java.
    The issue is when the child class reside in different location from the parent class as shown below.
    - ClassA and ClassB are reside in xxx.oracle.apps.inv.mo.server;
    - Derived is reside in xxx.oracle.apps.inv.mo.server.test;
    Let say ClassA and ClassB are the base / seeded class and can not be modified. How can i refer to the variable or object instance of ClassA and ClassB inside Derived class.
    package xxx.oracle.apps.inv.mo.server;
    public class ClassA {
        public int i=10;
    package xxx.oracle.apps.inv.mo.server;
    public class ClassB extends ClassA{
        int i=20;   
    package xxx.oracle.apps.inv.mo.server.test;
    import xxx.oracle.apps.inv.mo.server.ClassA;
    import xxx.oracle.apps.inv.mo.server.ClassB;
    public class Derived extends ClassB {
        int i=30;
        public Derived() {
           System.out.println(this.i);                  // this will print 30
           System.out.println(((ClassB)this).i);  // error, but this will print 20 if Derived class located in the same location as ClassB
           System.out.println(((ClassA)this).i);  // error, but this will print 20 if Derived class located in the same location as ClassA
        public static void main(String[] args) { 
            Derived d = new Derived(); 
    Many thanks in advance,
    Fendy

    Hi ,
    You cannot  access the controller attribute instead create an instance of the controller class and access the attribute in the set method
    OR create a static method X in the controller class and store the value in that method. and you can access the attribute by 
    Call method class=>X
    OR if the attribute is static you can access by classname=>attribute.
    Regards,
    Gangadhar.S
    Edited by: gangadhar rao on Mar 10, 2011 6:56 AM

  • Problem with Web Dynpro ABAP Adobe form Access via 'NULL' object reference

    Hi All!
    I'm a beginner of Adobe form.
    problem 1:
    I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]
    I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.
    I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.
    problem 2:
    I can't input any data in input box or click any button even  if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer.  Does it means that there are some thing wrong with my adobe reader?
    Hope anyone could save me,
    Thanks & Regards,
    Murloc

    >
    tomcat123 wrote:
    > Hi All!
    > I'm a beginner of Adobe form.
    > problem 1:
    > I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]
    > I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.
    > I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.
    Check that you have entries in the Table MARI. else you will get this message.
    > problem 2:
    > I can't input any data in input box or click any button even  if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer.  Does it means that there are some thing wrong with my adobe reader?
    >
    Compare the adobe live cycle version. it will work fine with 7.0/7.1
    > Hope anyone could save me,
    > Thanks & Regards,
    > Murloc

  • Issues regarding the testing of the web dynpro abap service

    Hi all,
    I am working on web dynpro (ABAP). After activating the whole object. When I test the web dynpro service. The browser gives me the following error.
    The server <server_name> is taking too long to respond.
    I am new to Web Dynpro ABAP, can anyone please help me telling, whether i have to configure system for testing the web dypro object. If yes then how to configure it.
    also in the view the layout is not showing the elements to be included in the service.
    Thanks & Regards
    Ekta

    hi ekta.....
               include your domain and port name in the host file that is present in the c:/.
      these are the configurations that has to be done.
    [link|help.sap.com/saphelp_nw04s/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm]
    ---regards,
       alex b justin

  • Web dynpro abap application on Portal does not work via internet access.

    Dear All,
    I have created a web dynpro abap application and deployed the same on Portal.
    The issue I am facing is that the webdynpro application works fine when the end user logs into Portal from Local Network,
    However when the Portal is accessed from outside the local N/W via Internet, Portal is working fine for other applications like ESS
    but the web dynpro application dont work.
    Is this some configuration issue on the portal / abap development or any workaround is possible.
    Regards
    Abhinav Dagar

    Hi
    Please try to use the [HTTP Watch 5.0 Basic |http://www.httpwatch.com/download/] tool to trace that WD Application link from the portal and you can easily find out the problem.
    Regards
    Prakash T

  • How to Remove Web Dynpro ABAP - Starting Application white banner

    Hi everyone,
    When I call the Web Dynpro ABAP applicaion, it shows the Login screen, after proper authentication, it shows a SAP NetWeaver Web Dynpro ABAP white screen/banner stating "Starting Application... ", and after sometime it launches the Web Dynpro application. I want to remove the white screen. How can we do that?
    Thanks in advance,
    Amber
    Message was edited by: Amber Gupta

    Hi Amber,
    Just as a quick note: There is no artificial delay when displaying the splash screen. During that time the application loads itself. The screen is removed as soon as everything will have been initialized including calling all application hooks such as wdDoInit on all the different controllers. This means, that by removing the splash screen you will only get a blank white screen with a "Application is being loaded.." message that will stay as long as the splash screen would have done. Hence, disabling or enabling it is more a matter of taste, not of performance.
    Best regards,
    Thomas

  • Web dynpro Abap not inheriting the Portal theme

    Hi,
    My Web Dynpro Abap is not inheriting the Portal theme. My understanding is that for NW2004, EP7, Web Dynpro Abaps would automatically inherit the Portla theme. Is there some coding required or pre-config of some sort that I have missed to allow the Portal theme inheritance?
    thanks
    C

    Hi,
    see also the [documentation|http://help.sap.com/saphelp_nw70/helpdata/en/46/89af7fbe4d429ee10000000a1553f7/frameset.htm]
    Regards, Heidi

  • Web Dynpro ABAP Material

    I am new to web Dynpro ABAP.
    Please send the regarding sites to work out this concept.
    Please send me materials or pdfs regatrding this topic
    My Mail ID is <b>[email protected]</b>
    Please help me.
    I am requiring it a lot.
    Please send me .
    With Regards,
    lokesh@EDS

    Web Dynpro for ABAP in SDN
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    First of all start doing SAP SDN tutorials .
    Create some compenents with BAPI , Component usage and ALV .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Try to Download demo tutorials from SDN library & Try to search WebDynpro ABAP WebLogs .
    Wait not just that SAP has provided you with ample demo example of WD ABAP already bundled with SAP . Just Try out Components starting with WDR . I can tell you few like WDR_TEST_EVENTS ( It shows how every UI elments to use )
    See packages like SWDP_DEMO , SALV_WD_DEMO
    there are many more .
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712
    The specified item was not found.
    If you need some standard examples then do WDR* and you'll get a big list in se80 transaction. Also SWDP_DEMO is a good package to refer to. Check for WDR_TEST_UI_ELEMENTS and WDR_TEST_EVENTS for UI operations and their various events.
    1) This is basic Info of WD ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    2 ) I can give you links that can help you a lot.
    First of all start doing SAP SDN tutorials .
    Create some compenents with BAPI , Component usage and ALV .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Try to Download demo tutorials from SDN library & Try to search WebDynpro ABAP WebLogs .
    Wait not just that SAP has provided you with ample demo example of WD ABAP already bundled with SAP . Just Try out Components starting with WDR . I can tell you few like WDR_TEST_EVENTS ( It shows how every UI elments to use )
    See packages like SWDP_DEMO , SALV_WD_DEMO
    there are many more .

Maybe you are looking for