Application Development 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: 

Selection screen fields as mandatory based on mode

Former Member
0 Kudos
123

Hi Experts,

We run a report in batch mode and online.

In online mode we want to make 2 fields as mandatory which i can validate easily.

We would also like to hide or disable a field on selection screen if it is run online.

We want to open/make field visible that field on selection screen when we run it in batch.

I need few inputs from your end:

1.When the user initially runs the report transaction I can hide/disable that particular field.

2. How would i know if the user can is running the report in background and i need to open that field.

Please let me know about it.

3 REPLIES 3

Former Member
0 Kudos
59

hello,

1. yes you can hide/diable fields on selection screen.

2. check field sy-batch. If it is 'X' means the program is running in background mode.

best regards,

swanand

0 Kudos
59

I know i can use sy-batch = X but when initally user comes to screen we dont know if the report will be run online or batch mode.

Initially i can hide that field but what if they want to run the report in background ? How would i open that field for them to create  a variant ?

0 Kudos
59

Hi B M,

You can place a button on the selection screen or on the application toolbar. When the user clicks the button, you can unhide the fields for variant creation.

You can also use a checkbox with user command for the same. It is always your decision to adopt a method.

Hope this helps