PNP and Selection Screen 900 and Authorization
We have used the combination of logical db PNP with selection screen 900 to write a few custom payroll reports. We noticed right away that this combination seems to ignore HR authorizations. Meaning, someone could read payroll results for employees they are not authorized to see. We had to add our own authorization checks.
Am I missing something or is something wrong with the 900 selection screen?
Hi Kenneth,
The 900 selection screen is for evaluation of Payroll Results. The system checks whether the user who started the evaluation has the correct authorization for this evaluation. Since the data retrieval is from the Payroll Results and not Master data the regular Authorization checks might not be relevant here. Even if the User has no authorization to view the Employee's Master data, he/she might still be able to view the Payroll results via this selection screen if he /she has the evaluation authorization. You are probably right in having to put in your own authorization checks. I hope I am not wrong.
Regards,
Suresh Datti
Message was edited by: Suresh Datti
Similar Messages
-
RE:pnp LDB selection screen problem
hi,
hi friends iam facing one problem regarding hr ABAP selection screen ,in my program iam using PNP LDB for bonus details report
i have using selection screen declaration present for single selection.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.
SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B3.
based on this selection iam fetching the information from infotypes using macros.
now my requirement is iam fetch the information for multiple selections means like payroll areas z1,z2 and z3 payroll informations
should be fetching once. pls any body knows solution please give me reply.
thanks & regards,
mgrao.hi jain thanks for your reply, iam already created report category and assigned my report. here iam giving my report selection
declerations fully below.
S E L E C T I O N S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. " DECLEARED REPORT CODE LEVEL
SELECT-OPTIONS: S_DATE FOR SY-DATUM NO-EXTENSION. "Bonus for Financial Year
PARAMETERS: P_BDATE TYPE SY-DATUM OBLIGATORY, "Bous payed as on
P_WKDAYS TYPE CHAR6. "No.of Working Days
SELECTION-SCREEN END OF BLOCK B1.
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006. " COMMENTED report level TAKING FROM LDB PNP
*SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION, " Payroll area
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION, Personnel area
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION, Personnel sub area
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
*SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002. "REPORT CODE LEVEL SELECTION
PARAMETERS: P_FORMCP TYPE PIN_RATE, " char6, "Form C %
P_FORMEP TYPE PIN_RATE, " char6, "Exgratia %
P_FORMBP TYPE PIN_RATE. " char6 . "Bonus %
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-004.
PARAMETERS: L_REPORT TYPE ZHRD_FORMC AS LISTBOX VISIBLE LENGTH 40 OBLIGATORY . Report for list box 1 form c
SELECTION-SCREEN END OF BLOCK B4. 2 exgratia
the above selection is iam used first, now iam commented BLOCK B3 SELECTION PARAMETERS and taking the parameters from REPORT CATEGORY ASSINGN MENT.
MY PROBLEM is if i select one payroll area example z1 it showing all pay roll employees bonus details it is not filter the remaining payroll areas my requirement is what are the payrolls iam selecting those pay roll area details only displaying.
data fetching from INFOTYPES 0001,0002,0021 AND 9150 FOR BONUS DETAILS and out put is classical report format.
please kindly give the reply if you knows the solution.
thanks & regards ,
mgr. -
Problem with PNP customized selection screen
Hi guys,
I have done a report in R/3 system using logical database PNP with customized selection screen. i have 3 parameters as below:
1. radiobutton1 group a for current period,
2. radiobutton2 group a for other period.
3. personnel number.
my program works fine in R/3 but not in my portal. i think it couldn't recognize my radiobutton in my customized screen. whichever radiobutton i selected also it would return current month records.
any idea how to fix this?
any configuration that i can do?
thanks.try testing it through ITS first.
in order to do so . Go to sicf transaction and run webgui. Then run the application using the tcode. Check the results.
Seems wrong paramter are getting passed to the SAP system.
Your ITS server should be activated first in order to use webgui otherwise you will be getting dump.
Regards
Atul Shrivastava -
URGENT( PNP LDB SELECTION SCREEN )
hiiiii,
can anyone tell about the field PNPDISBD of pnp LDB in sap-hr , and why it is used. Is There any field on selection screen related to this when we use pnp LDB.Hi,
PNPDISBD is nothing but a date.
Go to SE38 and open the report SAPDBPNP.
And search for the field PNPDISBD then you will come to know its functionality. -
Hi ,
How to omit few fields in data selection period of pnp selection screen.You can disable the selection screen element in at selection screen output event.
Ex: The following code has been written for one of the FI related ldb.
Check the field names of pnp ldb in debugging mode and use it.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP3 = 'IXS'.
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-GROUP4 = '023'.
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-NAME = 'DD_BUKRS-LOW'.
SCREEN-REQUIRED = '1'.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-NAME = 'DD_BUKRS-HIGH'.
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF ( SCREEN-GROUP3 = 'VPU'
AND SCREEN-GROUP4 = '007' ).
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-NAME = 'DUEDATE1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDLOOP. -
PNP Report(Selection Screen)
hi,
i had attached the <b>Standard Selection screen</b> to my <b>ALV</b> report but i am not able to apply checks on the Selection screen to filter the data on my report and want to display accordingly..
can anybody help me on this...Hi Dinesh,
Even though I am not able to understand your query, just thought of sharing the idea which I used in one of the ALV.
CASE 'X'.
WHEN rad1.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = 'ZSTOP_SALARY'
i_grid_title = ' MANUAL STOP SALARY REPORT'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
WHEN rad2.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = 'ZSTOP_SALARY'
i_grid_title = ' VACATION STOP SALARY REPORT'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDCASE.
Just check this... Hope this might help you out.
Best Regards
Renjan -
Change PNP standard selection screen attributes
Hi experts,
I need to change the standard PNP selection screen parameter BUKRS into "obligatory".
I know it can be done for all reports using PNP through SPRO, but I need it only for one customer report.
Best regards,
A. Cepa.You can hide the standard field on the screen using this -
INITIALIZATION.
LOOP AT SCREEN.
IF screen-name = 'PNPBUKRS-LOW'.
screen-active = '1'.
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-name = 'PNPBUKRS-HIGH'.
screen-active = '1'.
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
Amit -
Coding ABAP using LDB PNP and authorizations problems
This post requires a blend of ABAP and HCM skills.
When coding my own ABAP using LDB PNP, the LDB will provide me with the employees selected but will skip those for which I do not have access (regarding Authorizations settings) to one or more of the infotypes declared in the program.
As a programmer I would like to receive from the LDB the information that an employee is skipped so that I can handle the exception.
Do you know how can I get this information from the LDB?
ThanksI dont know if PNP can do it but PNPCE can:
at END-OF-SELECTION call macro PNP_GET_AUTH_SKIPPED_PERNRS
it will provide a list of skiped PERNRs
for further info see docu PNPCE -
How to change the text in default selection screen
Hi,
I have created the default selection screen(using PNP Logical database) ,In that I wants to display 'Data Selection Period' instead of 'Period'.
Please send me the related code.
Thanks in advace
mohanHR Logical Database is PNP
Main Functions of the logical database PNP:
Standard Selection screen
Data Retrieval
Authorization check
To use logical database PNP in your program, specify in your program attributes.
Standard Selection Screen
Date selection
Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
Person selection
Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
Sorting Data·
The standard sort sequence lists personnel numbers in ascending order.
· SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
Report Class
· You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
· If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.
regards
vinod -
Can i get multiple records if selection screen is 900 using PROVIDE
Hi All,
Iam using following statement for fetching MULTIPLE records from infotype 0008. In Attributes if i declare LDB as pnp and selection screen as 900, then iam not getting any records.
Instead of th selection screen 900 is empty. then records will getting properly.
How can i get multiple records if selection screen is 900?
PROVIDE * FROM p0008
between pn-begda and pn-endda.Hi Ranjith
You can use
PYBEGDA and PYENDDA instead of PN-BEGDA AND PN-ENDDA.
Regards
Muneer.VK -
How to display a screen in selection-screen?
hi friends,
I have a requirement. I have one PNP database SELECTION-SCREEN in my report program. And i have created one more screen using screen painter.
Now i hae to display that screen which i created using screen painter under PNP SELECTION-SCREEN.
For ex:
PNP SELECTION-SCREE.
Pernr Number _______________
Employe Name _______________
Company Code _______________
Payroll Area ________________
Now after this i have to display my screen which i designed using screen painter.
As shown below.
O In rupees
O In Percentage
Variance______
Here i specified some fields only. some more fields also there.
For this i did as....
I created a BUTTON in SELECTION-SCREEN. And when the user clicked on this then screen will appear as window.
It's working fine.
It's look like this.
|More Selections...| -
> Button
But,my client required that screen also wants to display directly under PNP SELECTION-SCREEN but not as window and clicking button.
If Any Help.. Plz....
Thanks & Regards,
Shree.hi prakash,
thanks for ur solution.
but it's not working properly. while changing 1000 screen and activating, it's showing syntax error like this.
while changing:
==> Element PNPS$MCD touches or overlaps other element
==> Selection screen: Report generation makes screen changes ineffective
==> Element PNPS$MCD touches or overlaps other element
While Activating:
Syntax Error in Screen.
Program <myprogram name>
Screen 1000
Position Flow Logic Line 95
The include block has been used twice.
But, Here i clicked the button "Activate".
Then It's showing messages as this.
==> Selection screen: Report generation makes screen changes ineffective
==> Element PNPS$MCD touches or overlaps other element.
I checked out that Line 95.
There i am specifying my suscreen as this.
CALL SUBSCREEN subscreen1 INCLUDING sy-repid 106.
at end of PBO.
And in PAI.
CALL SUBSCREEN subscreen1.
Finally when i tried to execute it's giving DUMP.
Any solutions..
Thanks & Regards,
Shree. -
ORGEH ON HR LDB SELECTION SCREEN
hello,
I am using PNP LDB selection screen i am getting the results when i gave person number but i am unable to get the data for ORGANIZATIONAL UNIT (orgeh).
ANY ONE PLEASE SUGGEST ME HOW TO GET THE DATA FOR ORGEH.
THX IN ADVANCE
MUNNA.Hi,
Please follow
Go to transaction SPRO -> Personnel Management ->Human Resources Inforamtion system -> HIS -> Reporting ->
Adjust the standard selection screen -> Create Report Categories.
I hope if this meet your requirement, please award suitable points and close the thread.
Regards,
Irfan Hussain -
Selection screen and logical database PNP
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,
ReenaIn the Program Attributes, click on the pushbutton 'HR Report Category'.Click on the 'Create' icon in the pop-up window that comes up. You will get a list of all the available Report Categories. Go through the list & if you don't find one that suits you, select one that is closest & click on the 'Copy As' icon in the menu bar..
Now, you can remove the unwanted fields & add yours for selection. save it & and attach it to report in the attributes.
~Suresh -
Can we modify the pnp selection screen and get only month and year?
Dear Freinds,
I have requirement where i have to modify the PNP selection screen. So with the help of report category and coding in AT SELECTION-SCREEN OUTPUT , i have modified all the fields relating to dates . i.e i have removed all the radio buttons (i.e Today, Current month,current year etc) and finally
i have landed with only Period ( PNPBEGDA & PNPENDDA range) . But i dont want the PNPBEGDA & PNPENDDA range , but i want only is the month and year ( i.e just like the PNPPABRP & PNPPABRJ)
on my selection screen along with the pernr .
i have used the below code to close all the fields except pnpbegda and pnpendda.
AT Selection-Screen output.
loop at screen.
IF screen-group4 = '098' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '092' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '094' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '100' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-group4 = '104' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
MODIFY SCREEN.
endloop.
i.e on my selection screen i want only month & year combination and pernr -
when iam using the logical database PNP . Could any one please let me know how can i get only mon & year only on my selection screen .
If it is possible please let me know .
Thanks & regards
divya.Hi ,
The requirement is that the user doesnt want to enter the date range i.e for ex: 01012008 to 31012008.
As per the requirement the user will enter only the month and year only . so i on the selection screen
i want only the month and year only . Is there any means i can modify the date period which is there by
default (PNPbegda and PNPendda) on PNP selection screen. Instead of we givign to the user the
PNPBEGDA and PNPPENDA i want is only month and year .
AS already the code has already been written and now they have asked that they want only the month and year on the selection screen.
Please suggest me in this regard.If iam hiding all the buttons relating the dates fields, and now if iam adding the parameters for the month and year it is coming below below the fields pernr , personnel ara and subara , company code , payroll area, employee group of the standard fields of PNP selection screen , there by any body could please suggest me how to change.
regards
divya. -
What will the screen show when I deauthorize all computers? Will it show them and then I select the ones to authorize? I don't want to undo or be unable to re-authorize the ones I still want.
"What will the screen show when I deauthorize all computers? "
Nothing. Not sure what you mean.
" Will it show them and then I select the ones to authorize? "
No.
You have to authorize a computer from that computer. You cannot authorize a computer from another computer.
Maybe you are looking for
-
I have an iphone 4 and it will not boot. I've done everything except downgrade the firmware to 6.1.3 or 6.1.4... is this what needs to happen and if so can I please get a link to do so? thanks
-
HI all I´m developing a BPM, this has the following steps: 1º Reciver Step: this is to read a file , comunication channel type file. 2º transformation Step: maps the MT of the file to a new MT 3º Send step: send syncronously the result of the the map
-
How do i fix my ipod touch 4th gen. its a blank white screen?
i have recently downloaded IOS 5.0 and my ipod has been doing wat everyone else`s has lagging. But this morning i got on to facebook and trying refreshing the screen my ipod went screwy it has currently just showed a blank white screen and will not d
-
Connecting to an oracle db from a servlet. need help.
Hello! I'm a noob in webprogramming but I am studing it for a month. So I have a trouble with jdbc. I write a web application in Sun Studio Creator 2 IDE. There is an Oracle 11g database on my computer. The application has ajax jsp, which sends async
-
Databound Drop Down List combine two or more column with customize format
Hi all I am writing a project have Databound Drop Down List like example in http://www.oracle.com/technology/products/jdev/tips/mills/databound_lists.html, but my Databound Drop Down List combine 2 column with format "Name | DepartName" or something