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

parameter selection

Former Member
0 Likes
614

Hi,

I have a select-option s1 and the parameter p1.

if select -option s1 is blank , then the parameter p1 needs to be optional, else if select-option s1 has some values ,then the parameter p1 needs to be obligatory.

how do i specify this conditions?

Any help is rewarded.

Regds

Gautam

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
596

hi Gautam,

AT SELECTION-SCREEN.

IF s1 IS NOT INITIAL AND p1 IS INITIAL.

==> issue some message here that p1 has to bi filled.

ENDIF.

hope this helps

ec

Read only

0 Likes
596

I think it should be under AT SELECTION-SCREEN, since you want to check the user input at PAI, not PBO.

Cheers

Thomas

Read only

Former Member
0 Likes
596

hi,

try this

TABLES : mara.

SELECT-OPTIONS : matnr FOR mara-matnr.

PARAMETERS : mtart LIKE mara-mtart.

DATA : f TYPE i.

AT SELECTION-SCREEN.

IF matnr IS INITIAL.

IF mtart IS INITIAL.

MESSAGE 'Enter in mtart' TYPE 'S'.

f = 1.

ENDIF.

ENDIF.

START-OF-SELECTION.

IF f <> 1.

WRITE:/ matnr.

ENDIF.

Read only

former_member386202
Active Contributor
0 Likes
596

Hi,

do like this.

At selection-screen on S1.

If not s1 is initial.

message 'Enter value for p1'.

leave list-processing.

endif.

Regards,

Prashant

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
596

give modif id for s1.

at selection-screen output.

loop at screen.

if screen-group1 = 'SLN'.

if s1 is not initial.

p1-required = 1. "True

endif.

modify screen.

endloop.

i m not sure abt this......