cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

The use of ! in METHOD IMPORTING parameter

raffinkira
Participant
0 Kudos
757

Hi experts,

In the following code, you can see there is a ! in front of the parameter name.

 

METHODS xyzabc

IMPORTING

  !aaa TYPE i.

What's difference if ! is used or not?

 

Regards,

Ming

 

 

Accepted Solutions (1)

Accepted Solutions (1)

filiperittercruz
Explorer

The ! can be used if you have an ABAP keyword as a parameter. “Type” for example would not be allowed as a parameter. Then you need to use !type.

 

Best Regards,

Filipe

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor

To complete @filiperittercruz answer, here is the reference documentation:

!, Escape Character for Operands - ABAP Keyword Documentation (sap.com)