Use of PIVOT_FIELD_TAB in FM - EXCEL_OLE_STANDARD_DAT

Hi,
In the Function Module 'EXCEL_OLE_STANDARD_DAT' ,in the TABLES---PIVOT_FIELD_TAB
is present.
can anyone explain me what will be the result or use of using the PIVOT_FIELD_TAB.
Thanks in Advance,
Kiranmai.

Hai Kiranmai,
I hope the following link will help you,
Create Pivot Table in Background using a Batch Job
Regards,
Harish

Similar Messages

  • What is the use of PIVOT_FIELD_TAB in FM - EXCEL_OLE_STANDARD_DAT

    Hi,
    In the Function Module 'EXCEL_OLE_STANDARD_DAT' ,in the TABLES---PIVOT_FIELD_TAB
    is present.
    can anyone explain me what will be the result of using the PIVOT_FIELD_TAB.
    Thanks in Advance,
    Kiranmai.

    Hai Kiranmai,
    I hope the following link will help you,
    Create Pivot Table in Background using a Batch Job
    Regards,
    Harish

  • Password for pdf file

    Hi,
    I am sending the output of the smartform as a pdf file and email to the customer.  I need to protect the pdf file with a password.  Please let me know if we can set the password for the pdf file in the driver program?
    Points will be given for useful answer.

    hi
    good
    FM EXCEL_OLE_STANDARD_DAT has an import parameter:
    VALUE(PASSWORD) DEFAULT SPACE
    Just set password to the pwd you want.
    And the parameter
    VALUE(PASSWORD_OPTION) TYPE I DEFAULT 0
    reward point if helpful.
    thanks
    mrutyun^

  • Getting an error when using fm 'excel_ole_standard_dat'

    Hi All,
    I am getting an error when trying to generate an excel file with the data in the internal table using fm 'Excel_ole_standard_dat'.
    can anybody help me in this.
    Thankyou,
    Prasanna

    Hi Prasanna
    Could you tell me what's the sy-subrc code you are getting ?
    Pushpraj

  • Error in generating Excel using EXCEL_OLE_STANDARD_DAT

    Hi,
    While generating an Excel using EXCEL_OLE_STANDARD_DAT, the files are getting genrated but it also gives an
    "OLE_OBJECT_METHOD_ERROR" (only on some PC's).
    Why do we get this error and how will I be able to resolve it ?
    Thanks in advance,
    Archana

    Hi Archana,
    Have a look at OSS Notes 104165 and 691875. Hope these notes give some inputs.
    Thanks
    Lakshman

  • Fetch excel file from app. server using open dataset...

    Hello Experts,
    Our functional consultant is asking me if it possible to get an excel file from the
    application server file using OPEN dataset and in background mode? If yes, Please tell me on how to do this.
    Thank you guys and take care!

    Hi Viraylab,
    to download this the procedure:
    you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.
    this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.
    Here are some of the parameters:
    file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?
    data_tab: Name of the internal table that should be uploaded to Exvcel
    fieldnames: Internal tabel with column headers
    How to build the field names table:
    data: begin of i_fieldnames occurs 20,
    field(60), end of i_fieldnames.
    i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.
    i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.
    to upload follow this:
    OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET dsn INTO itab-field.
    IF sy-subrc = 0.
    APPEND itab.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    [/code]Rob
    or Try this function module.
    FILE_READ_AND_CONVERT_SAP_DATA
    pass 'XLS' to I_FILEFORMAT..
    Dont forgot to Reward me points .....All the very best....
    Regards,
    Sreenivasa sarma K.

  • I am using GUI_DOWNLOAD FM to download my internal table entries into .xls

    Hi
    I am using GUI_DOWNLOAD FM to download my internal table entries into .xls file. but it's not download total records in final table.
    in debugging it showing total records.
    exporting:
    filename
    filetype
    field-suprater
    header
    tables
    data_tab
    fieldnames
    plz help me.
    thanks
    Sankar

    Hi
    Use as below:
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
    EXPORTING
    file_name = p_file " path offile where u need to download
    CREATE_PIVOT = 0
    DATA_SHEET_NAME = ' '
    PIVOT_SHEET_NAME = ' '
    PASSWORD = ' '
    PASSWORD_OPTION = 0
    TABLES
    PIVOT_FIELD_TAB =
    data_tab = int_data "internal table with data
    fieldnames = int_head "internal table with header
    EXCEPTIONS
    file_not_exist = 1
    filename_expected = 2
    communication_error = 3
    ole_object_method_error = 4
    ole_object_property_error = 5
    invalid_filename = 6
    invalid_pivot_fields = 7
    download_problem = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Sreeram

  • Using Function modules in  BSP - Operations on Service Orders

    Hi,
    We are creating a custom BSP application for scheduling resources and updating appointments for resource personnel.
    The process is as follows:
    From the list of Service Orders with some product added as line item, with status OPEN, the user selects a SO and makes an online payment.
    Returning from the site, the Status of the Service order is changes to Released. Following this, the available resource is assigned to the Service order and the appointment details are populated in the Service Order. Subsequently, another line item of the Service order is set to Released.
    We are using the following function modules in the order as given below:
    To set status of a line item to Released
    1)     CRM_ORDER_INITIALIZE
    2)     CRM_STATUS_SET_INTERN_OW
    3)     CRM_STATUS_SAVE_OW
    4)     COMMIT WORK
    To assign a resource to the Service Order
    1)     WFD_RES_GET_AVAIL
    2)     CRM_ORDER_INITIALIZE
    3)     WFDS_GET_ASSIGNMENT_TO_SO_ITEM
    4)     CRM_ORDER_INITIALIZE
    5)     WFDS_CRM_SRV_ASSIGNMENT_MODIFY
    6)     WFDS_SAVE
    7)     WFD_TRANSACTION_COMMI
    To update the assignment dates in Service Order
    1)     CRM_ORDER_DEQUEUE
    2)     CRM_ORDER_INITIALIZE
    3)     CRM_ORDER_INIT_OW
    4)     CRM_ORDER_MAINTAIN
    5)     CRM_ORDER_SAVE
    6)     BAPI_TRANSACTION_COMMIT
    To set status of a second line item to Released
    1)     CRM_ORDER_INITIALIZE
    2)     CRM_STATUS_SET_INTERN_OW
    3)     CRM_STATUS_SAVE_OW
    4)     COMMIT WORK
    Using these FM’s in a report program or even in Debug mode works fine, except in the BSP’s where the behavior is random.
    The issue that we are facing:
    1)     Calling the Function modules sequentially, it takes time to update the order after execution of a BAPI/RFC and at times the order gets locked although we are using the Function Module CRM_ORDER_DEQUEUE after a logical block, and the Service Order is un-available for subsequent actions
    2)     At times, the Steps get executed correctly
    3)     At times the Steps get executed correctly after adding certain delay after each logical block of steps, but at times the time is not enough for the order to get updated.
    Can someone help us solve this un-predictable behavior?
    If someone has previously worked on such a requirement, please provide inputs on the scenario.
    Also, please let me know if there is a fail-proof procedure to ensure that the steps get executed completely and also if there is a need to use alternative BAPI’s in a specific order.
    Thanks,
    Regards,
    Siddhartha Jain

    I am afraid you would have :
    - to copy the standard FM 'MS_EXCEL_OLE_STANDARD_DATA' (it is wrapped up into EXCEL_OLE_STANDARD_DAT)
    - to comment this line in this newly created FM
      SET PROPERTY OF obj_ex_app 'Visible' = 1.
    - to call your own 'ZMS_EXCEL_OLE_STANDARD_DATA'
    That should do the trick.

  • Function EXCEL_OLE_STANDARD_DAT Dump CX_SY_CONVERSION_NO_NUMBER

    Hi everybody,
    We are migrating R/3 from 4.6 to 5.0, when executing Z's programs using function 'EXCEL_OLE_STANDARD_DAT' in the new version it ends in a short dump CX_SY_CONVERSION_NO_NUMBER, that's because de field of the data table for the column in excel is an integer, and de the header for this column is text, can anybody help with this problem.
    Thanks in advance,
    Julio Cesar

    Please refer to Note 721793 - Problems with MS_EXCEL_OLE_STANDARD_DAT.
    - Guru
    Reward points for helpful answers

  • EXCEL_OLE_STANDARD_DAT with leading zeros required

    when i am using this function moduel   EXCEL_OLE_STANDARD_DAT  in the program it is working fine by downloading  into excel file. but my probelm in the internal table fora field it is showing with Zeros before a field, but when i am downloading into excel i am  unable to see that zeros for that field.
    is thier any solution for this type requirement.
    one more thing is  i am not using the OOPS concept here.

    Try this code:-
    REPORT  ZOLE_ABAP.
    INCLUDE ole2incl.
    *&   TYPES                                            *
    TYPES: BEGIN OF ty_spfli,
           kunnr TYPE kna1-kunnr,
           land1 TYPE kna1-land1,
           NAME1 TYPE KNA1-NAME1,
           ORT01 TYPE KNA1-ORT01,
           REGIO TYPE KNA1-REGIO,
           ADRNR TYPE KNA1-ADRNR,
           END OF ty_spfli.
    TYPES: BEGIN OF ty_titles,
           title(20) TYPE c,
           field(20) TYPE c,
           END OF ty_titles.
    *&   INTERNAL TABLES                                  *
    DATA: t_spfli TYPE STANDARD TABLE OF ty_spfli,
          t_titles TYPE STANDARD TABLE OF ty_titles.
    *&   FIELD-SYMBOLS                                    *
    FIELD-SYMBOLS: <fs_spfli> LIKE LINE OF t_spfli,
                   <fs_titles> LIKE LINE OF t_titles,
                   <fs> TYPE ANY.
    *&   VARIABLES                                        *
    DATA: w_tabix TYPE sy-tabix,
          w_titles TYPE sy-tabix,
          w_line TYPE sy-tabix,
          w_field TYPE string,
          filename TYPE string,
          path TYPE string,
          fullpath TYPE string.
    DATA: data_titles TYPE REF TO data.
    DATA: e_sheet TYPE ole2_object,
          e_activesheet TYPE ole2_object,
          e_newsheet TYPE ole2_object,
          e_appl TYPE ole2_object,
          e_work TYPE ole2_object,
          e_cell TYPE ole2_object,
          e_color TYPE ole2_object,
          e_bold TYPE ole2_object.
    *&   SELECTION-SCREEN                                 *
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    PARAMETERS: p_file TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b1.
    *&  START-OF-SELECTION                                *
    START-OF-SELECTION.
      PERFORM get_titles.
      PERFORM get_data.
      PERFORM create_excel.
    *& AT SELECTION-SCREEN                                *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title      = 'Select archivo'
          default_extension = 'xls'
          file_filter       = '*.xls'
        CHANGING
          filename          = filename
          path              = path
          fullpath          = fullpath.
      IF sy-subrc EQ 0.
        p_file = fullpath.
      ENDIF.
    *&      Form  get_titles                              *
    FORM get_titles.
      CREATE DATA data_titles TYPE ty_titles.
      ASSIGN data_titles->* TO <fs_titles>.
      <fs_titles>-title = 'Customer Number 1'.
      <fs_titles>-field = 'KUNNR'.
      APPEND <fs_titles> TO t_titles.
      <fs_titles>-title = 'Country Key'.
      <fs_titles>-field = 'LAND1'.
      APPEND <fs_titles> TO t_titles.
      <fs_titles>-title = 'Name 1'.
      <fs_titles>-field = 'NAME1'.
      APPEND <fs_titles> TO t_titles.
      <fs_titles>-title = 'City'.
      <fs_titles>-field = 'ORT01'.
      APPEND <fs_titles> TO t_titles.
      <fs_titles>-title = 'Region'.
      <fs_titles>-field = 'REGIO'.
      APPEND <fs_titles> TO t_titles.
      <fs_titles>-title = 'Address'.
      <fs_titles>-field = 'ADRNR'.
      APPEND <fs_titles> TO t_titles.
    ENDFORM.                    "get_titles
    *&      Form  get_data                                *
    FORM get_data.
      SELECT KUNNR LAND1 NAME1 ORT01 REGIO ADRNR
      INTO TABLE t_spfli
      FROM KNA1
      WHERE LAND1 EQ 'IN'
      and KUNNR EQ '0000700008'.
    ENDFORM.                    " get_data
    *&      Form  create_excel                            *
    FORM create_excel.
      w_line = 1.
      CREATE OBJECT e_appl 'EXCEL.APPLICATION'.
      SET PROPERTY OF e_appl 'VISIBLE' = 1.
      CALL METHOD OF e_appl 'WORKBOOKS' = e_work.
      CALL METHOD OF e_work 'Add' = e_work.
      GET PROPERTY OF e_appl 'ActiveSheet' = e_activesheet.
      SET PROPERTY OF e_activesheet 'Name' = 'Customer Details'.
      LOOP AT t_spfli ASSIGNING <fs_spfli>.
        w_tabix = sy-tabix.
        w_line = w_line + 1.
        LOOP AT t_titles ASSIGNING <fs_titles>.
          w_titles = sy-tabix.
          CALL METHOD OF e_appl 'Cells' = e_cell
            EXPORTING
              #1 = 1
              #2 = w_titles.
          SET PROPERTY OF e_cell 'Value' =  <fs_titles>-title.
          GET PROPERTY OF e_cell 'Interior' = e_color.
          SET PROPERTY OF e_color 'ColorIndex' = 35.
          GET PROPERTY OF e_cell 'Font' = e_bold.
          SET PROPERTY OF e_bold 'Bold' = 1.
          CALL METHOD OF e_appl 'Cells' = e_cell
            EXPORTING
              #1 = w_line
              #2 = w_titles.
          CONCATENATE '<fs_spfli>-' <fs_titles>-field
          INTO w_field.
          ASSIGN (w_field) TO <fs>.
          SET PROPERTY OF e_cell 'Value' = <fs>.
          GET PROPERTY OF e_cell 'Interior' = e_color.
          SET PROPERTY OF e_cell 'ColumnWidth' = 20.
          SET PROPERTY OF e_color 'ColorIndex' = 0.
          GET PROPERTY OF e_cell 'Font' = e_bold.
          SET PROPERTY OF e_bold 'Bold' = 0.
        ENDLOOP.
      ENDLOOP.
      CALL METHOD OF e_work 'SAVEAS'
        EXPORTING
          #1 = p_file.
      CALL METHOD OF e_work 'close'.
      CALL METHOD OF e_appl 'QUIT'.
      FREE OBJECT e_appl.
    ENDFORM.                    " create_excel

  • Add header line to excel sheet when using FM RH_START_EXCEL_WITH_DATA

    Hi
    I'm using FM RH_START_EXCEL_WITH_DATA to download an internal table to EXCEL. But when excel is started it's without a header line.
    What I would like to do, is to take the field-names/field-text from the abap dictionary, and use them as the header line. How do I achieve this ?
    Regards
    Morten Nielsen

    Hi ,
    See this sample code.
    Tables : zacg_cca,zacg_exsh.
    data: P_file like RLGRAP-FILENAME.
    Data: Begin of it_header occurs 0,
          Header(15) ,
          end of it_header.
    Data : begin of it_final occurs 0,
           ccode type zacg_cca-ccode,
           mat_cd type zacg_cca-mat_cd,
           ingr_desc type zacg_cca-ingr_desc,
           conc type  zacg_cca-conc,
           quantity type zacg_cca-quantity,
           percqty type zacg_cca-percqty,
           flag ,
           APP_DATE type zacg_cca-app_date,
           rsamnos type zacg_cca-rsamnos,
           end of it_final.
           SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-000.
           select-options : s_Date for zacg_cca-app_date.
           SELECTION-SCREEN  : END OF BLOCK blk.
           it_header-Header = 'Samp_code'.
           Append it_header.
           it_header-Header = 'Mat_code'.
           Append it_header.
           it_header-Header = 'Ingr_Desc'.
           Append it_header.
           it_header-Header = 'Conc'.
           Append it_header.
           it_header-Header = 'Quan'.
           Append it_header.
           it_header-Header = 'Perc'.
           Append it_header.
           it_header-Header = 'Flag'.
           Append it_header.
           it_header-Header = 'Date'.
           Append it_header.
           it_header-Header = 'Rsamnos'.
           Append it_header.
             it_header-Header = 'Mat_code'.
           Append it_header.
           select ccode
                  mat_cd
                  ingr_desc
                  conc
                  quantity
                  percqty
                  app_date
                  rsamnos
                  from zacg_cca  into corresponding
            fields of table
           it_final where  zacg_cca~app_date in s_date.
           loop at it_final.
           it_final-flag = 'T'.
           modify it_final.
           it_final-quantity = it_final-quantity * 2 .
           Modify it_final.
           endloop.
           CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
             EXPORTING
               FILE_NAME                       = 'E:\IT\P_FILE'
             CREATE_PIVOT                    = 0
             DATA_SHEET_NAME                 = ' '
             PIVOT_SHEET_NAME                = ' '
             PASSWORD                        = ' '
             PASSWORD_OPTION                 = 0
            TABLES
             PIVOT_FIELD_TAB                 =
              DATA_TAB                        = it_final[]
              FIELDNAMES                      = it_header[]
            EXCEPTIONS
              FILE_NOT_EXIST                  = 1
              FILENAME_EXPECTED               = 2
              COMMUNICATION_ERROR             = 3
              OLE_OBJECT_METHOD_ERROR         = 4
              OLE_OBJECT_PROPERTY_ERROR       = 5
              INVALID_PIVOT_FIELDS            = 6
              DOWNLOAD_PROBLEM                = 7
              OTHERS                          = 8
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Regards
    ABG

  • Create Pivot Table in Background using a Batch Job

    I'm using 4.7 and I have a request to create a daily batch job that will run an ALV report and create a pivot table. How do I create the pivot table? I tried using the FM 'EXCEL_OLE_STANDARD_DAT' but I get a 'File do not exist' message. Tried looking at the documentaion of this fm but it doesn't have any. If anybody can explain to me how this function works, that would really be great. Or if you have a better solution, that would be even greater than great.
    Thanks in advance!

    Hello Liz,
    I think it is not possible because to generate an Excel file, SAP needs the Excel program.
    But when the program is executed in backgroud, SAP server does not have a way to access Excel program to generate the file.
    Hope I am wrong...
    Regards,
    Mauricio

  • Using Existing OLE Excel Object

    Hi
    I have created an ole excel object to download my report data.
    My requirement is to use an existing excel object.
    Existing OLE object would act like a template with the Header Information and my company's logo in it.
    Can anyone suggest suitable procedures for the same.
    AK

    I dont know more about it.
    Just have look below function module.
    <b>EXCEL_OLE_STANDARD_DAT</b> Just calls MS_EXCEL_OLE_STANDARD_DAT
    <b>MS_EXCEL_OLE_STANDARD</b>_DATDownloads internal table and opens it in MS Excel
    <b>KCD_EXCEL_OLE_TO_INT_CONVERT</b> Uploads an *.xls file to internal table (max cell length = 32).
    <b>ALSM_EXCEL_TO_INTERNAL_TABLE</b> the same as KCD_EXCEL_OLE_TO_INT_CONVERT but max cell length = 50
    <b>FTBU_START_EXCEL</b> just [download internal table to file and] start Excel (w/o OLE).
    regards
    vinod

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

