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

select-option reqirement

Former Member
0 Likes
1,068

hi all,

my

SELECT-OPTIONS : s_prctr FOR bseg-prctr.

as PRCTR length is 10 so in selection screen disply also

it is taking 10 only.but my client require that

in selection screen disply it should display its length should be 8.

bcoz there PRCTR (profit centre) is of 8 digits only.

he wants that it should display only 8 spaces not 10.

whether it is possible.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,041

tables:mara.

SELECT-OPTIONS: sel FOR mara-matnr VISIBLE LENGTH 8.

9 REPLIES 9
Read only

Former Member
0 Likes
1,041

HI Sanjeev

You can try using Additions VISIBLE LENGHT <len> to the select-options.

SELECT-OPTIONS : s_prctr FOR bseg-prctr visible length 8.

Though in selection-screen the display is for only 8 characters, it can take input for 10 chars.

Alternatively, you can declare your own variable and give the match code for reference.

Kind Regards

Eswar

Read only

0 Likes
1,041

hi eshwar,

thanks for the reply.i have given u points for the same it has solved my purpose.but i want to know

how

you can declare your own variable and give the match code for reference.

plz give me steps for the above so that i can go with that also.

hope u will reply me

Read only

Former Member
0 Likes
1,042

tables:mara.

SELECT-OPTIONS: sel FOR mara-matnr VISIBLE LENGTH 8.

Read only

Former Member
0 Likes
1,041

Hi,

Just give

SELECT-OPTIONS : s_prctr FOR bseg-prctr VISIBLE LENGTH 8.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,041

HI Sanjeev,

The offset specification with select options is not allowed.

U can search for any other related field for PRCTR of length 8.

Hope this help[s.

Read only

Former Member
0 Likes
1,041

try this

tables bseg.

SELECT-OPTIONS : s_prctr FOR bseg-prctr visible length 8.

regards,

vijay

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,041

Hi,

SELECT-OPTIONS : s_prctr FOR bseg-prctr VISIBLE LENGTH 8.

Read only

Former Member
0 Likes
1,041

Hi sanjeev,

U can easily do it...u have an opton called visible length option which u can type in ur select options code so that u can do wat u require...

SELECT-OPTIONS : s_prctr FOR bseg-prctr VISIBLE LENGTH 8.

regards

Rajkumar.G