Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection screen

Former Member
0 Likes
428

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.

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
408

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>

4 REPLIES 4
Read only

Former Member
0 Likes
408

use AT SELECTION-SCREEN for all validations.

don't forget to reward

S@meer

Read only

Former Member
0 Likes
408

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.

Read only

varma_narayana
Active Contributor
0 Likes
409

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>

Read only

Former Member
0 Likes
408

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.