‎2007 Aug 14 1:52 PM
hi,
In my selection screen i have two fields and in validation if any one is valid also i need to display the output.
Regards,
Malathi.
‎2007 Aug 14 1:59 PM
Hi.. Check this Pseudocode.
Data : FLAG type i.
Parameter : P1,
P2.
AT SELECTION-SCREEN.
<Validate p1>
If <fails>.
ADD 1 TO FLAG.
Endif.
<Validate p1>
If <fails>.
ADD 1 TO FLAG.
Endif.
IF FLAG = 2.
Message E001(ZZCL). "Raise The Error Message.
ENDIF.
START-OF-SELECTION.
<further processing>
<b>Reward if Helpful</b>
‎2007 Aug 14 1:53 PM
use AT SELECTION-SCREEN for all validations.
don't forget to reward
S@meer
‎2007 Aug 14 1:59 PM
hi,
try like this
Selection-screen: begin of block b1 with frame title 'T01'.
parameters: p1 type i,
p2 type i.
selectio-screen: end of block b1.
at selection-screen output.
if p1 = '13' and screen-name = 'p2' . //// lets its be some condition.
screen-output = 1.
modify screen.
endif.
if helpful reward some points.
with regards,
Suresh Aluri.
‎2007 Aug 14 1:59 PM
Hi.. Check this Pseudocode.
Data : FLAG type i.
Parameter : P1,
P2.
AT SELECTION-SCREEN.
<Validate p1>
If <fails>.
ADD 1 TO FLAG.
Endif.
<Validate p1>
If <fails>.
ADD 1 TO FLAG.
Endif.
IF FLAG = 2.
Message E001(ZZCL). "Raise The Error Message.
ENDIF.
START-OF-SELECTION.
<further processing>
<b>Reward if Helpful</b>
‎2007 Aug 14 3:03 PM
Hi mani,
TABLES:SSCRFIELDS.
PARAMETERS: R1 RADIOBUTTON GROUP A2,
R2 RADIOBUTTON GROUP A2.
SELECTION-SCREEN:
SKIP 2.
SELECTION-SCREEN:
PUSHBUTTON /30(10) SB1 USER-COMMAND LA1.
INITIALIZATION.
SB1 = 'CLICK'.
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'LA1'.
IF R1 = 'X'.
MESSAGE I000(ZMSG3).
ELSEIF R2 = 'X'.
MESSAGE I001(ZMSG3).
ENDIF.
ENDIF.
Reward Point If Useful,
Thanks & Regards,
S.Suresh.