Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

red TYPE statement in ABAP

Former Member
0 Likes
405

has anyone seen this format in ECC 5.0 ...

TYPE pernr#TYPE pa0000-pernr. "Personnel number

In the editor it is displayed in red.

many thanks, john

2 REPLIES 2
Read only

former_member186741
Active Contributor
0 Likes
357

could 'type' be a macro? what happens if you double click on pernr#TYPE?

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
357

Wow, you wouldn't think that you could use a reserved word in a macro def. This really is not a good thing. I'm with Neil, it could be a macro.



report zrich_0001.

data: pernr#type(10) type c,
      pa0000-pernr type pa0000-pernr.

define type.

write:/ &1, &2.

end-of-definition.

pernr#type = 'This'.
pa0000-pernr = '123456'.


TYPE pernr#TYPE pa0000-pernr.

Regards,

Rich Heilman