Change Headings in Excell sheet in BSP Layout

Hi,
How to Change Headings in Excell sheet in BSP Layout?
Thanks
Srinivas

Hi Anhubav,
R/3 data sent to BW report -> excell sheet displaying in Bps layout in BSP Layout using Java script code Excell sheet layout headings are how to find out
Thanks
Srinivas

Similar Messages

  • Reg:Headings in Excel sheet

    Hi all,
    How to place headings in Excel sheet when we are downloading
    the item details. Can any one help me to resolve this problem.

    Hi Radhika ,
    Try like this
    PARAMETERS : p_dload TYPE rlgrap-filename.
    DATA : w_dload TYPE string.
    TYPES : BEGIN OF ty_kna1,      " structure
            kunnr TYPE kna1-kunnr,
            name1 TYPE kna1-name1,
            ort01 TYPE kna1-ort01,
            land1 TYPE kna1-land1,
            END OF ty_kna1.
    TYPES : BEGIN OF ty_head,      " structure
            kunnr(20),
            name1(20),
            ort01(20),
            land1(20),
            END OF ty_head.
    DATA :  it_kna1 TYPE TABLE OF ty_kna1.  "table to download records
    DATA : wa_hedtab TYPE ty_head,
           it_hedtab TYPE TABLE OF ty_head. " table for heading
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dload.
      PERFORM f_dload.
    START-OF-SELECTION.
      PERFORM f_header.
      PERFORM f_extract.
      PERFORM f_download.  " download file to presentation server
    *&      Form  f_dload
    FORM f_dload .
      CALL FUNCTION 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
        IMPORTING
          file_name           = p_dload
    ENDFORM.                    " f_dload
    *&      Form  f_extract
    FORM f_extract .
      SELECT kunnr
              name1
              ort01
              land1 FROM kna1 INTO TABLE it_kna1 .
    ENDFORM.                    " f_extract
    *&      Form  f_download
    FORM f_download .
      w_dload = p_dload.
      CALL FUNCTION 'GUI_DOWNLOAD'           " downloading header here
          EXPORTING
    *   BIN_FILESIZE                    =
            filename                        = w_dload
         filetype                        = 'ASC'
    *   APPEND                          = ' '
         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                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
          TABLES
            data_tab                        = it_hedtab
    *   FIELDNAMES                      =
       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           = 8
         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  NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'     "-----> downloading data here
        EXPORTING
    *   BIN_FILESIZE                    =
          filename                        = w_dload
       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                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
        TABLES
          data_tab                        = it_kna1
    *   FIELDNAMES                      =
    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           = 8
       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  NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " f_download
    *&      Form  f_header
    FORM f_header .
      wa_hedtab-kunnr = 'Customer No'.
      wa_hedtab-name1 = 'Name'.
      wa_hedtab-ort01 = 'city'.
      wa_hedtab-land1 = 'Country'.
      APPEND wa_hedtab TO it_hedtab.
    ENDFORM.                    " f_header
    Thanks & Regards

  • Adding Headings to excel sheet

    Hi all,
    I'm using a .CSV format file for the import process in FDM. I want to give some headings to my sheet which should not cause any problem during import process. Now, I'm not using any kind of Headings in my .CSV format file except column names and my data. Please help me :)
    Thanks in adv !

    Hi put whatever headings you want in your file, it shouldn't be a problem. My sugesstion would be to make the first character of the first field a unique character like a '!' which isn't used as the starting character for other data rows. You can then do a check for this in the import format and Skip all lines that match that criteria.
    Edited by: SH on Nov 17, 2011 11:33 AM

  • Alv and excel sheet out put.

    hi friends,
    now i am working on sales and purchase order report. For this i have created three radio button on selection screen one for sales 2nd for purchase and 3rd for both. when i click sales radio button it is going to display only sales data in ALV out put list as well as in EXCEL sheet.
    problem:-
    Some layout fileds (out put fields) i am storing in VARIENT and when i have passed this VARIANT in a SELECTION-SCREEN so here the output is ok for me, and i am unable to display these same fields in EXCEL sheet for this Please could u tell that how we do this. please send the logic for this.
    thands and regards.
    sagi.

    Hi Amol,
    you are not getting me ...
    see your itab will have all the fields irrespective of variant used. so you can directly use itab to download.
    i guess you are using alv tool bar option to download.
    but i am telling to use your own button to download the report using your own button with GUI_DOWNLOAD Fm.
    for this you pass your ITAB and and then give the file name then this will save all the fields to excel file.
    Regards
    vijay

  • Changing layout into excel sheet.

    Hi experts's,
    In a ALV report (not OOP's concept) i want to display changing layout fields in EXCEL sheet. please send if you have sample program.
    please suggest how to solve this problem.
    Thanks and regard
    pavan.

    Hi experts's,
    In a ALV report (not OOP's concept) i want to display changing layout fields in EXCEL sheet. please send if you have sample program.
    please suggest how to solve this problem.
    Thanks and regard
    pavan.

  • ALV layout issue in excel sheet

    Hi all,
    When i executed my report, it will send the output  data in excel format to my email id.
    It is  ALV report. When i changed the layout , the layout change is happening in report output, but in my excel sheet chagned layout set was not coming. It is coming old format only.
    Is there any FM to handle the dynamic  layouts
    please help me in this.
    regards,
    Ajay Ram

    Hi Ajay
    When you change the layout, its done in the ALV o/p or rather in foreground.
    You can't make this layout change be reflected in the excel sheet that is made thru background job.
    One option is to save the layout you want and then before executing the ALV report, load the layout you want by using FMs
    REUSE_ALV_VARIANT_DEFAULT_GET
    REUSE_ALV_VARIANT_F4
    REUSE_ALV_VARIANT_EXISTENCE
    You can get the sample codes in sdn by searching for these FMs
    Reward points if useful
    Cheers
    ~Arun

  • Downloading the ALV layout to Excel sheet

    Displaying ALV using OOPS concept.
    Dynamic internal table is passed in the
        CALL METHOD gcl_grid->set_table_for_first_display
    For downloading into Excel sheet used EXPORT->LOCAL FILE->Spread sheet
    <b>The TEXT.XLS file is not looking like as it is there in the layout.</b>
        gv_layout-cwidth_opt = 'X'.
        gv_layout-sel_mode   = 'A'.
        CALL METHOD gcl_grid->set_table_for_first_display
          EXPORTING
       I_BYPASSING_BUFFER            =
       I_BUFFER_ACTIVE               =
       I_CONSISTENCY_CHECK           =
       i_structure_name              =
       IS_VARIANT                    =
            i_save                        = 'A'
            i_default                     = 'X'
            is_layout                     = gv_layout
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
       IT_TOOLBAR_EXCLUDING          =
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
          CHANGING
            it_outtab                     = <tabx>
            it_fieldcatalog               = gt_fieldcatalog
       IT_SORT                       =
       IT_FILTER                     =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4.
    What will be the problem? Pls. resolve this.

    Hi Sreedevi,
       1) Once you have alv report displayed in the screen.
       2) Click button 'View' ( next to print button) on application toolbar
       3) Select Excel in Place
       4) This will download the same format as of Report
    I hope your ALV have all the Standard functions in Toolbar. If not copy the status from and get the function as mentioned above.
    Program - SAPLSALV
    Status - STANDARD
    Reward points if this Helps.
    Manish

  • How to maintain the same layout in excell sheet and in the mailed version

    i have a report which gives the related sap o/p , when we chose a certain layout and trasfer the o/p to excell sheet it maintains the layout but when it comes to the emailed version (i.e., when it is emailed ) , the attachment , it is not maintaining the layout which i have chosen, can u suggest me what i need to do?

    Hello,
    it si not crear where you change the cost of the item to 90 USD?
    If you have a price of 100USD in the sales order then you should have a look in the copy control. Which pricing type is maintained here.
    If you want to take over the price from the sales order to the return order then you should maintain a pricing type which not new determine the VPRS. Then the VPRS should copied from the sales order.
    Please have a look 24832. Here is describe which pricing type is relevant to determine a new condtion.
    I hope that the information are helpful.
    Regards and have a nice day.
    Claudia

  • How to download data displayed in a BSP page into Excel sheet

    Hi,
    I'm displaying an internal table data into tableview of a BSP page. I want to provide a feature to download the tableview contents to Excel sheet from Internet Explorer.  How do I do it?  Can someone guide me.
    Kedhar.

    Hi Kedhar,
    welcome to SDN. You should try to use the Search functionality here. Then you will find this Weblog:
    <a href="/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table">Creating a BSP Extension for Downloading a Table</a>.
    You can award points if this answer was helpfull.
    Regards
    Gregor

  • Problem with Changing Data while Import through Excel Sheet

    Hi Experts,
    I am new to SAP LUMIRA and I am facing an issue with it. Actually, I am importing the data for analysis from an Excel sheet into SAP LUMIRA. I am able to prepare the visualization in the first go. But If I am changing the number of columns in the excel sheet afterwards (that may occur in normal circumstances where data is dynamic) and then refreshing the LUMIRA dashboard, it fails. Please can you tell me about a possible mistake or is it really feasible when we change data afterwards and then refresh the dashboards once again.
    Looking forward to your answers.
    Regards,
    Aman

    What is the error message?
    Can you confirm you are using 1.15.1?

  • Changes in the Dimensions not reflected in the Current View and Excel Sheet

    Hi Experts,
    We're using BPC MS Platform Version 7.0.112 and we're having problems. When we make changes in the dimension members like adding members or making changes in the hierarchy or groupings, it takes time for the changes to reflect in current view or in the excel sheet. After full processing of the dimension we can see the changes we've made when we reopen the dimension member but when we try to use the member we've added in the template, it's not yet in the current view. I've already tried, full processing of all the dimensions, processing application and reassigning aql index, refresh dimension members and yet the changes we've made doesnt appear in the current view. And what's odd is that sometimes the changes we've made would appear after a day or two or nothing at all.
    What could be possibly causing this issue?
    Thanks,
    Marvin

    Hi Dzmitry,
    Thanks for your response, I'm just wondering whats causing this? We never had this issue on older versions of BPC though, so it would really help if we would know the cause of this. Basicaly when do changes in a dimension, after processing (Full Process, System Offline and Process through member sheet), we just had to set the AppSet status to available and refresh the dimension members in Excel and all the changes would already be visible.
    Thanks,
    Marvin

  • Change an Object property based on a value coming from the Excel sheet

    hi all
    i've been able to bind a value from the excel sheet to my my component
    but i want to change a property of an object in my component based on this value at the run time.
    during the design time, it works fine
    for example, if my value called "_xvisible"
    and i use to it to hide some object.
    if i set _xvisible during the design time in excel, it works fine in the run mode.
    but during the run mode, if the value got changed, there is no affect.
    thank you
    Amr

    Hi
    See the xcelsius samples present inside xcelsius SDK. there are examples describing how to bind data which will work at runtime also.
    Hope this helps
    Rush-me

  • Excel sheet generation through RFC call from a BSP application

    Hi,
      I am calling a RFC FM ( in R3)  in Event handler 'OnInputProcessing' of a BSP application in a SRM server.
    That function submits a report program which geneates a excel sheet using download FM . Excel sheet is not getting generated.
    But when i am calling this RFC FM  (in R3) from a report program ( in srm server)
    this is generating an ecel sheet.
    I want to have call RFC from BSP application.
    I tried the way of submit a program ( which contains RFC call) from BSP application ,but it is also not generating excel sheet.
    My ultimate AIM is to generate excel sheet by trigerring CALL or submit from BSP
    application.
    can any one propose solution for it.
    Useful answers will be rewarded.

    Hi,
    Which FM is it. I guess that the download generated is a SAP gui oriented solution, which will never work in a web environment
    Eddy
    PS. Reward useful answers and earn points yourself

  • How to update a custom list when there is a changes in excel sheet uploaded in document library

     
    I have created a document library in which m uploading a excel sheet with values in it and i have created a custom list with same no.of.rows and columns in the excel sheet given the same name of columns. Now i have to make sure that whatever changes i do
    in the excel sheet should automatically gets updated in custom list in sharepoint

    You'll need to create an event receiver for when you add/update a document on the source library (http://msdn.microsoft.com/en-us/library/office/gg749858(v=office.14).aspx)
    Then, with code open the excel file and count the rows. You can use the OpenXmlSDK to do that (http://www.microsoft.com/en-us/download/details.aspx?id=5124)
    Good luck ;)

  • Download date into excel sheet without changing the properties of column

    Hi All,
    I am trying to download a date field from SAP to Excel sheet. But the date is getting downloaded successfully, but the format of the column is getting changed to DATE. Is there any way to restrict it?
    I am using GUI_DOWNLOAD for downloading the data.
    I have declared the date field as CHAR10  Eg (09/13/2011) and moving the data into excel.
    Result i need : data should be downlaoded as 09/13/2011 but format of the cell should not be changed.
    Regards
    Eswar.

    Hi Eswar,
    Change the date format type dats instead of char format or any standards like erdat from vbak.Then you can in proper format.
    Regards,
    Madhu.

