Excel download feature in Web Dynpro Abap using OAOR document

Hi Friends,
I am facing an issue in implementing excel download feature in Web Dynpro.
Problem: I have stored an excel document in OAOR. I am displaying data on screen using ALV display in WDA.
I will provide a button to download excel in toolbar of ALV. When user clicks on this button i need to pick the document from OAOR and fill that with my screen values and download it to users desktop.
Please help me in this. Problem is when i am calling these classes c_oi_container_control_creator=>get_container_control and cl_gui_custom_container from my View's method they are returning error.
Thanks & Regards,
Saud

HI,
You cannot use GUI classes and methods in web dynpro . That will dump.
Instead you can use file down load UI element or..
If you have the content in xstring format use ATTACH_FILE_TO_RESPONSE method of CL_WD_RUNTIME_SERVICES class.
Regards,
Madhu

Similar Messages

  • TechEd recording for New Features in Web Dynpro ABAP session

    This week's SAP TechEd lecture of the week is New Features in Web Dynpro ABAP - hence this posting in the WDA forum.  It covers heavily the new features that came in NetWeaver 7.01 as well as giving a bit of a preview of some of the new features in 7.02. This session was recorded in 2009 at TechEd Phoenix.
    http://www.sdn.sap.com/irj/scn/index?rid=/media/uuid/80726482-3d07-2d10-009c-c5a4db525ff0
    These TechEd Lectures of the week only last for free for one week and then you need a subscription to the Virtual TechEd to be able to view them. So this session will only be available until June 17th.

    you can use link to action in table.So that when you click link you can see the message in window or where ever you want.
    check this link how to insert link to action in ALV Table.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproABAP-UsingUIelementsinALVcomponentcells
    thanks
    Suman

  • Excel Export issue in Web Dynpro ABAP

    Hello,
    We are facing a problem and need suggestion. In one of our WD Abap applications the output is displayed in an ALV table. We have a button (provided by standard ALV functions) to export Excel.
    So far so good, but the issue is the amount columns display in the portal show the values as per user default settings. For example 123.456,78 whereas on export to excel it shows 12345.78
    Is there some way to export to excel with the users regional settings (same as displayed on portal). So far we check, almost all columns follow the regional user default settings except the amount column. Is there someway we can fix this.
    Users mention it worked before but not now. Its difficult to verify this statement now.
    Kindly help how we could solve this issue.
    Best regards,
    Moderator message: please have a look in the separate forum for Web Dynpro ABAP.
    Edited by: Thomas Zloch on Dec 19, 2010 9:31 PM

    HI,
    You cannot use GUI classes and methods in web dynpro . That will dump.
    Instead you can use file down load UI element or..
    If you have the content in xstring format use ATTACH_FILE_TO_RESPONSE method of CL_WD_RUNTIME_SERVICES class.
    Regards,
    Madhu

  • Web Dynpro ABAP - Using Formatted TextView

    Hi,
    I created a  Web Dynpro ABAP application.  I need to display user information (i.e. address, phone # etc) on the home page after user logs in to the portal.  I created some Formatted TextView elements in the view and trying to change their text during the runtime.  Can someone please let me know how to change the text of the field in runtime.  If some one can provide pseudo code with sysntax, it would be great help.  Sorry, if it is a very basic question.
    Thanks.

    Hi Shan,
    There is nothing special about how you can work with the text of FormattedTextView UI element. You just need to bind the "Text" property of this element to a context attribute of type STRING. So whatever value you maintain within this attribute would get displayed in your FormattedTextView. So in order to dynamically change the text you would just have to do a SET_ATTRIBUTE on this context attribute. If you want to know as to how you can do it via the methods of FormattedTextView class then you have a method by name SET_TEXT in the class CL_WD_FORMATTED_TEXT_VIEW. You can call this method using the reference of the FormattedTextView on your view & pass the desired text as input to the parameter "VALUE". However keep it in mind that you are better off binding the "Text" property to a context attribute & changing the attributes data rather than directly using the SET_TEXT method to change the data.
    For any example over FormattedTextView you can check the standard component: WDR_TEST_MISC.
    Regards,
    Uday

  • Using alv features in web dynpro abap

    Hi Gurus,
    I am new at WDA. I have an wda program which shows query results as ALV. This results give me some information about user messages but normally i can't display all of the message text because it is too long.
    Now i want to give "hotspot" property to a cell(message text) and thus when i click it, i will see all of the message.
    How can i enable these and another functions of ALV?  
    Thanks

    you can use link to action in table.So that when you click link you can see the message in window or where ever you want.
    check this link how to insert link to action in ALV Table.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproABAP-UsingUIelementsinALVcomponentcells
    thanks
    Suman

  • Excel with contents in web dynpro for ABAP application

    Hi Experts,
    I have excel file (example "http://xxxx/test.xls") with contents in remote system. I want to incorporate this excel file into my web dynpro application. For this I used Officecontrol UI element and set the following properties for Officecontrol
    1. datasource : binding with context attribute DATAS(xstring)
    2. document type : ms_excel
    I wrote code the following code in WDDOMODIFYVIEW method.
    data :   content TYPE xstring,
               url TYPE string VALUE 'http://xxx/test.xls'.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        text           = url
    IMPORTING
       BUFFER         = content .
    wd_context->set_attribute( name = 'DATAS' value = content ).
    while running my application, I getting excel without contents and with one message "SAP IOS". Please suggest how to display excel with contents in view of my application.
    Can any one help me.....
    Thanks & Regards
    Sridhar

    >
    sridhar vadaga wrote:
    > Hi Experts,
    >
    >
    > CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    >   EXPORTING
    >     text           = url
    >  IMPORTING
    >    BUFFER         = content .
    >
    >
    > Thanks & Regards
    > Sridhar
    I think you are overestimating the power of the SCM_STRING_TO_XSTRING function module.  By supplying a URL as the value of the input text, it isn't going to magically go read the content from the remote location and convert that to a binary string.  It is going to take whatever value you supply in th importing TEXT parameter convert that to binary.  In other words it is literally converting the string http://xxx/test.xls to binary.  You will need some other mechanism to read the content from the remote location into ABAP memory before you can process it.  You will need to use the CL_HTTP_CLIENT class or call some sort of web service to retrive the content.

  • Shooping cart creation in SRM 7.0 using web dynpro ABAP classes.

    Hi,
    We have recently upgraded to SRM 7.0 from SRM 4.0. We are using customized portal application for the creation of the shopping cart.I am planning to create custom FM which will use the standard Web dynpro ABAP classes to create the shopping cart.
    Could you please guide with the classes that are need to be implemented and the sequence of the classes used in the shopping cart creation.
    I think these are the classes that are used in the standard web dynpro ABAP component.
    CL_FPM_EVENT ->                  Creates an instance of this class based on an event ID.
    CL_BADI_FLT_DATA_TRANS_AND_DB -> Data Handling: Transport and Database.
    CL_EXITHANDLER ->               Class for Ext. Services Within Framework of Exit Technique.
    CL_EX_BBP_DOC_CHANGE_BADI ->     BAdI Class CL_EX_BBP_DOC_CHANGE_BADI.
    CL_BBP_OBJECTS_ACCESS ->         Access Functions for Object Types.
    /SAPSRM/CL_PDO_BO_SC ->          Shopping Cart BO.
    Your expert comments will be appreciated...
    Regards,
    Naresh

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • How to save file in km using web dynpro abap

    Hi Experts,
    We have a requirement that file should be saved in a folder in km, the name of the folder should be the employee number.
    Could you please tell me how to create folder with employee number in KM and store file in it using web dynpro abap.
    Thanks and Regards,
    Santhoshi.

    Thanks Naga Raju Meesala.
    How come all these methods are deprecated...getEP5User
    Also, since I am building a weddynpro DC, what is the proper way to include these jar files as Used DCs?
    Now proceed in the same way with the variable PORTAL_HOME and add the following .jar files:
    u2022 \lib\prtapi.jar The portal runtime APIs
    u2022 \portalapps\com.sap.portal.usermanagement\lib\com.sap.security.api.ep5.jar The user management APIs of the Enterprise Portal 5.0 are deprecated, but still in use in SAP NetWeaver 04
    u2022 \portalapps\com.sap.netweaver.bc.rf\lib\bc.rf.framework_api.jar KM Repository Framework APIs
    u2022 \portalapps\com.sap.netweaver.bc.rf.service\lib\bc.rf.global.service.urlgenerator_api.jar Repository Framework Utility: URL Generator
    u2022 \portalapps\com.sap.netweaver.bc.sf\lib\bc.sf.framework_api.jar Repository Framework: Repository Services
    u2022 \portalapps\com.sap.netweaver.bc.util\lib\bc.util.public_api.jar Repository Framework Utilities

  • Adobe form to save data using Web Dynpro ABAP

    Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
    creating Adobe offline form using Web Dynpro ABAP same time.
    I have several questions and hopefully, many gurus like you will provide answers.
    I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
    but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
    using interactive form. Is there any detail explanation/example on this?
    I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
    2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
    All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
    I am sure I didn't install/configure something correctly.
    Anyone has any idea what I didn't do?
    I have another question, but I will wait till later after I figure out above ones first.
    Thanks for all your help in advance.
    John

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • Reading HTML Content using Web Dynpro ABAP

    Hello,
    I was wondering if it is possible to read the content (HTML) behind a given URL using Web Dynpro ABAP.  If so, are there any functions available to parse the HTML ?   I have been asked to develop an application that requires going to a URL, reading the content, and formatting a table from that content for presentaion within Web Dynpro ABAP.  The HTML of the URL is nothing more than a "Table of Contents" to existing documentation ( Word Documents )
    Thank you for any help / advice you can provide
    Larry

    You can get the HTML returned in a table using fm RSFO_HTML_REQUEST2.
    Once you have that, you can convert it to a string using any number of methods. CL_RSR_WWW_RENDERER=>TABLE_TO_STRING should work fine.
    One option for parsing it would be to get it converted into an iXML object, but you might have to do quite a bit of manipulation first depending on what the html looks like. You can see more info here on iXML classes: [http://help.sap.com/saphelp_nw04/helpdata/de/86/8280ba12d511d5991b00508b6b8b11/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/de/86/8280ba12d511d5991b00508b6b8b11/frameset.htm]
    Otherwise I would just make use of find statements with regex patterns to sort through the html.

  • Rules Engine using Web Dynpro ABAP

    Hi,
    Can we build a Rules Engine which works with Web Dynpro-ABAP?  Something similar to BRM in CE-7.2.
    Thanks,
    Prasanna

    Do you mean BRM or BRF.  BRF is the name of the business rules framework that is integrated in the ABAP engine. BRM is Business Rules Management and a part of NetWeaver CE - running on the Java Stack and a part of SAP NetWeaver BPM (Business Process Management).
    Generally if your work is all ABAP based you would use BRF.  Here is a small eLearning that shows the usage of BRF within Web Dynpro ABAP.
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/c0181bb1-28e7-2c10-538c-a093c616310e

  • Is Web Dynpro ABAP being used in production?

    Friend,
    My company wants to start using Web Dynpro ABAP.
    I wanted to know if Web Dynpro ABAP is in ramp up mode or the latest release is good for production?
    Are many of you already using Web Dynpro ABAP in production?
    Thanks in advance.

    THere are many ramp-up customers that are currectly developing/using WDA.   It is still in ramp-up and not available for general customers.  Are you a ramp-up customer for Netweaver 2004s?  If so, you are free to develop and use WDA.  If SAP felt that it wasn't ready, they probably wouldn't have released it for ramp-up.  Any problems that have come out of ramp-up, have probably been addressed and fixed with support packs.
    Regards,
    Rich Heilman

  • Upload file into KM using Web Dynpro ABAP

    Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ. Any help on how to do this would be very much appreciated. Thanks.

    Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ. Any help on how to do this would be very much appreciated. Thanks.

  • Excel Upload via Web dynpro ABAP

    Hi All,
    Could any one please explain how to upload MS Excel file in Web Dynpro ABAP?
    Regards,
    Surya

    Hi Surya,
    Ya Excel upload is not supported some times.
    You can save your excel sheet as "Tab Limited" file. Then you can easily upload the file contents to your WebDynpro.
    Thanks.

  • How to display the data of CJ2C(T-CODE) using web dynpro abap

    Hi all:
        How to display the data of CJ2C(T-CODE) using web dynpro abap.
        CJ2C used to display a Gantt Chart.
        Thanks.

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

Maybe you are looking for

  • Satellite Pro A200 PSAFCA: Need Lan and display driver for XP

    Hey please help me! I have just installed XP on my new satalite pro, but i have had trouble with the drivers. At the moment I have installed most but from this site i can't seem to find a driver that will help my network card, nor my video NIVIDIA dr

  • ITunes has detected an iPod in recovery mode loop

    Hello, I have an Ipod 5 and during update of the OS to the latest, the process got an error. No my Ipod is in recovery mode. Everytime I download the Update (Restore and update) there is this constant pop up that comes up (iTunes has detected an iPod

  • Dvd-to-ipod converters

    I was wondering, are there any dvd to ipod converters that are virus-free, that don't cost anything, and can be used on a dell? thanks

  • PDF trouble after completing form and sending to coworker - arrives blank

    I've entered information into the form and sent it but the receiving party can't see the information that has been entered.  If you click on each box it appears but prints out blank...  All info fully visible on my mac when I view it.  What am I doin

  • G5 dual 1.8 WON'T shut down with TIGER 10.4.7

    Hi all. Updated the G5 dual with Tiger, did the 10.4.7 combo update and it still won't shut down. Have to hold the power button. I've tried creating a new administrator but to no avail. Logging out won't do it either. I upgraded from 10.3.9 for music