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: 

How to get Underscore?

Former Member
0 Kudos

Hi All,

In my program, i want to get a pattern for table name.

That is,

for table name start with 'A', the pattern is 'A%'.

for table name in 4 characters, the pattern is '_ _ _ _'.

( 4 underscores without space. )

If underscores given in either parameters in a report or in a input/output field of a dynpro screen, inside the program the corresponding parameter or variable is initial. No value is there.

Anybody come across things like this????

How to get underscores via parameter or input/output field...?

With thanks,

R.Nagarajan.

7 REPLIES 7

Former Member
0 Kudos

Hi

you can use sy-uline.

Aditya

Former Member
0 Kudos

Its not possible to get underscore alone using paramters.

Instead if you put any other character in begining and then underscore , then it will come.

So as you are using that value to check the pattern,

you can directly input from the parameters along with the single quotes.

eg: '____' -> enter all the characters in the parameter along with the single quotes and use that pattern directly in your program

Bhupal

Former Member
0 Kudos

you can use sy-uline and space.

Former Member
0 Kudos

you can use sy-uline and space.

Former Member
0 Kudos

YOU CAN USE SY-ULINE WITH POSITION LIKE .......

WRITE : /3(4) SY-ULINE .

0 Kudos

Hi all,

SY-ULINE doesn't work.

I am going to use underscore as pattern in select query.

Regards,

R.Nagarajan.

harry123
Discoverer
0 Kudos

It is best to use regexp in the at-selection-screen on field and accept input if regex is satisfied.