Maybe you are looking for

  • My macbook pro and iphone4 after newest ios update has had wifi issues, very very snail pace slow

    um i recently last week? updated my macbook pro and my iphone 4 to lastest ios, and ever since then my wifi has been slow, by this i mean, when i click anything, it takes a long long time to load a page, and even my facebook (arrived via bookmarks ba

  • "Warm transfers" to a queue using ad-hoc conferencing

    Hi all, Just wondering if someone can help. We have an issue with a UCCX 7 deployment where an agent in a queue initiates what he refers to as a warm transfer to another queue. Essentially he he is transferring a caller to another queue by initiating

  • "Unable to Sign In" when attempting to rent TV shows/Movies

    I'm quite happy with this new device with one tiny exception. I get an "Unable to Sign In" when attempting to make a rental from the Apple TV. I can rent on my computer and watch on the TV, but I'd like to be able to rent directly from Apple TV. I've

  • Command-Option-H not working to hide other apps

    Just got a new (refurbished) iMac, with 10.8.3 on it. Transferred everyting from my old iMac without a hitch. There's a weird thing happnening, however. Command-Option-H no longer hides others. It seems to cycle through open apps. But only some of th

  • Can't e-mail photos from iPhoto.

    I have gone thru all photo library aids and cannot repair iPhoto permissions. So I have trashed iPhoto and re-installed iPhoto from the App Store. But I still get the message "The email server didn't recognize your username/password combination." Is