Dynpro to PDF/Excel

Experts,
I developed a report using 2 containers, the first (top) one contains an ALV report and second (bottom) has a graph based on data from the ALV. Now I need to be able to download the screen output - both the ALV and Graph into a local file - PDF/Word or Excel.
Any suggestions?
Thanks in advance
NW

Sandra,
Thanks for reminding - the forum is an ocean indeed! I didn't find suitable information though. Let me expand as you ask:
The requirement started off as to display statistical data in a report in a tabular format as well as a 3-d bar graph (yes, I was given an excel file and asked to create an ABAP Report in the same fashion - you know how demanding Users/Clients can get.)
I could achieve that by creatinf a screen (ex: DYNPRO 100) with 2 containers - CNT1 for ALV Report above CNT2 for the 3d Bar Graph referring to cl_gui_chart_engine.
All was well till the ourpur was cheerfully appreciated. Now, the twist: The report needs to be downloaded into local files. Never did anything like this before... a few things are eating me up now:
1. Is it possible to get the report data in tabular format into excel and add the graph as an image below that table.
2. The top container creates scroll bars if the ALV lines go beyond its defined height.
3. I guess cl_gui_chart_engine has methods that can convert the graph into an image format...
I am thinking if the table data can be populated direct from the itab, into excel and add this image in the same file, same sheet.
I was looking for some suggestions from the Community. Not necessarily solutions but something that can give me direction!
NW

