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: 

To make selection period mandatory in Logical Database Report

Former Member
0 Kudos

Hi All,

My report is using customized HR Report Category with selection period as Key Date.

My requirement is to make Key Date as mandatory field and with default value as sydatum.

Pls help .

Regards,

Nibha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can use the below:

obligatory-This prohibits blank input fields.

default-This term maintains an initial default value for the parameter.

Thanks,

Archana

7 REPLIES 7

Former Member
0 Kudos

Hi,

You can use the below:

obligatory-This prohibits blank input fields.

default-This term maintains an initial default value for the parameter.

Thanks,

Archana

0 Kudos

I am not using my selection screen. Selection screen is being generated using HR Report category... How do I make fields mandatory in HR report Catagory?

0 Kudos

Hello,

Although the selection screen will appear from the logical database you define, you can add your validation check at the event 'At selection-screen' to check if particular field is initial or not and give proper error message.

Regards,

Mansi.

0 Kudos

But how do I put default value as sy-datum?

0 Kudos

But how do I put default value as sy-datum?

0 Kudos

hi,

In the initialization event you can initialize it to sy-datum...

INITIALIZATION.

date = sy-datum.

This will default it to sy-datum

0 Kudos

Hello,

Although the selection screen will appear from the logical database you define, you can add your validation check at the event 'At selection-screen' to check if particular field is initial or not and give proper error message.

Other way would be at the initialisation event use the following :



loop at screen.
if screen-name = 'P_NAME'.
screen-input = '1'.
endif.
modify screen.
endloop.

Also at initialisation

s_date = sy-datum.

Regards,

Mansi.