Tuesday, May 10, 2016

I_OI_DOCUMENT_PROXY

General Document Interface

Each instance of the interface I_OI_DOCUMENT_PROXY administers and controls a document that you want to open in the office application. If you want to open several documents at once, you need an instance for each document.
You can create an instance of I_OI_DOCUMENT_PROXY using the interface I_OI_CONTAINER_CONTROL.
The interface exposes methods that you can use to control the document from your application program (for example, open, close, save).

They are divided into the methods that all OLE2 desktop applications provide, and those that can also be used through a standard interface. The following tables provide an overview of these methods:

  • Method:
    • OPEN_DOCUMENT
      • CALL METHOD IREF_DOCUMENT->OPEN_DOCUMENT
            EXPORTING
              DOCUMENT_TITLE 'Excel'
              DOCUMENT_URL   file path
              OPEN_INPLACE   'X'
            IMPORTING
              ERROR          IREF_ERROR.
    • GET_SPREADSHEET_INTERFACE         
      • Returns an Interface Reference
      • The return of interface Reference I_OI_SPREADSHEET IREF_SPREADSHEET is used to access the spreadsheet of excel file.
      • CALL METHOD IREF_DOCUMENT->GET_SPREADSHEET_INTERFACE
            EXPORTING
              NO_FLUSH        ' '
            IMPORTING
              ERROR           IREF_ERROR
              SHEET_INTERFACE IREF_SPREADSHEET.

No comments:

Post a Comment

SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...