Application Development and Automation 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: 
Read only

hiding screen fields

Former Member
0 Likes
1,348

m using PNP selection screen. i want to hide some of these fields. how can i do it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,005

Hi,

Yes..name of the selection screen parameter

Thanks,

Naren

9 REPLIES 9
Read only

Former Member
0 Likes
1,005

Hi Nidhi,

PNP has lots of screen variants, check which chooses best for your requirement as it rarely required for PNP to make any changes.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
1,005

Hi,

Try using AT SELECTION-SCREEN OUTPUT event to hide the fields..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_MATNR'.

SCREEN-ACTIVE = 0. " Invisible..

ENDIF.

ENDLOOP.

Thanks

Naren

Read only

0 Likes
1,005

thanks naren,

i have a query.

screen-name is name of my field like 'pnppernr'?

is it right.

Read only

0 Likes
1,005

Hi Nidhi,

As given by Ram above just follow that method for PNP, if you still want to use AT SELECTION SCREEN then make sure you give field names in capital as 'PNPPERNR'.

Regards,

Atish

Read only

former_member214288
Participant
0 Likes
1,005

Hi Nidhi,

You can check if any of the existing "Report Category" suits your requirement. If none of them suit then you can create a new report category and assign that to your program (in <b>Attributes Screen there is a button called Report Category</b>).

<u>Report Categories can be created or assigned at</u>

SPRO -> Personnel Management -> HR Information System -> Reporting -> Adjusting Standard Selection Screen -> Create or Assign Report Categories

Reward Points if helpfull.

Regards,

Ram

Read only

Former Member
0 Likes
1,006

Hi,

Yes..name of the selection screen parameter

Thanks,

Naren

Read only

0 Likes
1,005

but naren it is not hiding fields.

i wrote these stmts before

start-of-selection.

i wrote.........

at selection-screen output.

loop at screen.

if screen-name = 'PNPPERNR'.

ecreen-active = 0.

endif.

endloop.

Read only

0 Likes
1,005

Hi Nidhi,

Change code as

at selection-screen output.

loop at screen.

if screen-name = 'PNPPERNR'.

ecreen-active = 0.

endif.

<b>MODIFY SCREEN.</b>

endloop.

Regards,

Atish

Read only

Former Member
0 Likes
1,005

Hi,

Include the MODIFY screen..Sorry I missed that..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_MATNR'.

SCREEN-ACTIVE = 0. " Invisible..

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Thanks,

Naren