Excel Pivot in WebDynpro ABAP

Hi All,
I wanted to download my Internal table to Excel(PIVOT). I can download my content in EXCEL format.
But I want it in Pivot format.
I searched SCN and I found only for ABAP Reports but I want for Webdynpro abap.
How to achieve this.
Thx.

hi,
check the below document:
http://scn.sap.com/docs/DOC-25024

Similar Messages

  • How to read the excel file using webdynpro abap?

    Hi,
    how to read and modify excel file using webdynpro abap?
    Regards,
    Pavani

    For reading excel file follow the steps :
    1. Use a File upload UI element and bind it with xstring.
    2. Now your excel will be uploaded and stored in Xstring.
    3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.
    4. Now split the string at new line so as to make an internal table .
      Ex . SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE it_table.
      here it_table is type table of string.
    5.now loop at the internal table and separate the content of this table separated by tab.
      Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.
    it_new type string_table.
    6. For more info , refer this thread :
    Re: How to upload excel file in Webdynpro application using ABAP

  • Reading & writing from MS Excel files in Webdynpro ABAP

    Dear experts,
    We have a requirement to read and write from an MS excel file in a Webdynpro ABAP based application. The application would be deployed on WAS (Web Application Server) which is running as part of SAP ECC on UNIX platform.
    What is not clear is
    1) If we store the MS Excel template on the server which has UNIX, will the file be recognised for reading/writing programmatically in Webdynpro ABAP? If this works, we have a requirement where the end users will download the excel template and upload the same after filling data into the excel file. The data filled into the excel has to be read and updated in the SAP backend (ECC).
    2) There is an article on "Modifying Excel using WD ABAP" at the following link
    https://wiki.sdn.sap.com/wiki/display/WDABAP/ModifyingexistingexcelsheetusingWDABAP
    But again it is not clear whether this approach will work on Unix based SAP server (ECC WAS).
    Thanks
    Suresh

    I don't know if there is an application in Unix that can read Excel files - if that is what you are asking.  However that has nothing to do with this forum.  If you are uploading the file to ABAP using Web Dynpro ABAP, then it doesn't matter what Operating System the server is running on.  Unix, Linux, Windows - all the processing is done in ABAP and is OS independent. The actual reading of the file in ABAP involves reading either an XML or Text Tab Delimited version of the Excel file however - if you read through the links on manipulating Excel in ABAP.

  • EXCEL formatting using WEBDYNPRO ABAP

    Hi
    Can we format the cells while downloading a file in EXCEL format in webdynpro and also can we insert a logo in the downloaded excel? Can any one help on this ?
    Thanks in Advance
    Srini -

    Yes you can. (you can create your own XML formatted Excel file. The details of how the file needs to be formatted are publicly available. This info is not specific to SAP so you'd probably find better resources outside of SCN.)
    Is there an SAP standard API to do this? - no, not currently.
    However, the abap2xlsx community code is working to build a freely available API to do this. you might want to check out their site, wiki, blog.
    I don't think it currently supports images, but that is certainly planned.
    Chris

  • Cell Formatting in excel -  Webdynpro ABAP

    Hi,
    I have Webdynpro ABAP component. In this I am downloading some internal table data into spread sheet using following code. I need to Format data like giving Cell coloring. Could any one please tell me where i can make this format in WebDynpro ABAP.
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text   = ls_text
        IMPORTING
          buffer = ls_xtext.
      wdr_task=>client_window->client->attach_file_to_response(
    **path to the word file
         i_filename = 'WDP.xls'
    * String Variable
         i_content =  ls_xtext
    * File Type
         i_mime_type = 'EXCEL' ).
    Thanks,
    Sekhar.J
    Edited by: sekhar J on May 3, 2010 11:50 AM

    Hello,
    We did the saved the excel in  Excel XML format and duplicated the code using concatenations as given in thread http://scn.sap.com/docs/DOC-25024
    .But I always see the below error
    XML PARSE ERROR:  Missing whitespace between attributes
      Error occurs at or below this element stack:
        <ss:Workbook>
         <ss:Worksheet>
    But the XML tags are concatenated as well in to field of type STRING .
    Please advise how to resolve this .
    Thanks
    Shishupal.

  • Webdynpro abap ALV export to excel with images problem

    Hello experts,
    I'm having problems with standard excel export functionality in webdynpro abap ALV.
    In my table i have images taken from content server (employee photos) linked with URL to a table_cell Image, when i export the table to excel using standard function the images is showed as a broken picture with the following text:
    "The linked image cannot displayed. The file may have been moved, or deleted. Verify that the link points to the correct file and location."
    I'm running on sap basis 7.02 SP13 and implemented the notes 1975765 and 1985288 but not resolved this issue.
    Do you have any ideas?
    Thank you.

    Hi Jorge,
    Are you able to download the ICONs from alv table? try to use some icon source '~Icon/Add' and check out if you can download it to excel successfully.
    FYR:
    Regards,
    Rama

  • File Upload in Webdynpro ABAP

    Hello,
    I would like upload a excel file in Webdynpro for ABAP and I get the data in a attribute in the context node.
    The data is there in Binary format.
    If it is possible to get the data in the ASC format like the function "ws_upload"?
    I had tested with the class "CL_GUI_FRONTEND_SERVICES" and
    the function "ws_upload" both don't work in Webdynpro for ABAP can anyone give me information's how to get the file data in a internal table.
    Regards
    Klaus

    Hi Klaus,
    do you know that there is a special Web Dynpro Java.
    Regards
    Gregor

  • Spread sheet in Webdynpro ABAP using Office control

    Hi Experts,
    I need to create an excel sheet in an ABAP Webdynpro application and fill its data
    programatically in my code i.e. I cannot read data from an existing file and populate the data source.
    Is it possible to fill its data source in any other way, example from an internal table.
    Please suggest.
    Thanks and Regards,
    Sadaf.

    ch4eck this out:
    excel

  • How to upload muliple files in webdynpro abap?

    dear team
    any one could you tell me how to upload multiple files in webdynpro  abap with detailed steps?
    and where & what code i have to write?
    kindly give me the solution for this problem
    regards
    sathya

    Please use the forum search!
    Thomas has made an excellent guide about exactly what you require:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    Cheers, Lukas

  • Trouble with FUNCTIONAL LOCATION - locking! With WEBDYNPRO ABAP

    Hi all,
        i have a lock object problem via webdynpro ABAP.
    My web-dynpro get a FUNCTIONAL LOCATION (FL)  and could modify it information, the problem is that until the web-dynpro browser is active into ECC system the FL result LOCKED! And also from the web-dynpro i cannot modify it again, i have to reload/refresh the webpage
    I used after the updating the TRANSACTION_COMMIT and soon after the DEQUEUE_EIFLOT frunction module.
    Anyone has some suggestion on it?
    Thanks in advance Roberto.

    Hi Jorge,
    Are you able to download the ICONs from alv table? try to use some icon source '~Icon/Add' and check out if you can download it to excel successfully.
    FYR:
    Regards,
    Rama

  • Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input

    Dear Friends,
    We are facing a serious problem for debugging. Expecting valuable input for the same.
    Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
    The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
    1st ] Within R/3
    Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
    2nd ] From webpage to R/3
    Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
    In Prod. Server the 1st case above is working but the 2nd case is not working.
    In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
    The setting which are done in Prod. server are,
    1] RZ10 in parameters are set for port and host name.
    2.1] In SMICM check for ICM.
    2.2] Host file updated in Windows-System 32.
    3] In SICF following services are active,
    3.1] default_host/sap/bc/webdynpro
    3.2] default_host/sap/public/bc
    3.3] default_host/sap/public/bc/webdynpro/viewdesigner
    3.4] default_host/sap/bc/wdvd
    3.5] default_host/sap/public/icman
    3.6] default_host/sap/bc/gui/sap/its/webgui
    3.7] default_host/sap/public/ping
    3.8] default_host/sap/bc/error
    3.9] default_host/sap/bc/echo
    4] In SE80
    4.1] Internet services-System-are published
    4.2] Internet services-WEBGUI-are published
    4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
    4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
    5] In Su01 for user profiles sap_all & sap_new is assigned and role  SAP_BC_WEBSERVICE_DEBUGGER is assigned.
    6] The support packages are also updated to latest level.
    7] Gone through following links but not getting any clues.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
    Thanks in Advance.
    Best Regards,
    Abhijit.

    No cross posting
    Read the "Rules of Engagament"
    Regards
    Juan

  • Error when Interative Adobe Form is called from Webdynpro ABAP.

    Hi Experts,
    I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
    Line: -
    The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
    The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Line: -
    When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
    So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
    Thanks in Advance.
    Regards,
    Arun.

    Hello,
    Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
    Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
    check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
    and especially note 999998
    Regards, Otto

  • Excel Pivot Table with Date Hierarchies - query performance degradation

    For the sake of this explanation, I’m going to try and keep it simple. Slicing the data by additional dimensions only makes the issue worse. I’ll keep this description to one fact table and three dimensions. Also, I’m fairly new to SSAS Tabular; I’ve worked
    with SSAS Multidimensional in the past.
    We’ve got a fact table that keeps track of bill pay payments made over time. Currently, we only have about six months of data, with the fact row count at just under 900,000 rows. The grain is daily.
    There is an Account dimension (approx. 460,000 rows), with details about the individual making a payment.
    There is a Payment Category dimension (approx.. 35,000 rows), which essentially groups various Payees into groups which we like to report on: Automobile Loan, Mortgage, Insurance, etc.
    There is the requisite Date dimension  (exactly 62093 rows-more days than we need?), which allows visibility as to what is being paid when.
    Using this DW model, I’ve created a SSAS BISM Tabular model, from which Excel 2010 is ultimately used to perform some analysis, using Pivot Tables. In the tabular model, for easier navigation (doing what I’ve always done in SSAS MultiDimensional), I’ve created
    several Date Hierarchies, Year-Month, Year-Quarter-Month, etc.
    There are currently only two measures defined in the Tabular model: one for the “Sum of PaymentAmount”; one for the “PaymentsProcessed”.
    OK, in Excel 2010, using a Pivot Table, drag the “Sum of PaymentAmount” measure to the Values section, next to/under the PivotTable Field List. Not too exciting, just the grand total of all Payments, for all time.
    Drag the “YearMonth” hierarchy (from the Date dimension) to the “Column Labels” section. After expanding the year hierarchy to see the months, now the totals are for each of the months, for which we have data, for June through November, 2013.
    Drag the “PaymentCategory” (from the Payment Categories dimension) to the “Report Filter” section. Filter accordingly: We just want to see the monthly totals for “Automobile Loans”.
    Now, some details. Drag the “AccountSK” (hiding the actual account numbers) to the “Row Labels” section. This shows all accounts that have made Automobile Loan payments over the last six months, showing the actual payment amounts.
    So far, so good. Remember, I’m using a Date Hierarchy here, in this case “YearMonth”
    Now, if any of the other attributes on the Account dimension table, say “CreditScore”, or “LongName”, are subsequently dragged over to the “Row Lables” section, under the “AccountSK”, the results will never come back, before timing out or by giving up and
    pressing ESCape!
    If this exact scenario is done by removing the Date Hierarchy, “YearMonth” from the “Column Labels” and replace it with “Year” and “MonthName” attributes from the Date dimension, these fields not being in any sort of hierarchy, adding an additional “Account”
    attribute does not cause any substantial delay.
    What I’m trying to find out is why is this happening? Is there anything I can do as a work around, other than what I’ve done by not using a Date Hierarchy? Is this a known issue with DAX and the query conversion to MDX? Something else?
    I’ve done a SQL Profiler trace, but I’m not sure at this point what it all means. In the MDX query there is a CrossJoin involved. There are also numerous VertiPaq Scans which seems to be going through each and every AccountSK in the Account dimension, not
    just the ones filtered, to get an additional attribute (About 3,600 accounts which are “Automobile Loan” payments.).
    Any thoughts?
    Thanks! Happy Holidays!
    AAO

    Thanks for your reply Marco. I've been reading your book, too, getting into Tabular.
    I've set up the Excel Pivot Table using either the Year/MonthName levels, or the YearMonth hierarchy and then adding the additional attribute for the CreditScore.
    Incidentally, when using the YearMonth hierarchy and adding the CreditScore, all is well, if the Year has not been "opened". When this is done, I suspect the same thing is going on.
    From SQL Profiler, each of the individual MDX queries below (formatted a bit for readability).
    Thanks!
    // MDX query using separate Year and MonthName levels, NO hierarchy.
    SELECT 
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    CrossJoin(
    {[Date].[Year].[All],[Date].[Year].[Year].AllMembers}, 
    {([Date].[MonthName].[All])}
    ,[Date].[Year].[Year].AllMembers, [Date].[MonthName]
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON COLUMNS, 
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    CrossJoin(
    {[Accounts].[AccountSK].[All],[Accounts].[AccountSK].[AccountSK].AllMembers}, 
    {([Accounts].[CreditScore].[All])}
    ,[Accounts].[AccountSK].[AccountSK].AllMembers, [Accounts].[CreditScore]
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON ROWS  
    FROM [PscuPrototype] 
    WHERE ([PaymentCategories].[PaymentCategory].&[Automobile Loan],[Measures].[Sum of PaymentAmount]) 
    CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
    // MDX query using separate YearMonth hierarchy (Year, MonthName).
    SELECT 
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    {{DrilldownLevel({[Date].[YearMonth].[All]},,,INCLUDE_CALC_MEMBERS)}}, 
    {[Date].[YearMonth].[Year].&[2013]},,,INCLUDE_CALC_MEMBERS
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON COLUMNS,
    NON EMPTY 
    Hierarchize(
    DrilldownMember(
    CrossJoin(
    {[Accounts].[AccountSK].[All],[Accounts].[AccountSK].[AccountSK].AllMembers}, 
    {([Accounts].[CreditScore].[All])}
    ,[Accounts].[AccountSK].[AccountSK].AllMembers, [Accounts].[CreditScore]
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME 
    ON ROWS  
    FROM [PscuPrototype] 
    WHERE ([PaymentCategories].[PaymentCategory].&[Automobile Loan],[Measures].[Sum of PaymentAmount]) 
    CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
    AAO

  • How to display summation of a field in table displayed in Webdynpro ABAP

    Hi,
    I am displaying a table in Webdynpro ABAP. This consists of data for different PERNRs.
    I need to display the sum of a particular column for each PERNR, after the end of each PERNR data. (table sorted by PERNR).
    Is there any way to display this in the table? If so then please let me know.
    Regards
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Mar 7, 2011 9:20 AM

    Hello,
    I believe you have created the query in SQ00.
    Go to SQ00.
    Select your Query.
    Click on Change
    On the Top Left Hand Corner, you will find "BASIS MODE"
    Click on the Basis Mode Button
    Once you click on Basis Mode Button, you will get "Title"
    Change the title what you are intended to change.
    SAVE the entries.
    Execute the Query.
    You will be able to see new Heading on the Query.
    Hope this helps you.
    Regards,
    Ravi

  • Create PMD (Clinical Document) Document from Webdynpro ABAP

    Greetings everyone,
           I have developed two PMD document category(Tcode :N2T6 ) for Clinical documents in SAP R/3 and somehow with the limitation of R/3 in terms of developing user friendly screens like Auto fill and image processing etc...,Users do not satisfy with it.So we are planning to develop in Webdynpro ABAP.But i am not sure how do we integrate the webdynpro development with IS-H PMD (clinical documents) documents ,also I am looking for BAPI's to create our customized parameterized documents.Any help will be really appreciated.
    Thanks,
    Vignesh

    Hi Vignesh,
    You are right that certain features, such as auto-completion, are not supported in the PMD toolset. But as most of the data captured in those documents have a high importance for treatment process, you need to elobarate whether such a feature has any impact on patient safety. Just a quick one - user types An ... and the system determines matching diagnoses such Anorexia or Angina. In case the user picks the wrong one by accident the patient safety is an issue.
    Other features such as image management can be used. For that you need to use a PMD link module which does provide the image integration. Siemens will ship in the next release EhP6 such a link module for a third party imaging software. Beforehand the link module use with custom development.
    In general Siemens has started a product redesign program named "Smart UI". It's major aim is to provide an up-to-date user interface for all major application within i.s.h.med. The very first application we plan to ship is a web-based electronical medical record.
    In case you still want to develop your application, I'm sorry to say, but there are no BAPIs or Web services in the standard delivery. For changes to existing documents you can utilize the PMD API of generator version 2. But be aware that document creation is not supported by the API. You need to have a document. Also certain user exit developments may brake a change without having the GUI running. For instance a popup in the save routine will cause a dump if no SAP GUI is available.
    Hope this help.
    Axel Biernat
    Siemens AG
    Product Commercialize

Maybe you are looking for

  • Snap file is created automatically on my SharePoint database ?

    Hi, On My SharePoint Database a snap file is created which consumes lots of space and the performance of server is degraded. The snap file is created automatically and its also removed automatically after 1 day. I am new to SQL and won't find any sch

  • Where to run SQL statements in Oracle Database 11gR1 ?

    Folks, Hello. I have just installed Oracle Database 11gR1 and login to Database Control page. There are 4 tabs on the top: Database, Setup, Preference, Help and Logout. I just create a table "table1" in "Database" tap. But I don't see anywhere to run

  • Differences between SPA51x and Yealink t22p

    I have a partner who is moving towards TR-069 towards the end of the year. He has been using the SPA303's but these don't support TR-069, the only SPA's that do support this are SPA51x and 525 but these are more costly. Due to this he is going to be

  • Calender for dates in parameter Form!!

    Can we show calendar object on dates in Parameter Form in Reports6i. Please advise. Thanks a lot. Kind Regards Sarda

  • How do I write objects over a SocketChannel?

    Using the regular Socket class we can pass objects over sockets like this. Socket s = new Socket("127.0.0.1", 80); ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream()); out.writeObject(new Object()); Now, I've looked through the docum