AMDP Macros

light111AMDP Macros


AMDP  Macros can be used in AMDP method and the usual syntax is: “$ABAP.macro(…….)” and can be implemented in the SQLScript. It must be enclosed within double quotes and introduced with $ABAP, where the macro itself is specified with macro.

The macros are:

  • $ABAP.type  for abap type- This is used to access ABAP types in AMDP methods implemented with SQLScript.  Syntax- “$ABAP.type(  abap type )” . Ex-  “$ABAP.type( sy-mandt  )” , “$ABAP.type(  string )” , “$ABAP.type(  data element )” 

  • $ABAP.schema  for logical schema-This is used to access objects in a different database schema in AMDP methods implemented with SQLScript. Syntax- “$ABAP.schema(  schema name)”


 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s