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

how to hide selection fields when using logical database PNP

Former Member
0 Likes
3,565

hi.

i m using a logical database PNP and report catagory 1PY_DEF in my program.

but when i execute it , it shows to selection box. one name is period and second is selections.

but i just want to show only period box selection fields , not the selection box fields.

how it iz possible.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,791

HI,

That is working properly in my program. Check the Field names are properly. i'm using X__00002 in the report catageory...& selected the Master Data radio button.

if you have set the variants for the selection screen before making changes. And after making the changes then if you select these varinats then the hidded fields will be displayed so you need to create the new variants after changing the selection screen,

7 REPLIES 7
Read only

Former Member
1,791

HI,

In my case i haved used the PNP logical database..in the selection box i don't wnat to display Contorling area,Cost Center & Organizational Unit. i have written this code to hide those fields..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name CS 'PNPKOKRS' OR

screen-name CS 'PNPKOSTL' OR

screen-name CS 'PNPORGEH'.

screen-active = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

CLEAR screen.

ENDIF.

ENDLOOP.

Try modify hide the total block instead of individual fields in that block.

Read only

0 Likes
1,791

hi brother.

ur code is not even hiding those fields which u have written. i.e cost center....

Read only

Former Member
0 Likes
1,791

Hi.

In the attributes of program you can assign existing HR report category or create new

one to assign it later to your report. So you can customize selection screen.

Read only

Former Member
0 Likes
1,792

HI,

That is working properly in my program. Check the Field names are properly. i'm using X__00002 in the report catageory...& selected the Master Data radio button.

if you have set the variants for the selection screen before making changes. And after making the changes then if you select these varinats then the hidded fields will be displayed so you need to create the new variants after changing the selection screen,

Read only

0 Likes
1,791

hi avinash:

it is properly working when i used te logical database pnp and screen no 000 and report catagory X__00002.

but i m using screen no 900 and report catagory which i described above... ten the code does not work...

plz just tell me how we can came to know that these fields contain wat screen-name.

meanz how u came to know

screen-name CS 'PNPKOKRS'

screen-name CS 'PNPKOSTL'

screen-name CS 'PNPORGEH'

so that i can get the remaining fields or how i can get te block name.

thanking in advance

Read only

0 Likes
1,791

hi,

press F1 on the fields in the selection screen and in the Technical information read the Screen Field value... just consider the PNPKOKRS not the LOW or HIGH.

Read only

Former Member
0 Likes
1,791

Hi Tahir,

Go into the Report Category (Prog attributes -> HR Report Category -> Find Report Category). On the right-hand side of your report category, you could see "Allowable selection screens". Doublle click that. You can either remove the unwanted fields or uncheck the checkbox next to it. Note - If you dont want to display the entire block in ur selection screen, remove all fields..