Maybe you are looking for

  • ABAP trial NW7 SP12: problem with SAPDB

    Hello, I have to reinstall ABAP NetWeaver7 Sp12. After the installation I can't find the c:\sapdb directory. During the first intallation system has intalled SAPDB. Probably I did something wrong durring unistall procedure. After the reinstallation I

  • Save a JTable (data+settings) ?

    I want to save a complete JTable. In my JTable I changed all, that means I changed the hight of a row and the length from a coloumn to have the best view of the data. I want to save the table with this changes. I used for the JTable the AbstractTable

  • Forwarding mail question

    Hello.. I have two e mail addresses at me.com i want to phase out one of  the e mail addresses. For the time being, can  I "instruct" mail coming into one of the mailboxes to automatically forward all incoming mail to the other e mail account..by usi

  • MBP 17" A1189 battery fail – please help access Apple Customer Support?

    Seven Steps to a "Help Me, Please?" Plea for Assistance [1] 2009 – Apple creates global, free-of-change, battery replacement program: 'MacBook and MacBook Pro Battery Update 1.2' Exchange and Repair Extension Program – for their design-flawed Apple A

  • Time Machine Won't Open on Mountain Lion

    Hi all, I am currently using time machine to back up a MacBook Air to an external 1TB hard drive. The drive is partioned into 2 halfs as it backs up my iMac as well. When I click on the Time Machine app or 'enter time machine', I am not greeted by th