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

How to get Underscore?

Former Member
0 Likes
2,130

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
Read only

Former Member
0 Likes
1,358

Hi

you can use sy-uline.

Aditya

Read only

Former Member
0 Likes
1,358

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

Read only

Former Member
0 Likes
1,358

you can use sy-uline and space.

Read only

Former Member
0 Likes
1,358

you can use sy-uline and space.

Read only

Former Member
0 Likes
1,358

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

WRITE : /3(4) SY-ULINE .

Read only

0 Likes
1,358

Hi all,

SY-ULINE doesn't work.

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

Regards,

R.Nagarajan.

Read only

harry123
Discoverer
0 Likes
1,358

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