Problem - Column title not appearing in excel sheet

Hi Gurus,
I am working on a report where I need to add two fields in the output ( Excel format). I have included the fields in the output structure.While debugging my final internal table has both the new headers and their value.But both the heading and data are not appearing in the output because the contents in the internal table are converted to XML and it is converted to excel.Any suggestions to find the locus where it has gone wrong.

Hi,
How come the internal table values are gettin converted to XML ?? ...Are you doing it...
Any way.. use the function module GUI_DOWNLOAD.......
Make sure you transfer the contents of the internal table which you want to transfer to another internal table, in which the fields should be of type STRING or CHAR.
Let me know if its workin.
Regards.

Similar Messages

  • Problem in exporting ALV Report to excel sheet

    Hi All,
    I have developed a Report and now facing problem in exporting the same to excel sheet.
    When we click the "Locate File" icon in the report layout, the system will pop up a window with radio buttons. I have opted for 'Spreadsheet'.
    When i save the excel sheet into my desktop, the excel file has all the report headers (Title of each column). But no value is exported.
    There are around 15 columns in the report and the excel sheet shows value of last 2 columns which has some text.
    I have been into ALV report development and developed around 30+ reports in the same fashion.
    What might be the reason behind this issue?
    When i export other reports into excel sheet, everything is perfect without any flaws......
    Kindly help me out......
    Regards
    Pavan

    Hi,
    Here's my suggestion: Install OpenOffice.org and ask SAP to deliver good integration with OpenOffice.org.
    Alternative suggestion: re-install SAP Gui on the PC where the integration is not working. If that does not help, re-install Microsoft Office as well.
    Here's my comment: I think you should ask this question in a different forum, e.g. in the Duet forum. That may not be the correct forum either, but as it is a Microsoft/SAP integration technology forum, someone there may know the solution.
    Regards,
    Raj.

  • Graphs not appeared in Excel...

    Hi,
    I want to extract the graphs to Excel. They're appeared fine in .pdf and .rtf files. The problem is that they're not appeared in Excel. Is this some kind of bug...can I overcome this kind of problem...???
    Note: I use EBS 11.5.10.2, XML Publisher Server 5.6.3, Bi Publisher Desktop tool 10.1.3 , MS Excel 2007
    Thank you,
    S

    I want to extract the graphs to Excel. They're appeared fine in .pdf and .rtf files. The problem is that they're not appeared in Excel. Is this some kind of bug...can I overcome this kind of problem...???What type of graphs you are referring to?
    What is the type of the concurrent programs? Is it XML Publisher? If yes, can you find any errors in the OPP log file?
    Thanks,
    Hussein

  • Create Item column is not appearing in the "Personalize Page"

    Hi All,
    I am working in R12 upgrade project.
    I have to create item(Link) in a table region as per the requirement.
    But that "Create Item" button rather the column is not appearing in that "Personalize Page" when I click on the Personalize Page link of the concerned page.
    Can anyone please suggest Do I have to do any setup or any profile option needs to be enabled.
    Thanks,
    Raja Dutta

    Hi,
    Enable profile 'FND: Personalization Seeding Mode', clear the cache and check if this solves your problem.
    --Sushant                                                                                                                                                                                                                                                           

  • "Hyperion" menu item does not appear in Excel after SmartView Installation

    Hi to all! When I first installed SmartView, everything was ok - "Hyperion" menu item appeared in Excel and I successfully established connection to Planning and worked with data in Excel. Then, once upon a time I happened to select all data through Ctrl+A in the data form open in Excel and tried to copy it to another worksheet in the same workbook, Excel threw out a message about some serious error and informed me that the Hyperion Add-on would be removed. So it was removed in fact. When I was reinstalling Smart-View, all the installation went smoothly but the "Hyperion" menu item did not appear in Excel again. I tried to reinstall both Excel and SmartView and rebooted the system several times but the Hyperion menu item still does not appear in Excel. Can anyone hint me on how to solve this? Thanks a lot in advance!

    Hi, John! Thanks a lot! Your link led me to the thread in which the last post had the link Re: Smart View errors in Excel?! containing the "low-tech" 's instructions. It was these instructions that pulled me from underwater! Thank you so much and to that guy too! :)

  • My device icon in the left column does not appear. so, I can not make the sync.

    my device icon in the left column does not appear.
    so, I can not make the sync

    Device Not Recognised 
    For PC  >  http://support.apple.com/kb/TS1538
    For Mac  >  http://support.apple.com/kb/ts1591

  • When trying to Forward, the addresses column does not appear

    When trying to 'forward' a message, the 'addressees' column does not appear and I cannot select recipients. This suddenly happened a short time ago and I can't figue out why.

    When you have a Write window open you toggle the Contact Sidebar on and off with the F9 key.

  • Bi Publisher tab not appearing under Excel 2010

    Hi,
    We have a problem with my team when trying to use BI Publisher in Excel.
    We use Microsoft Office 2010 under Windows 7 configuration.
    It is working fine with Word : we use it often and the installation worked fine. The tab in Word appeared at first use. But when trying to use it with Excel, the tab is not appearing. We checked in the Add-ins options of Excel, we do not see any new add-in such as "TemplateBuilder.dot" that we see in word. There is also nothing in the "Disabled item" list.
    Can please someone help us ?
    Thanks a lot !

    If you cannot show the BI Publisher Macros in Word :
    1.     You have to uninstall the BI Publisher desktop
    2.     Install the BI Publisher as (Right-click on the "Command Prompt" item and select "Run as administrator".)
    3.     If you cannot show the BI Publisher macros and in word options show TBmenu as disable you have to do :
    4.     Click the Microsoft Office Button , click Word Options, and then click Add-Ins.
    5.     In the Add-ins box, identify the add-in that you want to enable and note the Add-in type located in the Type column.
    6.     Select the Add-in type in the Manage box and then click Go
    7.     Select the check box for the Add-in that you want enable and then click OK.
    8.     Close the word
    9.     Reopen the word , than appear the BI Publisher
    Azita

  • Field names are not getting into excel sheet while download

    Hi All,
    I am using gui_download fm to download internal table data to excel sheet.
    have passed fieldnames parameter also.
    defined each column with char type and length of those descriptions also.
    but while downloading only first column description is getting.
    Please help me.
    Thanks in advance.
    Regards,
    eswar

    hi,
    check this sample code.
    DATA : BEGIN OF it_join_fields OCCURS 0,
             field_name(20),
             END OF it_join_fields.
    CLEAR it_join_fields.
      it_join_fields-field_name = 'pernr'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'empname'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'new_joinee'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'begda'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'fath_name'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'gbdat'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'gesch'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'usrid_long'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
    it_join_fields-field_name = 'werks'.
      APPEND it_join_fields.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          filename                        = file_name
          filetype                        = 'ASC'
          append                          = 'X'
          write_field_separator           = 'X'
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
        TABLES
          data_tab                        = it_join_det_new
          fieldnames                      = it_join_fields
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • The "Adobe PDF" menu choice does not appear on Excel Menu

    I've installed Acrobat 9.1.2 and the "Adobe PDF" menu choice does not appear on the Excel 2000 Menu.  I have uninstalled and reinstalled the Microsoft Office option in PDF Maker with no change.  It does appear on the Word 2000 Menu.  Adobe 8.1.3 shows on all apps of Microsoft 2000 (on different computers.)

    According to Version Compatibility of Acrobat PDFMakers Office 2000 is not suupported by Acrobat 9.

  • Content type problem for 'does not appear to be a proper arcive'

    Hi all,
    The following code will create a ZipOutputStream using ByteArrayOutputStream (not FileOutputStream) and attach the outputstream to a MIME multipart email using ByteArrayDataSource (so the file never exists physically).
    It works and sends the email but the zip 'does not appear to be a valid archive' even though it looks about the right size. If I do the same and use FileOutputStream to create a physical file it works OK. I think it is an issue with the content type, or maybe this just isn't possible!
    I have tried:
    byteArray.toByteArray(),
    byteArray.toString().getBytes() and application/zip & application/unknown.
    Can anyone help or suggest an alternative way to create a 'in-memory' zip file that can then be emailed?
    Many thanks
        // Specify files to be zipped
                                                                 String[] filesToZip = new String[3];
                                                                 filesToZip[0] = "C:\\Program Files\\NetBeans3.6\\firstfile.txt";
                                                                 filesToZip[1] = "C:\\Program Files\\NetBeans3.6\\secondfile.txt";
                                                                 filesToZip[2] = "C:\\Program Files\\NetBeans3.6\\thirdfile.txt";
                                                                 byte[] buffer = new byte[18024];
                                                                 // Specify zip file name
                                                                  String zipFileName= eq_rt.getReportName() + ".zip";
                                                                 try {
                                                                   // Create ZipOutputStream to store the FileOutputStream
                                                                   //ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
                                                                   ByteArrayOutputStream byteArray = new ByteArrayOutputStream();                                                             
                                                                   ZipOutputStream out = new ZipOutputStream(byteArray);                                                              
                                                                   // Set the compression ratio
                                                                   out.setLevel(Deflater.DEFAULT_COMPRESSION);
                                                                   // iterate through the array of files, adding each to the zip file
                                                                   for (int a = 0; a < filesToZip.length; a++) {
                                                                     System.out.println(a);
    //                                                                 // Associate a file input stream for the current file
                                                                     FileInputStream in = new FileInputStream(filesToZip[a]);
                                                                     // This ROCKS as it is passing a array into the text file .getBytes() seems
                                                                     // to be the KEY in getting ByteArrayInputStream to WORK
                                                                     String strSocketInput = "TAIWAN";
                                                                     ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                     //ByteArrayInputStream baIn = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc() ) );                                                               
                                                                     // Add ZIP entry to output stream.
                                                                     out.putNextEntry(new ZipEntry(filesToZip[a]));
                                                                     // Transfer bytes from the current file to the ZIP file
                                                                     int len;
                                                                     while ((len = baIn.read(buffer)) > 0)
                                                                     out.write(buffer, 0, len);
                                                                     // Close the current entry
                                                                     out.closeEntry();
                                                                     // Close the current file input stream
                                                                     baIn.close();                                                   
                                                                  // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                   //DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream");   
                                                                    DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream" );
                                                                   // Create a new MIME bodypart
                                                                   BodyPart attachment = new MimeBodyPart();
                                                                   attachment.setDataHandler(new DataHandler(sourcezip));
                                                                   attachment.setFileName(zipFileName);                       
                                                                   /* attach the attachemnts to the mail */
                                                                   multipart.addBodyPart(attachment);                                                                
                                                                   // Close the ZipOutPutStream
                                                                   out.close(); 

    Many thanks Dr Clap. Moving the Closing the ZipOutputStream before I attached it to the email solved my problem.
                                          /* Close the ZipOutPutStream (very important to close the zip before you attach it to the email) Thanks DrClap */
                                                                    out.close();                                                    
                                                                    /* Create a datasource for email attachment */
                                                                    // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                    DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/zip" );
                                                                    /* Create a new MIME bodypart */
                                                                    BodyPart attachment = new MimeBodyPart();
                                                                    attachment.setDataHandler(new DataHandler(sourcezip));
                                                                    attachment.setFileName(zipFileName);                       
                                                                    /* attach the attachemnts to the mail */
                                                                    multipart.addBodyPart(attachment);  

  • The new column designed not appears in the form

    Dear All Gurus/Experts,
    I created new column directly in the database stored in the SQL server 2000,in table IGN1, right click --> select design table, then right click --> insert column, I write U_copqty, numeric data type, 9 is its length and allow nulls check mark.
    I can't understand why the field is not appeared in the form settings like other columns so that I can thick and make it appear in the form IGN1 (receipt from production). I have read development training files but I am confusing if it is really need VB.net to do that. I also know about user defined field but it doesn't what I need because I have created UDF in the production order row but I can't find it in the receipt from production form, so I just did create the new field/column directly in its database but I fail to make it appear in the form settings when I need it to be available in the receipt from production form. would you pls help me ? I appreciate your answer. TIA
    Rgds,
    Steve

    Hello Steve,
    The reason you can not see the directly added field is because that there is another table CUFD which holds all the User Defined Field information. So, you need to add a new record in that table. However, the approach is really not SAP recommended. Directly handling database could be very risky. Please create the user defined field according to the steps.
    Regarding why you can not view the field you created, did you create a row or document level field?
    Hope this helps,
    Nick

  • Problem in Sending mail with attachment (Excel sheet)

    Hi
    Iam using this FM   SO_NEW_DOCUMENT_ATT_SEND_API1  for sending mail with an attachment (excel sheet).
    the application is running fine , mail is going to other system .   but the excel sheet attachment contain only few rows  not all.
    and the body of the mail is not displaying . 
    Can any one help me. Thanks in advance.

    Hi,
    you can use cl_bcs classes for the same. I am using below code for same thng
      CONSTANTS:c_tab  TYPE c VALUE cl_bcs_convert=>gc_tab.
      CONSTANTS:c_crlf TYPE c VALUE cl_bcs_convert=>gc_crlf.
      DATA o_send_request   TYPE REF TO cl_bcs.
      DATA o_document       TYPE REF TO cl_document_bcs.
      DATA o_recipient      TYPE REF TO if_recipient_bcs.
      DATA o_bcs_exception  TYPE REF TO cx_bcs.
      TRY.
        o_document = cl_document_bcs=>create_document(
          i_type    = 'RAW'
          i_text    = is_mail_text
          i_subject = text-005 ).
      ENDTRY.
    *create file header
    CONCATENATE
                    text-h00 c_tab text-h01 c_tab text-h02 c_tab text-h03 c_tab text-h04 c_tab
                    text-h52 c_tab text-h05 c_tab text-h06 c_tab text-h07 c_tab text-h08 c_tab text-h09 c_tab
                   c_crlf INTO w_data_string.
    Loop at itab which contains data to be send as attachment
    concatenate field1 field2 field3 c_crlf into your_string separated by  c_tab
    conatenate final string your_string into final_string.
    endloop.
    *Convert data into suitable excel format
      TRY.
          CALL METHOD cl_bcs_convert=>string_to_solix
            EXPORTING
              iv_string   = w_data_string
              iv_codepage = '4103'
              iv_add_bom  = 'X'
            IMPORTING
              et_solix    = w_binary_content.
        CATCH cx_bcs INTO o_bcs_exception.
          IF o_bcs_exception IS NOT INITIAL.
            w_exec_txt = o_bcs_exception->get_text( ).
            MESSAGE w_exec_txt TYPE 'S'.
          ENDIF.
      ENDTRY.
        add the spread sheet as attachment to document object
      CONCATENATE text-006 sy-datum INTO w_attach_name SEPARATED BY space.
      o_document->add_attachment(
        i_attachment_type    = 'xls'
        i_attachment_subject = w_attach_name
        i_att_content_hex    = w_binary_content ).
    *create persistent send request
      o_send_request = cl_bcs=>create_persistent( ).
        add document object to send request
      o_send_request->set_document( o_document ).
        create recipient object for external mail id
      w_mlrec = iw_recipent.
      TRY.
          o_recipient = cl_distributionlist_bcs=>getu_persistent(
              i_dliname = w_mlrec
              i_private = space ).
        CATCH cx_bcs INTO o_bcs_exception.
          IF o_bcs_exception IS NOT INITIAL.
            w_exec_txt = o_bcs_exception->get_text( ).
            MESSAGE w_exec_txt TYPE 'S'.
          ENDIF.
      ENDTRY.
        add recipient object to send request
      o_send_request->add_recipient( o_recipient ).
        ---------- send document ---------------------------------------
      w_sent_to_all = o_send_request->send( i_with_error_screen = 'X' ).
      IF w_sent_to_all EQ abap_true.
        COMMIT WORK.
      ENDIF.

  • Special characteristics are not allowed in excel sheet

    Hi  experts,
                         Pls help me when i m loading one excel sheet containing one record with # symbol , it is loaded to PSA sucessfully
                     but loaded into cube is failed. i have already maintained special characteristics RSKC and putted # and excuteed.
                  still i m  getting  error message. other records are loaded  to cube...
    Regards
    Giri
    Edited by: Siddhes on Aug 4, 2011 1:04 PM

    Please follow the below steps.
    1.First check what you have given in t-code RSKC or check
    the table RSALLOWEDCHAR.
    Try to give CAPITAL_ALL_PLUS_HEX.Then delete the data and
    reload it.
    2.If there is some other error,thene
    delete the request from data target.
    Go to psa search for error record and correct it and reload it.
    3.If some space is coming then you
    need to write some formula to remove the
    space.
    4.You can also enabl the Error stack DTP,so that
    erreneous record will go to stack and you can manually correct
    then and reload them.
    Hope this is helpful.
    Thanks,
    Saveen Kumar

  • Image provided in server cache does not appear in Excel download

    Hello WD Experts!
    I have a Web Dynpo (ABAP) ALV table with material master data. One column contains the image of the product or a "sorry, no picture" image, if no specific material image exists.
    The images are not available as MIME objects, hence I load the images from an external source and push them into the server cache using the method cl_http_server=>server_cache_upload( ... ). The lifetime for the cache is defined with 600. The "sorry, no picture" -image is a MIME object.
    All works fine... except for the download to Excel. Only the "sorry, no picture" -image appears. The others gets replaced by a placeholder icon which looks similar to those frequently seen in emails or slow web pages.
    Why don't the cached images get downloaded to Excel???
    Best Regards
    Bodo

    I would imagine this is a limitation of the Excel converter functionality within the ALV. It is probably designed to only download images that come directly from the MIME repository.  The logic between the two approaches would be very different.  Images in the MIME repository can be read from the database using the MIME APIs. To read the images from the Server Cache, the ABAP program would have to make an HTTP request to the cache (using CL_HTTP_CLIENT).  I'm guessing the convert logic simply doesn't do this.
    The other option is - is your lifetime high enough? 600 seconds seems like it would be long enough - at least for a test - there is no guarentee that in a real application the user might not display the data for more than 10 minutes before downloading. Probably not your problem, but something you might still consider if you get this working.
    My only suggestion is that you would have to create your own excel conversion instead of using the ALV one.

Maybe you are looking for

  • Macbook Pro 2011 won't boot, grey screen, 10.9.4

    Hi guy I hope you are all well, I have been running a 1.1 MBP Santa Rosa since 2010 and decided it was time for an update, so in January I got hold of a 2008 Penrhyn model. That was running Mavericks absolutely fine until 2 weeks after 10.9.3 when it

  • Can't swivel an image

    When I go to swivel an image more than ~40-50 degrees in PP, it turns the whole graphic black, in both the preview pane and when I export it. Please tell me I'm doing something wrong, and that it isn't an issue with PP. It will make a project I'm doi

  • Log-Entry: 'Warning: LDAP: query accept could not be found'

    I found many entries like this: Thu Mar 13 12:45:30 2008 Warning: LDAP: query accept could not be foundin our log 'mail.current'. We don't use LDAP (anymore). Where do I have to check if we have missed something what should be de-activated? In the GU

  • Hp 8250 printer printing wrong colors

    I have an HP Photosmare 8200 series model 8250 printer it is printing in the wrong colors red is coming up yellow blue is green The ink cartridges are all full and they are genuine HP.  Any suggesttions on what could be wrong.

  • Having trouble with opening homesharing for photos with apple TV

    Everytime I open homesharing for apple TV in Itunes I just get the grey spinning wheel.  I have my photos on the wireless time capsule with wifi