Similar Messages

  • How to export data from a Dynpro table to Excel file?

    Hi
    Here I go again. I read the post <b>Looking for example to export data from a DynPro table to Excel file</b> and put the code lines into a Web Dynpro Project where we need to export a dynpro table to Excel file but exactly at line 23 it doesn't recognize <b>workBook = new HSSFWorkbook();</b>
    1     //Declare this in the end between the Begin others block.
    2     
    3     private FileOutputStream out = null;
    4     private HSSFWorkbook workBook = null;
    5     private HSSFSheet hsSheet = null;
    6     private HSSFRow row = null;
    7     private HSSFCell cell = null;
    8     private HSSFCellStyle cs = null;
    9     private HSSFCellStyle cs1 = null;
    10     private HSSFCellStyle cs2 = null;
    11     private HSSFDataFormat dataFormat = null;
    12     private HSSFFont f = null;
    13     private HSSFFont f1 = null;
    14     
    15     //Code to create the Excel.
    16     
    17     public void onActionExportToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    18     {
    19     //@@begin onActionExportToExcel(ServerEvent)
    20     try
    21     {
    22     out = new FileOutputStream("C:/mydirectory/myfiles/testexcel.xls");
    23     workBook = new HSSFWorkbook();
    24     hsSheet = workBook.createSheet("My Sheet");
    25     cs = workBook.createCellStyle();
    26     cs1 = workBook.createCellStyle();
    27     cs2 = workBook.createCellStyle();
    28     dataFormat = workBook.createDataFormat();
    29     f = workBook.createFont();
    30     f1 = workBook.createFont();
    31     f.setFontHeightInPoints((short) 12);
    32     // make it blue
    33     f.setColor( (short)HSSFFont.COLOR_NORMAL );
    34     // make it bold
    35     // arial is the default font
    36     f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    37     
    38     // set font 2 to 10 point type
    39     f1.setFontHeightInPoints((short) 10);
    40     // make it red
    41     f1.setColor( (short)HSSFFont.COLOR_RED );
    42     // make it bold
    43     f1.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    44     f1.setStrikeout(true);
    45     cs.setFont(f);
    46     cs.setDataFormat(dataFormat.getFormat("#,##0.0"));
    47     
    48     // set a thick border
    49     cs2.setBorderBottom(cs2.BORDER_THICK);
    50     
    51     // fill w fg fill color
    52     cs2.setFillPattern((short) HSSFCellStyle.SOLID_FOREGROUND);
    53     cs2.setFillBackgroundColor((short)HSSFCellStyle.SOLID_FOREGROUND);
    54     // set the cell format to text see HSSFDataFormat for a full list
    55     cs2.setDataFormat(HSSFDataFormat.getBuiltinFormat("text"));
    56     cs2.setFont(f1);
    57     cs2.setLocked(true);
    58     cs2.setWrapText(true);
    59     row = hsSheet.createRow(0);
    60     hsSheet.createFreezePane(0,1,1,1);
    61     for(int i=1; i<10;i++)
    62     {
    63     cell = row.createCell((short)i);
    64     cell.setCellValue("Excel Column "+i);
    65     cell.setCellStyle(cs2);
    66     }
    67     workBook.write(out);
    68     out.close();
    69     
    70     //Read the file that was created.
    71     
    72     FileInputStream fin = new FileInputStream("C:/mydirectory/myfiles/testexcel.xls");
    73     byte b[] = new byte[fin.available()];
    74     fin.read(b,0,b.length);
    75     fin.close();
    76     
    77     wdContext.currentContextElement().setDataContent(b);
    78     }
    79     catch(Exception e)
    80     {
    81     wdComponentAPI.getComponent().getMessageManager().reportException("Exception while reading file "+e,true);
    82     }
    83     //@@end
    84     }
    I don't know why this happen? Any information I will appreciate it.
    Thanks in advance!!!
    Tokio Franco Chang

    After test the code lines appears this error stacktrace:
    [code]
    java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
         at com.sap.tc.webdynpro.progmodel.api.iwdcustomevent.ExportToExcel.onActionAct1(ExportToExcel.java:232)
         at com.sap.tc.webdynpro.progmodel.api.iwdcustomevent.wdp.InternalExportToExcel.wdInvokeEventHandler(InternalExportToExcel.java:147)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:252)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    Thanks in advance!!!
    Tokio Franco Chang
    [/code]

  • Best ways to view/display PDF/Excel files stored in the Database

    What are best ways to display/view PDF/Excel files stored in the Database? thanks L

    Thanks tom, sorry let me explain. Currently we have oracle forms screen, using webutil to store/view files into DB. client won't like the interface, they want us to make it more friendly, drag and drop if possible, load multiple files, as possible.. So I am exploring different ways to improve may be java (or jdev/any any other), different screen designs, different features for fileupload/download/view options.

  • Oracle reports to display PDF/Excel files stored in the Database

    can we use Oracle reports to view/display PDF/Excel files stored in the Database? Thanks Lalitha

    A document stored in the database can be easily retrieved in or via the browser using mod_plsql. Simplified:
    select content, mime_type
    into v_blob, v_mime_type
    from ...
    owa_util.mime_header(nvl(v_mimetype,'application/octet'),false);
    htp.p('Content-length: ' || dbms_lob.getlength(v_blob));
    owa_util.http_header_close;
    wpg_docload.download_file(v_blob);So, the link in your report should point to this database procedure.
    Edited by: InoL on Mar 1, 2011 4:17 PM

  • Will I be able to transfer files of DOC , PDF, excel and PPT from PC to I-pad Air?

    I have recently purchased I-pad Air. I want to transfer DOC, PDF, EXCEL and PPT files for PC to I-Pad and vice-versa. Will I-tune 10 do the job abd please let me know the steps tp be followed.

    I think that you need iTunes 11.
    You can copy word, excel, powerpoint and/or PDF documents to the iPad, but first you need one or more apps on the iPad that support those document types - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app.
    The options include Apple's Pages app for Word documents, Numbers for Excel spreadsheets and Keynote for Powerpoint. And from third-parties apps such as Documents To Go ('premium' version) and QuickOffice. Microsoft have also released apps, but unless you subscribe to Office 365 you will only get read-only e.g MS Word For iPad.
    For PDFs there are free apps such as Apple's iBooks app and also Adobe Reader - and paid-for apps such as GoodReader (which also supports read-only of word and excel documents).
    As to how you then get the file to your chosen app will depend upon what the app supports - different apps will have different ways of copying their content to/from a computer e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via your wifi network, email, dropbox etc. For Apple's Pages, Numbers and Keynote : copying documents via iTunes.

  • Tracking placed files (jpeg,tiff,word,PDF,excel)

    It was recommended to ask this here vs bridge - not much luck in bridge. The situation: i have multiple sources sending a variety of files (jpeg,tiff,word,PDF,and excel). As the book is designed many of them will be placed. As long as the sources update with the same name im good. However, they will inevitably send me batches of files containing new files - how can I track what has been placed and what hasn't. I will have multiple folders to organize the chaos. One thing bridge helped with: keyword. I can quite easily assign a placed keyword in bridge, filter using that word and im done. Except for word and excel - metadata doesn't take. Someone explained this to me.
    The sources are out of country, so i have to track this. Bridge takes care of 90%. Perhaps someone has dealt with this. Again, if someone adds a new photo without calling it out, keyword work. Its the Microsoft documents that get tricky. In advance, i appreciate our time.

    Start by creating an Item type of OLE container. Set the following properties:
    - OLE Tenant Types: Embedded
    - Database Item: Yes
    Make that item the last item in the block.
    Create a push button such as 'Insert Document' with similar code:
    DECLARE
      vcFile VARCHAR2(1024);
    BEGIN 
      vcFile := win_api_dialog.Open_File('Select Document File to Insert',NULL,'MS-Word files (*.doc)|*.doc|'||
         'PDF files (*.pdf)|*.pdf|Excel Files (*.xls)|*.xls|Outlook message files (*.msg)|*.msg|All files (*.*)|*.*|',
         TRUE,win_api.OFN_FLAG_DEFAULT,TRUE);
      go_block('<block name>');
      last_record;
      Create_Record;
      initialize_container('<oleitemname>',vcFile);
    EXCEPTION
      WHEN NO_DATA_FOUND Then
         Null;
    END;

  • Exception when using BEx Broadcaster on output PDF/Excel

    Hi all,
    I've a BI system (ABAP & Java) on different servers - SP12.
    When I try to send a query with Output Format other than "Outer link to CurrentData" (ie. PDF/Excel) through the BEx Broadcaster I get
    "Java system error: call FM_RSRD_X_PRODUCE_PROXY to ProgId <RFC Destination name> on host <portal server name> with SSO not authorized: Authentication faild."
    If I try to run 'FM_RSRD_X_PRODUCE_PROXY' directly through SE37 I don't get an error.
    I have the latest "Diagnostics & Support Tool" and everything is Green when I do the check.
    SSO if configured from Portal to BW (if I go the the BI Master system and do 'Test connector' I get 'success').
    Moreover, if SSO wasn't configured then I would get an error when trying to access the BI roles (My ModelData JCO destinations uses ticket)
    The user I'm testing has '0BI_ALL'.
    DefaultTrace:
    <i>Date : 11/07/2007
    Time : 15:15:28:619
    Message : call FM RSRD_X_PRODUCE_PROXY to ProgId <RFC destination name> on host <portal server name> with SSO not authorized: Authentication failed.
    Severity : Error
    Category : /System/Server
    Location : com.sap.engine.services.rfcengine
    Application :
    Thread : SAPEngine_Application_Thread[impl:3]_0
    Datasource : 1585650:D:\usr\sap\VP2\JC00\j2ee\cluster\server0\log\defaultTrace.trc
    Message ID : 005056827EE90062000001100000373000043E568B18912E
    Source Name : com.sap.engine.services.rfcengine
    Argument Objs :
    Arguments :
    Dsr Component : WP8
    Dsr Transaction : 4731B5D4842D315FE10000002A50504F
    Dsr User : OMRIC                          
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 0
    Relatives : /System/Server
    Resource Bundlename :
    Session : 0
    Source : com.sap.engine.services.rfcengine
    ThreadObject : SAPEngine_Application_Thread[impl:3]_0
    Transaction :
    User : Guest
    Date : 11/07/2007
    Time : 14:46:25:420
    Message : java.lang.RuntimeException: call FM RSRD_X_PRODUCE_PROXY to ProgId <RFC destination name> on host <portal server name> with SSO not authorized: Authentication failed.
         at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:79)
         at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156)
         at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7785)
         at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2405)
         at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1728)
         at com.sap.mw.jco.JCO$Server.listen(JCO.java:8145)
         at com.sap.mw.jco.JCO$Server.work(JCO.java:8265)
         at com.sap.mw.jco.JCO$Server.loop(JCO.java:8212)
         at com.sap.mw.jco.JCO$Server.run(JCO.java:8128)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Severity : Error
    Category :
    Location : com.sap.engine.services.rfcengine.handleRequest
    Application :
    Thread : SAPEngine_Application_Thread[impl:3]_19
    Datasource : 1585650:D:\usr\sap\VP2\JC00\j2ee\cluster\server0\log\defaultTrace.trc
    Message ID : 005056827EE900680000012D0000373000043E56233051EB
    Source Name : com.sap.engine.services.rfcengine
    Argument Objs :
    Arguments :
    Dsr Component : WP8
    Dsr Transaction : 4731AF9A842D315FE10000002A50504F
    Dsr User : OMRIC                          
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 0
    Relatives :
    Resource Bundlename :
    Session : 0
    Source : com.sap.engine.services.rfcengine
    ThreadObject : SAPEngine_Application_Thread[impl:3]_19
    Transaction :
    User : Guest</i>
    How can I solve this problem?
    Regards,
    Omri

    Solved it on my own.
    The sso from Java->ABAP was OK
    I reconfigured the sso from ABAP->JAVA by creating new ABAP certificate and import it to the J2EE.
    Omri

  • How i can insert or save ( PDF, EXCEL, WORD, JPEG ) in IMAGE ITEM.

    Dear All,
    plz advise how i can save PDF, EXCEL, WORD, JPEG files in IMAGE FILE.
    Thanks in advance
    ASIM.

    Start by creating an Item type of OLE container. Set the following properties:
    - OLE Tenant Types: Embedded
    - Database Item: Yes
    Make that item the last item in the block.
    Create a push button such as 'Insert Document' with similar code:
    DECLARE
      vcFile VARCHAR2(1024);
    BEGIN 
      vcFile := win_api_dialog.Open_File('Select Document File to Insert',NULL,'MS-Word files (*.doc)|*.doc|'||
         'PDF files (*.pdf)|*.pdf|Excel Files (*.xls)|*.xls|Outlook message files (*.msg)|*.msg|All files (*.*)|*.*|',
         TRUE,win_api.OFN_FLAG_DEFAULT,TRUE);
      go_block('<block name>');
      last_record;
      Create_Record;
      initialize_container('<oleitemname>',vcFile);
    EXCEPTION
      WHEN NO_DATA_FOUND Then
         Null;
    END;

  • Export to only PDF,Excel, PPT

    Hello All
    Is there a way that i can only export to PDF, Excel and PPT? Currently i have the export option with many other formats but i want to limit only to the ones which i mentioned.
    Thanks
    Ravi
    Edited by: user1146711 on Feb 28, 2013 12:20 PM

    Hi Ravi,
    Below steps can be followed to remove a particular export option from Export link in analysis. Below example shows how to remove export to PDF option (Similar steps can be followed to remove other options):
    - Locate the file 'viewscontrolmessages.xml' in the 'Oracle_BI1\bifoundation\web\msgdb\messages' folder.
    - Copy the file 'viewscontrolmessages.xml' to the 'instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\msgdb\l_en\customMessages' directory.
    - Here we need to create the sub-folders \l_en\customMessages if it does not exist already.
    - Open the copied file in an editor and comment the below tags (<!-- -->)
    &#60;a class="NQWMenuItem NQWMenuItemWIconMixin" name="SectionElements" href="javascript:void(null);" onclick="NQWClearActiveMenu();Download('@{command}&path=@{path}&Format=pdf&Attach=1'); return false"><table class="MenuItemTable" cellspacing="0" cellpadding="0"><tr><td class="MenuItemIconCell"><img alt="" src="fmap:catalog/exporttopdf_ena.png" /></td><td class="MenuItemTextCell">
    <sawm:messageRef name="kmsgEVCLinkDownloadPDF" /></td></tr></table>&#60;/a>
    - Save the file
    - Re-start the OBI Presentation services (using Enterprise Manager).
    Thanks
    Hyder

  • Export/Convert Browser Based Infopath 2010 forms to PDF/Excel/Word

    Hi,
    Is there an OOB, way of converting browser based Infopath 2010 forms to PDF/Word/Excel.
    In case there isnt, can anyone please point me to a coded or a programmatic way of implementing the same. 
    Soptik Dutta

    Hi Soptik,
    As far as I know, we can only save an InfoPath form as PDF/Excel using InfoPath Windows form application(rather than Broswer-based InfoPath).
    In this case, we can
    Open the library that save the forms
    Selec the form that is wanted to be PDF/Excel(Just select it, don't open it)
    Click the "inverse trangle", and then click "Edit in Microsoft InfoPath"
    In InfoPath, click "File" > "Save & Send" to save the form as PDF/Excel
    In this following thread, there are some code snippets, which will help you to export an form to PDF using custom code:
    http://www.infopathdev.com/forums/t/8746.aspx?PageIndex=1
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jinchun Chen
    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)

  • Download the OA Graph to PDF/Excel

    Hi all,
    We have a graph report, in which we have Clustered Bar Graphs. We know that the graph generated is a BMP , but still we have a strange requirement asking whether we can download the graph to PDF/Excel.
    Any Suggestions ?! (I know its wierd, when we can right click and save the bmp, but just curious to know about any alternatives)
    Thanks and Regards,
    Senthil

    No support as such in OAGraph.
    you may want to write a tool of your own or i think you may get one on the net to save the page as a mht and then transform it to a PDF.
    Thanks
    Tapash

  • How do I make 3GS email display images, PDFs, Excel, etc?

    We have two identical iPhone 3GS and when an email from Outlook is sent to both, one will display images, PDFs, Excel, etc. while the other will not. Both have been updated to the latest software iOS 5.1.1 and Load Remote Images ON. iOS 5.1.1 has been reinstalled on non-performing phone with no improvement. How do I fix this?

    Thanks SBerman for the explanation which works on a gmail, yahoo and one of two AOL accounts. In sending the same test message from Outlook to four different email addresses, all but the sending AOL address can view images on the 3GS. The second AOL email account which can open and view files & images is set up identically as the other AOL.Quirky but I can simply not send to that one non-working AOL address. Thanks again for your help.

  • Program To Send Email with attachemnts in PDF / Excel with Subject

    Hi All,
    I have been given an Object to Develop a report to Send Email with attachemnts in PDF / Excel with Subject.
    Please provide the way to go about.
    Regards,
    Mohsin

    REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.
    DATA : BEGIN OF ITAB OCCURS 0,
    PERNR LIKE PA0001-PERNR,
    ENAME LIKE PA0001-ENAME,
    END OF ITAB.
    DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
    receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
    packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
    listobject LIKE abaplist OCCURS 10,
    compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
    w_object_hd_change LIKE sood1,
    compressed_size LIKE sy-index.
    START-OF-SELECTION.
    SELECT PERNR ENAME
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    FROM PA0001
    WHERE PERNR < 50.
    LOOP AT ITAB.
    WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
    SY-VLINE.
    ENDLOOP.
    Receivers
    receiver_list-recextnam = 'type your email address here'. "-->
    EMAIL ADDRESS
    RECEIVER_list-RECESC = 'E'. "<-
    RECEIVER_list-SNDART = 'INT'."<-
    RECEIVER_list-SNDPRI = '1'."<-
    APPEND receiver_list.
    General data
    w_object_hd_change-objla = sy-langu.
    w_object_hd_change-objnam = 'Object name'.
    w_object_hd_change-objsns = 'P'.
    Mail subject
    w_object_hd_change-objdes = 'Message subject'.
    Mail body
    APPEND 'Message content' TO message_content.
    Attachment
    CALL FUNCTION 'SAVE_LIST'
    EXPORTING
    list_index = '0'
    TABLES
    listobject = listobject.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    compressed_size = compressed_size
    TABLES
    in = listobject
    out = compressed_attachment.
    DESCRIBE TABLE compressed_attachment.
    CLEAR packing_list.
    packing_list-transf_bin = 'X'.
    packing_list-head_start = 0.
    packing_list-head_num = 0.
    packing_list-body_start = 1.
    packing_list-body_num = sy-tfill.
    packing_list-objtp = 'ALI'.
    packing_list-objnam = 'Object name'.
    packing_list-objdes = 'Attachment description'.
    packing_list-objlen = compressed_size.
    APPEND packing_list.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = w_object_hd_change
    object_type = 'RAW'
    owner = sy-uname
    TABLES
    objcont = message_content
    receivers = receiver_list
    packing_list = packing_list
    att_cont = compressed_attachment.
    Hope it helps,
    regards,
    kushagra

  • Send  PDF, EXCEL, MS Word from SAP to third party

    Hi All,
    My requirement is we have to upload docs from PC and send to third party system.
    Now my doubt is how can we upload  the docs like  PDF , Excel, MS Word etc from PC to sap and send it to third party.
    Thanks & Regards
    Satyamkumar Jha

    Hi Prabhudas,
    Thanks for your inputs.
    I have one more doubt.
    If you open any delivery  in VL03N  transaction just below the Menu bar there is button called 'Services for Object'. using this we can attach any document to this Delivery.
    Is there any way to attach this newly uploaded document using some Z program (referring tcode  CG3Z ) to this delivery.
    Regards
    Satyam

  • Export to PDF, Excel, Excel (Data Only) formatting issues

    Hi Community
    I have a report that consists of 5 subreports. Out of the 5 subreports, 3 of them have a similar format whereas the other 2 are different.
    Iu2019m currently facing an issue whereby the exports to excel works fine, but excel (data only) has some alignment issues(i.e. the data appears below the correct columns). However, when the report is tweaked to make export to excel (data only) appear correctly, the export to excel had its data shifted out of alignment. There is no impact to pdf exporting at the moment.
    Are there any people who are facing similar issues? Is there any resolution or workaround? I appreciate any help. Thanks.
    FYI, the version of crystal reports is Crystal reports is Crystal reports 2008 and we are using the crystal report viewer interface to export into excel and pdf formats. The excel version is 2007.
    Regards

    DW, i've also run into issues with multiple sub reports. I resolved it by putting each sub report into it's own section, and then suppressing the sub report (Note, if ur trying to export subreport data to excel, I don't think its going to work. You'd need to create shared variables and then bring those sub report shared variables into your main report).
    Once you bring your shared variables into the main report, suppress your sub reports, and then export to excel, you're still left with a dataset that has missing rows. This is ok. You can solve it easily within the excel file itself by sorting the data on a unique ID like Account #. This removes the extra rows.
    Not the most elegant solution, but it works.

Maybe you are looking for

  • Change customer / vendor account group

    Hi, I want to change the account group of a vendor. I tried XK07, but I then get a message about "Critical field groups" that would be switched off in the new target account group and then SAP doesn't let me change the account group. The "critical fi

  • External USB Hard Drive not showing up on Time Capsule

    Hi all, I have a 500 Gb Time Capsule that used to be able to detect my external USB hard drives. I had to store my things for a while and have just started using the Time Capsule again. The TC works fine, however, the same USB external hard drives I

  • Emails not loading after moving from one Inbox to another

    I was having problems with one of my Mail accounts recently (it would randomly not pull in new emails, go offline, not connect to the SMTP server etc.) and on advice create a new one. When this was up and running, I planned on moving the Inbox and Se

  • Header div not displaying correctly in Explorer

    Can someone help me with this IE browser problem?I have a header div inside the container div. The container is displaying correctly - center of page. The header div is not! It is off to the right and half the header is off the page. All other browse

  • Do Folios need to be updated as well to 31.3 or 32?

    My app has been approved and is already in the app store (31.3). My question is...do I also need to also update my folios that were not created since 31.3?  Up until last week I was creating everything with CS5 but now I am using CC. (Digging it BTW)