‎2010 Jun 22 10:08 PM
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.
‎2010 Jun 22 10:22 PM
‎2010 Jun 23 12:55 AM
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
‎2010 Jun 23 2:39 AM
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
‎2010 Jun 23 4:29 AM
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
‎2010 Jun 29 7:50 AM
‎2010 Jun 23 5:57 AM
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.
‎2010 Jun 23 7:31 AM
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
‎2010 Jun 24 6:11 PM
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.