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: 

Abap sintax doubt *

former_member654002
Participant
0 Kudos

Hi

I am analysing some code of a program

In some point i got the following code

IF sy-subrc IS INITIAL.
%vtweg% = ls_cli-vtweg.
EXIT.
ENDIF.

My question is: what means the % ?

It is a wildcard? Or it means something else?

Thank you and best regards

João Lages Fernandes

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert

The ABAP naming convention "alpha numeric plus _, must start with a character", is not checked in full by the syntax check. Of course, it should not be broken more than absolutely necessary.

The program DEMO_CHARACTERS_IN_ABAP_NAMES demonstrates which characters can be used where.

3 REPLIES 3

0 Kudos

Hi

Please let us know how %vtweg% was declared.

Mostly %vtweg% is just a variable that was declared and nothing related to wildcard in this

particular scenario.

In general % is a wild character in sap. If we want to get all the materials which ends with 11 from MARA table we use the below statement.

SELECT * FROM MARA INTO TABLE IT_MARA WHERE matnr LIKE '%11'.

horst_keller
Product and Topic Expert
Product and Topic Expert

The ABAP naming convention "alpha numeric plus _, must start with a character", is not checked in full by the syntax check. Of course, it should not be broken more than absolutely necessary.

The program DEMO_CHARACTERS_IN_ABAP_NAMES demonstrates which characters can be used where.

former_member228164
Participant
0 Kudos

% is not WILD CARD in this scenario..it is just a naming convention.... and wild card means to select specific records like HOT KEY Concept in SE11....