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 |
If your project is support project ? when is your implementation has completed ?
What are two different ways to add fields to sap tables?
What is the difference between data elements and domains?
How do you document ABAP programs? Do you use program documentation menu option?
How to write message without using message class in report? How to go to edit mode in classical display report, means that how to edit one of the column after displaying classical report, not in ALV.
Explain the Inportance of pa30? : abap hr
can onyone tell me , how many data classes and size categories are there ?
hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me
How can print the styles?
In alv Reports,how the Output is displayed ad editable and how i can edit the same and how it will reflect the DB?Please help...........
How to do sorting in classical report?
6)what are the table controls in BDC ?