Application Development 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: 

% et * in name of variables

former_member246786
Participant
0 Kudos

hi,

maybe will this question seems to be a bit strange but I would like to knwo if there is a special meaning when the characters % or * are used as prefixes of variable's name ?

It's sometime the case when we look at standard SAP source code there are some names suche as *variable %mystructure.

I know that it exists in auto -generated code but is there an other meaning ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

  • symbol before a field represents a workarea for that table/internal table

we found this type of table/data declarations in some std print programs

like *VBAK, *VBAP, which is nothing but a working area similar to VBAK and VBAP tables

similarly % symbol indicates the LIKE meaning

AB% means starting all words with AB

in select where condition we use this

like select * from MARA where MTART = 'A%'

means take all the material types starting with letter A

Reward points for useful Answers

Regards

Anji

3 REPLIES 3

Former Member
0 Kudos

Hi

  • symbol before a field represents a workarea for that table/internal table

we found this type of table/data declarations in some std print programs

like *VBAK, *VBAP, which is nothing but a working area similar to VBAK and VBAP tables

similarly % symbol indicates the LIKE meaning

AB% means starting all words with AB

in select where condition we use this

like select * from MARA where MTART = 'A%'

means take all the material types starting with letter A

Reward points for useful Answers

Regards

Anji

0 Kudos

I know the meaning of % as a joker in logical conditions but it's sometime used as * in name of variables such as

%vbak out of logical conditions ...

thanks for your help

0 Kudos

They used in generated programs. Also it's the same for the selection screen variables.

Peter