MULTIPLY (ABAP Keyword)

MULTIPLY is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.

MULTIPLY


Basic form
MULTIPLY n1 BY n2.

Effect
Multiplies the contents of n1 by the contents of n2 and places the result in n1 .

This is equivalent to: n1 = n1 * n2.

Example

DATA: DAYS_PER_YEAR TYPE P VALUE 365,
HOURS_PER_DAY TYPE F VALUE '24.0',
MINUTES_PER_YEAR TYPE I VALUE 1.
MULTIPLY MINUTES_PER_YEAR BY DAYS_PER_YEAR.
MULTIPLY MINUTES_PER_YEAR BY HOURS_PER_DAY.
MULTIPLY MINUTES_PER_YEAR BY 60.


MINUTES_PER_YEAR now contains 525600.

Note
The details about conversions and performance given under COMPUTE also apply to MULTIPLY .

Note
Runtime errors

BCD_BADDATA : P field contains no correct BCD format
BCD_FIELD_OVERFLOW : Result field too small (type P )
BCD_OVERFLOW : Overflow with arithmetic operation (type P )
COMPUTE_INT_TIMES_OVERFLOW : Whole number overflow with multiplication

Most readed SAP Tutorials

Latest Added SAP documents

Custom Search
ABAP Tutorials ABAP Syntax BAPI SAP Jobs SAP Glossary SAP Netweaver SAP XI SAP Download SAP Interview questions

Complete SAP Study materials | SAP JOBS | PDF Tutorials   List of SAP Companies India

Google-Translate-Chinese (Simplified) BETA Google-Translate-English to French Google-Translate-English to German Google-Translate-English to Italian Google-Translate-English to Japanese BETA Google-Translate-English to Korean BETA Google-Translate-English to Russian BETA Google-Translate-English to Spanish

All of the product names here are trademarks of their respective companies. The site sapbrainsonline.com no way affiliated with SAP AG. Use information on this site at your own risk. Information furnished in the site is collected from various sites and posts from users. This site does not host any files on its server. If any compliants about the posts please contact us at sapbrain.support@gmail.com

Sitemap
web counter