‎2006 Jul 31 11:15 AM
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
‎2006 Jul 31 11:17 AM
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.
‎2006 Jul 31 11:20 AM
Hi
itz not possible.
since declaring the dataobject with the same name is not permitted in ABAP.
Cheers,
Abdul Hakim
Mark all useful answers..
‎2006 Jul 31 11:20 AM
‎2006 Jul 31 11:20 AM
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
‎2006 Jul 31 11:21 AM
Hi Harish,
with the same name it is not possible , u have to use different names
‎2006 Jul 31 11:21 AM
‎2006 Jul 31 11:24 AM
Hi Harish,
a select-option or a parameter cannot be redefined.
Regards,
sudha
‎2006 Jul 31 11:26 AM
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.
‎2006 Jul 31 1:01 PM
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
‎2006 Aug 01 12:50 PM
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>