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: 

Mandatory field in selection screen of pnp logical database report

Former Member
0 Kudos

Hi experts,

Im using pnp logical database in my report.

It give the standard selection screen. I need to make some fields in the selection screen as mandatory like pnpwerks.

How its possible. Give me some solution.

Thanks,

Priya.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use the following code.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

*To make Personnel Number mandatory.

IF SCREEN-NAME CS 'PNPPERNR'.

SCREEN-REQUIRED = 1.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use the following code.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

*To make Personnel Number mandatory.

IF SCREEN-NAME CS 'PNPPERNR'.

SCREEN-REQUIRED = 1.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Former Member
0 Kudos

You can use like this



PARAMETERS:
p_bstat TYPE <type> OBLIGATORY,
p_kunnr TYPE <type> OBLIGATORY.


Former Member
0 Kudos

how about if u do this step

1. Goto- Attribute.

2. Click "Change"

3. Click 'HR Report Category'

4. Click 'Create Report Category'

5. Click 'new entries' for careating Report Category

5. Select newly create report category

6. Click the folder 'Definition of Organizational Selection'.

7. Click 'New entries'.

8. Here you assign the required fields to be displayed, for eg pywerks - personal area.

9. finally assign this newly created 'report category' in the screen you will get upon clicking 'HR report Category' button in the Program attribute screen.

Hope this may help you. I am not much into hr abap. but sharing the info which i am aware.