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

Former Member
0 Likes
877

HI

In SELECT OPTIOn I'm giving BUKRS which will be having a constant value suppose 123 the user should not change the value How can I restrict it. but I want it in the selection screen.

Thanks for you inputs.

8 REPLIES 8
Read only

Former Member
0 Likes
848

Use LOOP AT SCREEN to disable it.

Rob

Read only

Former Member
0 Likes
848

Hi,

You can also disable it in a tcode variant. Create an system variant and attach it to the transaction for that report. This way if you want to make it editiable in future all you have to do is to modify the variant, no coding required.

Arash

Read only

pole_li
Active Participant
0 Likes
848

Hi,

You can use:


SELECT-OPTIONS:
  s_bukrs FOR bukrs MODIF ID a1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    CASE screen-group1.
      WHEN 'A1'.
          screen-active = '0'.
        MODIFY SCREEN.
    ENDCASE.
  ENDLOOP.

Pole

Read only

Former Member
0 Likes
848

Hi,

When you want a Fixed value that too non input field you can go for PARAMETER

parameters : p_bukrs type bukrs default '123'. " If you still want to go ahead with select options then
tables : t001.
select-options s_bukrs for t001-bukrs no-extension no intervals.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF SCREEN-NAME = 'P_BUKRS'. " Replace this with 'S_BUKRS-LOW'
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Cheerz

Ram

Read only

0 Likes
848

hey,,

use default

Read only

Former Member
0 Likes
848

Hi,

i thin you can use "At selection-screen output" Event.you can write the code below this event that is you have to loop the screen and give the value activation is 0.

Befor that,

While you declare the select option you have to give the defalt value for that select options.

Read only

Former Member
0 Likes
848

Heyy,

Set that Select option with default value and make it inactive in

default

parameters : zbukrs type bukrs default '123'.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = zbukrs

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards,

Uma Dave

Read only

0 Likes
848

The loop concept is working if I'm writing in a tets program or new program but when I'm adding to my existing program The whole selection screen is missing .. So i'm using Select comment ...

Thank you for all of your inputs.

rewarded points to everybody.