CREATE (ABAP Keyword) introduction & details
CREATE
Basic
form
CREATE OBJECT obj class.
Addition
... LANGUAGE
langu
Effect
Generates an object of the class class .
To
address an OLE automation server (e.g. EXCEL) from ABAP/4 , the server must be
registered with SAP. The transaction SOLE allows you to assign an automation
server to a class.
The CREATE statement generates the initial object and this
can be processed further with the relevant key words.
The return code value
of SY-SUBRC indicates the result of the generation:
The return code value
is set as follows:
SY-SUBRC = 0 Object successfully
generated.
SY-SUBRC = 1 SAPGUI communication error.
SY-SUBRC = 2 SAPGUI
function call error. The OLE function modules are implemented only under
Windows.
SY-SUBRC = 3 The OLE API call resulted in an error; this is possibly
a storage space problem.
SY_SUBRC = 4 The object is not registered with
SAP.
Addition
... LANGUAGE langu
Effect
Determines the
language chosen for method and attribute names of the object class.
If no
specification is made, English is the default.
CREATE
OBJECT
Example
Generate an EXCEL object.
INCLUDE
OLE2INCL.
DATA EXCEL TYPE OLE2_OBJECT.
CREATE OBJECT EXCEL
'Excel.Application'.
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases: - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0