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

Help HR query with logical db

Former Member
0 Likes
669

Hi,

I've created a query from a infoset based on logical db PNP.

The infoset is setted to read also 2001 infotype (absences).

The user that run the query has a role that can't read some 2001 subtypes, for example it can read subty YYYY but not subty XXXX.

When the user execute the query and select in selection screen only subtype YYYY for a defined period, if this period contains a least one 2001 record with XXXX subtype, however the user can not see the records with YYYY subtypes in that period.

I think it's very strange behaviour, indeed if I select a period that not contains XXXX subtypes record the user can view YYYY correctly.

It's a normal SAP behaviour?

Thanks for answers.

1 ACCEPTED SOLUTION
Read only

Puneet_Gupta
Contributor
0 Likes
613

This is normal SAP behavior. In case of missing partial authorizations, the logical database skips the PERNR completely and does not display any data for the PERNR.

You can bypass this check but adding a line of code in the the infoset.

From the menu path Goto -> Code -> Initialization.

In that block add the code.

PNP_SW_SKIP_PERNR = 'N'.


This will prevent the LDB from skipping the pernr but the unauthorized fields will be blank.

- Puneet


Hi,

I've created a query from a infoset based on logical db PNP.

The infoset is setted to read also 2001 infotype (absences).

The user that run the query has a role that can't read some 2001 subtypes, for example it can read subty YYYY but not subty XXXX.

When the user execute the query and select in selection screen only subtype YYYY for a defined period, if this period contains a least one 2001 record with XXXX subtype, however the user can not see the records with YYYY subtypes in that period.

I think it's very strange behaviour, indeed if I select a period that not contains XXXX subtypes record the user can view YYYY correctly.

It's a normal SAP behaviour?

Thanks for answers.

2 REPLIES 2
Read only

Puneet_Gupta
Contributor
0 Likes
614

This is normal SAP behavior. In case of missing partial authorizations, the logical database skips the PERNR completely and does not display any data for the PERNR.

You can bypass this check but adding a line of code in the the infoset.

From the menu path Goto -> Code -> Initialization.

In that block add the code.

PNP_SW_SKIP_PERNR = 'N'.


This will prevent the LDB from skipping the pernr but the unauthorized fields will be blank.

- Puneet


Read only

0 Likes
613

Thanks,

tomorrow I'll try your solution, I let you know if this will'be ok for my customer.

Obviously I will update the status of your answer 😉

Update: It works for my purpose, thanks again.