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

DYNAMICALLY MAKE A parameter OBLIGATORY

Former Member
0 Likes
1,751

CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY i m not defining that parameter obligatory in declaration but i want when i execute this parameter become obligatory

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
926

Hi,

you can do at PBO or AT SELECTION-SCREEN.

Use "LOOP AT SCREEN".

if screen-name = [parameter-name]

screen-required = '1'.

modify screen.

endif.

endloop.

4 REPLIES 4
Read only

Former Member
0 Likes
926

Use screen table for to set the attributes of screen as you required.

Read only

Former Member
0 Likes
927

Hi,

you can do at PBO or AT SELECTION-SCREEN.

Use "LOOP AT SCREEN".

if screen-name = [parameter-name]

screen-required = '1'.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
926

Hi,

Here is the code.

parameters : p_abc type i.

at selection-screen on p_abc.
if <condition1>.
  if p_abc is initial.
    message e001 .
  endif .
endif.

Regards,

Richa

Read only

former_member186741
Active Contributor
0 Likes
926

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'your field'

and your_logic is true.

screen-required = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.