Ansicht
Dokumentation
SAPBC415_OFFINT_D3 - Off.-Int.: Sep. window; automat. save at ON_CLOSE_EVENT
CL_GUI_FRONTEND_SERVICES - Frontend Services BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Description
This program demonstrates Office Integration techniques using ABAP Objects interfaces.
The Office application is active in its own window.
Specific program functions:
When the user closes the Office application or the document, the
event ON_CLOSE_EVENT is returned to the ABAP program. A special method then ensures that the document is saved on the desktop. The following steps are necessary to process an office event in ABAP:
1. The close event must be registered in the START_FACTORY method.
2. A class to process the event must be defined and implemented in the program.
3. The required processing must be assigned to the relevant document.
4. The function module CONTROL_DISPATCH
must be called to pass the function code (this must be called in the PAI event of all screens
affected). The function module interprets the function code returned by SAPgui to the ABAP program, and identifies the event.
Below are the most important program statements:
a) Method calls:
--> Method START_FACTORY of instance
b) Class definitions and implementation:
--> CLASS
PUBLIC SECTION.
CLASS-METHODS:
FOR EVENT ...
ENDCLASS.
CLASS
METHOD
...
CALL METHOD
...
CALL METHOD
...
ENDMETHOD.
ENDCLASS. ( Step 2 )
c) SET HANDLER
d) Function module:
IF OKCODE(1) = '%'.
CALL FUNCTION 'CONTROL_DISPATCH'
EXPORTING
FCODE = OKCODE
EXCEPTIONS
CB_NOT_FOUND = 1
OTHERS = 2.
ENDIF.
Requirements
Output
Example
ROGBILLS - Synchronize billing plans General Material Data
This documentation is copyright by SAP AG.
Length: 2093 Date: 20240531 Time: 173155 sap01-206 ( 30 ms )