Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM Help Latest Questions

  • 0
  • 0
DPM125

What are Macros?

A macro is a text replacement technique defined using DEFINE … END-OF-DEFINITION. It’s similar to a preprocessor directive and is expanded at runtime.

When to use:

· For short code blocks with similar patterns (e.g., logging or repetitive output).

· Used mainly in reports.

DEFINE double_value.
  &1 = &1 * 2.
END-OF-DEFINITION.

DATA: lv_num TYPE i VALUE 5.
double_value lv_num.
WRITE: / 'Doubled:', lv_num.

Output:

Related Questions

Leave an answer

Leave an answer