SAP Certification
SAP Download
SAP Companies India
SAP Books
SAP JOBS
SAP jobs in India
SAP ABAP jobs in India
SAP BASIS jobs in India
SAP BI jobs in India
SAP CRM jobs in India
SAP FICO jobs in India
SAP Fresher jobs in India
SAP HR jobs in India
SAP MM jobs in India
SAP PM jobs in India
SAP PP jobs in India
SAP SD jobs in India
SAP XI jobs in India
|
DEFINE (ABAP Keyword) introduction and details and syntax
Show Full Details
DEFINE
Basic
form DEFINE macro.
Effect Defines a program component (macro) under
the name macro . It must consist only of ABAP/4 statements and is expanded at
compilation time.
A macro should always be concluded with the
END-OF-DEFINITION statement.
In the definition, you can use &n to
reference positional parameters (n = 0 .. 9). When the macro is called, &n
is replaced by the n-th actual parameter.
Example Define a macro
called "++" for use in the program.
DEFINE ++. ADD 1 TO
&1. END-OF-DEFINITION.
DATA: NUMBER TYPE I VALUE 1. ... ++
NUMBER.
Notes In general, it is better to use subroutines
(FORM , FUNCTION ) rather than macros because subroutines - unlike macros - are
supported by all the ABAP/4 Development Workbench tools (including debugging,
runtime analysis, runtime error handling, ...). You cannot nest macro
definitions.
Show Most Readed SAP Tutorials
Most readed SAP Tutorials
Show Latest Added SAP Tutorials
Latest Added SAP documents
|
"Site covers most of the SAP technical and functional tutorials, articles, interview questions and PDF study materials . List and details of SAP transaction codes ( tcodes ), Tables, report names, Bapi, ABAP programming syntax and keywords are also available in the site.
Information on SAP Certification and training, latest SAP jobs in India, ABAP interview questions are useful for SAP professionals seeking for a career in SAP as a fresher or experienced.ABAP tutorial downloads on BDC, LSMW, BAPI, ALE, IDOC, Smartforms, Sapscripts etc etc are also added.Now you can read from this page about DEFINE (ABAP Keyword)" |