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: 

Restrict PNP Personnel Area Field to One Value on Selection Sreen

Former Member
0 Kudos
135

Hi,

I want to restrict users to enter only one value for pnpwerks (perwsonnel area) field on pnp standard report. How do I hide the push-button for displaying range?

Regards,

Lily

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos
58

Hi,

Try this.

tables pernr.

infotypes : 0000,0001,0002.

initialization.

loop at screen.

if screen-name = '%_PNPWERKS_%_APP_%-VALU_PUSH'.

screen-active = '0'.

endif.

modify screen.

endloop.

3 REPLIES 3

former_member202957
Contributor
0 Kudos
58

Hi Lily,

If you are using select-options as input field and want to restrict to one value use the below syntax.

Ex:

DATA spfli_wa TYPE spfli.

SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION NO INTERVALS.

If your using Parameter

PARAMETERS:s_carrid like spfli_wa-carrid NO-EXTENSION.

<b>PLEASE REWARD IF USEFUL</b>

Regards,

sunil kairam.

Edited by: sunil kairam on Dec 19, 2007 4:33 PM

Former Member
0 Kudos
58

Hi Sunil,

My question is on how to hide the pushbutton for pnp-werks which is a standard field of the pnp selection screen. I am using standard selection-screen for a HR report using PNP ldb. I want to restrict users from inputting more than one value. So I ned to hide the pushbutton to enter ranges.

Thanks.

jayanthi_jayaraman
Active Contributor
0 Kudos
59

Hi,

Try this.

tables pernr.

infotypes : 0000,0001,0002.

initialization.

loop at screen.

if screen-name = '%_PNPWERKS_%_APP_%-VALU_PUSH'.

screen-active = '0'.

endif.

modify screen.

endloop.