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: 

selection screen for logical database PNP..

Former Member
0 Kudos

hi all,

I am having a requirement to produce a HR Report where i need to use logical database PNP. Now the issue is i need to supress some of the elements of standard selection screen of PNP and add a couple of fields of mine.

i have been looking all around and i got few of the below methods.

its good to use a report category.

somewhere it says include it in ur program using selection screen block..

can you please guide me which is the best way and what would be a perfect solution?

thanks in advance,

Reena

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi reena,

One should use HR Report category where ever possible.. You will have to find out a Report category which matches your requirement. There will be many which may come close to your requirement. Take the one which is closest.

If you dont find anything then Again just take the fields of from report category and add your own fields.

This is all to be done if you use GET PERNR.. i mean the logical database has to be used..

Otherwise if you are ok with not using Logical database then use the selection screen according to what the requirement is.

It is always recommened to use Report category because it will take care of your authority checks and logical database conditions clearly.

Prince

3 REPLIES 3

Former Member
0 Kudos

Hi Reena

in my opion for your issue is the right way to use

the report category, because you have to remove

some elements.

If you use selection screen you have remove

the elements with coding.

"LOOP AT SCREEN."

Regards

Bernd

Former Member
0 Kudos

Hi reena,

One should use HR Report category where ever possible.. You will have to find out a Report category which matches your requirement. There will be many which may come close to your requirement. Take the one which is closest.

If you dont find anything then Again just take the fields of from report category and add your own fields.

This is all to be done if you use GET PERNR.. i mean the logical database has to be used..

Otherwise if you are ok with not using Logical database then use the selection screen according to what the requirement is.

It is always recommened to use Report category because it will take care of your authority checks and logical database conditions clearly.

Prince

Former Member
0 Kudos

Hi reeena,

1. simple

2. u want to

a) add ur own fields

b) suppress some fields

3. a) is simple, just add your parameters,

in your program, and they will appear

b) use SCREEN logic

4. just copy paste to get a taste of it

(it will HIDE the PAYROLL AREA field)

and add MATNR field

5.

report abc.

TABLES : PERNR.

*----


PARAMETERS : MATNR LIKE MARA-MATNR.

*----


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME CS 'ABKRS'.

SCREEN-INVISIBLE = '1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

regards,

amit m.