09-07-2008 6:55 AM
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.
09-07-2008 11:25 AM
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.
09-07-2008 11:25 AM
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.
09-07-2008 11:39 AM
You can use like this
PARAMETERS:
p_bstat TYPE <type> OBLIGATORY,
p_kunnr TYPE <type> OBLIGATORY.
09-07-2008 11:59 AM
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.