In a screen i have 2 radio buttons and 2 text fields,if i
select the one radio button one text field has to be enable
and when i select another one,other text field has to be
enable,in the at selection screen output event how it was
happen?this event has to effect once i press enter
naa.......... how the screen knowing that?
Answers were Sorted based on User's Feedback
Answer / parthasarathi
We are Loop the Screen structure, so it's not an matter how
many times we are doing modification..
Normally it's work under the concept of PBO and PAI event..
So when u select the other radio button it act as PAI event..
so the modification had been done withe use of Screen
Structure.
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / saravanan
At selection-screen output triggers before the actual
display of the list. So, when u press ENTER button, 'Loop
at screen' written under the event gets triggered. And u
can set the screen parameter 'INVISIBLE' of the
corresponding field to '1'. This is how it works!
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / prafulla nayak
LOOP AT SCREEN.
IF RAD1 = 'X'.
IF SCREEN-NAME = 'MAT2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
IF RAD2 = 'X'.
IF SCREEN-NAME = 'MAT1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
write it in PBO.
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / ananda babu uppara
Without interacting with the PAI and PBO events we can do
this task using "screen" structure.
Tomorrow i will post with code.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / ananda babu uppara
Check this code and try this.
DATA: d_ucomm LIKE sy-ucomm.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: india RADIOBUTTON GROUP rad1 USER-COMMAND act
DEFAULT 'X',
Field1(10) MODIF ID a,
austria RADIOBUTTON GROUP rad1,
Field2(10) MODIF ID b.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN.
d_ucomm = sy-ucomm.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF india = 'X'.
IF screen-group1 = 'B'.
screen-active = 0.
ENDIF.
ELSEIF austria = 'X'.
IF screen-group1 = 'A'.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Is This Answer Correct ? | 7 Yes | 3 No |
Is sap xi intended to replace ale?
what is set cursor and get cursor command in module pool
What is the difference between select statement and provide statement
what are the events used in LDB?
How do you write UTP?(unit test plan)
Differentiate between report and dialog program
Can you do enhancement in a table?
please clear this what is the diff b/w select single * and select up to 1 row?
Explain different types of attributes of function module?
On abap: did you set up a workflow? Are you familiar with all the steps for setting up a workflow?
hi what is difference between REUSE_ALV_GRID_display and reuse_alv_list_display .
What is the advantage of structures?