We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] select-options input disable field

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by mic-bv (What title?)
on Jul 21 at 3:50 AM
Mark this reply as helpfulMark as helpful
try:

*$*$--------------------------------------------------------------------
parameters:
Input type char40,
Test1 radiobutton group test user-command xyz default 'X',
test2 radiobutton group test.

*$*$--------------------------------------------------------------------
at selection-screen output.

perform Set_Screenfields_inactive.

*$*$--------------------------------------------------------------------

form Set_Screenfields_inactive.

if Test1 = 'X'.
loop at screen.
if screen-Name = 'INPUT'.
screen-Input = '0'.
modify screen.
endif. " screen-Name = 'Input'
endloop. " at Screen
endif. " Test1 = 'X'

endform. " Set_Screenfields_inactive

Start-of-Selection.



If I understood you right, that should help: You want to direct, if a field is displayed / input enabled, depending on another field?! In this case the radiobutton-Field Test1 directs, if "input" is enabled or not. user-comand xyz is essential, though "xyz" could also be any other. Reason: Processing logic should process at selection-screen. By simply pressing the radiobutton, nothing is transfered to the host (and vv), if not a user-command is defined.

Regards,
Stefan


---------------Original Message---------------
From: Khatia_
Sent: Tuesday, July 20, 2010 9:50 AM
Subject: select-options input disable field

> Hi to all. I have problem, can anybody help me?
> my problem is: I want that my select-option field have been input disabled.
> I use code but it only works to parameters:
> SELECT-OPTIONS: so_matnr FOR mara-matnr.
>
> AT SELECTION-SCREEN OUTPUT.
> LOOP AT SCREEN.
> IF screen-name EQ 'SO_MATNR'.
> screen-input = '0'.
> MODIFY SCREEN.
> ENDIF.
> ENDLOOP.

__.____._
Copyright © 2010 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language