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

Regarding Select-options

Former Member
0 Likes
1,012

Hi Friends,

Good afternoon.

I have a small doubt in select-options.

If i declare a select option in one block,i am displaying the select-option in that block. can i use the same select-option to display it in another block of same selection screen?if so how?pls. clarify

10 REPLIES 10
Read only

Former Member
0 Likes
923

hi Harish,

Declaring the select-option with the same name in another block is not possible ...

i.e,

selection-screen begin of block b2 with frame title text-h03.
parameters: p_sch as checkbox.
selection-screen end of block b2.

<b>*Not possible</b>
selection-screen begin of block b3 with frame title text-h03.
parameters: p_sch as checkbox.
selection-screen end of block b3.

Read only

abdul_hakim
Active Contributor
0 Likes
923

Hi

itz not possible.

since declaring the dataobject with the same name is not permitted in ABAP.

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

Former Member
0 Likes
923

Hi, declare the select option in different name.

regards,

Viven

Read only

Former Member
0 Likes
923

HI,

You can not use the same name in the Selection-screen, but you can use different names with the same table type and change the text of that fields in the selection scren, so both will be look like same

Thanks

Sudheer

Read only

Former Member
0 Likes
923

Hi Harish,

with the same name it is not possible , u have to use different names

Read only

Former Member
0 Likes
923

No, not possiblae.

Read only

Former Member
0 Likes
923

Hi Harish,

a select-option or a parameter cannot be redefined.

Regards,

sudha

Read only

0 Likes
923

It is possible if you are using a different variable

selection-screen : begin of block block1.

select-options : mat1 for mara-matnr.

selection-screen : end of block block1.

selection-screen : begin of block block2.

select-options: mat2 for mara-matnr.

selection-screen : end of block block2.

Read only

Former Member
0 Likes
923

hi,

try this,

SELECTION-SCREEN BEGIN OF BLOCK BL1.

SELECT-OPTIONS CARRID FOR SFLIGHT-CARRID.

SELECTION-SCREEN END OF BLOCK BL1.

SELECTION-SCREEN BEGIN OF BLOCK BL2.

SELECT-OPTIONS SO_CARRID FOR SFLIGHT-CARRID.

SELECTION-SCREEN END OF BLOCK BL2.

best of luck,

regards,

kcc

Read only

Former Member
0 Likes
923

HI,

You can not use the same name in the Selection-screen, but you can use different names with the same table type and change the text of that fields in the selection scren, so both will be look like same

It is possible if you are using a different variable

selection-screen : begin of block block1.

select-options : mat1 for mara-matnr.

selection-screen : end of block block1.

selection-screen : begin of block block2.

select-options: mat2 for mara-matnr.

selection-screen : end of block block2<b></b>