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 |
What is step-loop? Explain all the steps?
Among "Move" and "Move Corresponding", which is efficient one and why ?
Which method is faster among 4 methods used in LSMW.?
How can we add another field to display in standard SAPSCRIPT? Ex. we have customer address in layout, now we have to add customer Phone no in the same.
How can we decide weather we can enhance the standard infotype or not ? : abap hr
say in selection screeen (ie is in select-options) i have selected record range from 1000 to 2000 but in the final display list i sholud not get 1200 to 1300 records it should be hide how is it posible
difference between BAPI and RFC?
What are the function modules that are generated when you activate a lockobject? : sap abap data dictionary
at the checking of sy-subrc after call transaction stmt,if it is zero what is the meaning of that of syn and asynch updates explain. a.)update of database table is success. b.)execution of call transaction is success. For syn update which one is correct? For asyn update which one is correct?
1 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
Can you use if then else, perform ..etc statements in sap script?
In events, start-of-selection is a default event. When we have to use this event explicitly? Why?
What are the functions of lock objects?