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
|
DIVIDE-CORRESPONDING (ABAP Keyword) introduction & syntax details
Show Full Details
DIVIDE-CORRESPONDING
Basic
form DIVIDE-CORRESPONDING rec1 BY rec2.
Effect Interprets rec1 and
rec2 as field strings, i.e. if rec1 and rec2 are tables with header lines, the
statement is executed for their header lines.
Searches for all sub-fields
that occur both in rec1 and rec2 and then generates, for all field pairs
corresponding to the sub-fields ni , statements similar in the following
form:
DIVIDE rec1-ni BY rec2-ni.
The other fields remain
unchanged.
With more complex structures, the complete names of the field
pairs must be identical.
Example
DATA: BEGIN OF
MONEY, VALUE_IN(20) VALUE 'German marks'. USA TYPE I VALUE 100, FRG
TYPE I VALUE 200, AUT TYPE I VALUE 300, END OF MONEY, BEGIN OF
CHANGE, DESCRIPTION(30) VALUE 'DM to national currency'. USA TYPE F
VALUE '1.5', FRG TYPE F VALUE '1.0', AUT TYPE F VALUE '0.14286', END OF
CHANGE. DIVIDE-CORRESPONDING MONEY BY CHANGE. MONEY-VALUE_IN = 'National
currency'.
The above DIVIDE-CORRESPONDING statement is equivalent to
the following three statements:
DIVIDE MONEY-USA BY
CHANGE-USA. DIVIDE MONEY-FRG BY CHANGE-FRG. DIVIDE MONEY-AUT BY
CHANGE-AUT.
Note All fields of the same name are divided,
whether numeric or not. The conversions performed are the same as those for
DIVIDE and similar runtime errors can occur. Related DIVIDE ,
MOVE-CORRESPONDING , ADD-CORRESPONDING , SUBTRACT-CORRESPONDING ,
MULTIPLY-CORRESPONDING
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 DIVIDE-CORRESPONDING (ABAP Keyword)" |