Help in pnp ce logic database
Hallow I wont to change my declaration for dates and selection criteria to pnpce
And I have 2 problem the first is that I have error that I dont now how to solve like
.In Unicode programs, the "-" character cannot appear in names, as it1
does here in the name "PNP-SW-IGNORELOCKEDRECORDS".
2.In Unicode programs, the "-" character cannot appear in names, as it does here in the name "PNP-SW-ENQUEUEPERNR".
In Unicode programs, the "-" character cannot appear in names, as it3.
does here in the name "PNP-SW-AUTH-SKIPPED-RECORD".
In my program I do
START-OF-SELECTION.
GET peras.
END-OF-SELECTION.
Data
TABLES: pernr.
NODES: peras.
INFOTYPES: 0000 NAME t_0000,
0002 NAME t_0002.
What im doing wrong
The second problem in my program I call to function before I use the pnpce I use
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECT-OPTIONS so_date FOR sy-datum OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
And for that I call the function with so_date-low and high .what I have to write in begda and endda if I use pnpce
Thanke for your time
Please read this weblog....
<a href="/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports to deal with HR Payroll reports</a>
Greetings,
Blag.
Similar Messages
-
Report creation with PNP logical database
Hi All
Want to select data according to the begda and endda on the selection screen, if any body has the code will be of great help
rgds
ajHi,
In the attributes,give PNP as logical database.
Then in the program,paste the following coding.
tables pernr.
infotypes 0001.
start-of-selection.
get pernr.
provide * from p0001 between pn-begda and pn-endda.
write : / p0001-begda, p0001-endda.
endprovide.
end-of-selection. -
Authorization on PNP logical database
My limited understanding of authorization on reports that uses PNP/PNPCE logical database is that if a user who runs the report does not have authorization for any of the declared infotypes then the report stops with message 'no authorization for infotype ...'. And if the user has authorization for the infotypes but do not have authorizations for some of the PERNRS then it will only display those records that user have authorization for and shows message saying no. of skipped records (of those that user did not have authorization).
Programmers here say that the users who do not have authorization for some infotypes should still be able to see list for other infotypes that they do have authorization for.
-- Please shed some light on this and guide me if there is a cookbook/document out there about this.
Thanks a bunch.
NetraHi Neha,
Adding further.
Each report is different in its own way and there are various ways of controlling the access to the Reports based on ur scenario.
The first check happens at the P_ABAP level where in it checks the access to the program corresponding to that report and level of access (1,2).
If these are missing then it goes further to check for the explicit access
in objects like
P_ORGIN, P_PERNR etc.
Now in some of these reports the processing is designed in such a way that if the access to an IT is not available it throughs a error message and the processing of the report stops at that instance (this depends on the message type which has been defined at that instance to be displayed) so at this instance you need to have access to that IT to proceed further but in some other cases the check does happen but the processing continues without stopping at that check failure(example is P_PERNR, the check happens but is not required for processing the report).
This is one example but there could even more criterion based on which the processing of the report is terminated or allowed to continue depending on the reports utility
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm">The different message types and their significance is as follows</a>
So what you have been told by programmers is true in some cases but surely not accross all the HR reports and all auth objects.
Hope this helps
Manohar
Message was edited by:
Manohar Kappala -
Restrict selection screen when using logical Database(HR ABAP)
Hi,
I'm using <b>PNP</b> logical Database in my
report program. I want to restrict the deafult
selection screen.
Pls suggest me if knows.
Kind regards,
- Selvaif you don't use the NODE or TABLE statement pnp selection screen will not come.
other wise use screen number 900 which have fever fields and you can make the invisible using
loop at screen.
endloop.
Regards,
Wasim Ahmed -
Hi Experts ,
I am trying to execute a program with logical database .
It is showing error that logical database is unknown.
REPORT ZHRTRAIN.
tables :pernr.
Infotypes: 0002.
data: begin of name,
nachn like p0002-nachn,
vorna like p0002-vorna,
end of name.
select-options : nation for p0002-natio.
GET PERNR.
provide * from p0002 between pn/begda and pn/endda.
check nation.
move-corresponding p0002 to name.
condense name.
write : / p0002-pernr,
name,
p0002-natio,
p002-gebat.
endprovide.
Pls tell me how to correct this error.
Thank you.
Regds,
devika.HR Logical Databases
In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
PNP
PAP
PCH
By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
Logical Database PCH
This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
Logical Database PNP
Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
Reporting on working time and planned compensation for a position that an employee occupies
Reporting on the validity and proficiency of a qualification that an employee fulfils
From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
Logical Database PAP
Logical database PAP enables you to access data from Recruitment.
See also:
HR InfoSets for InfoSet Query
InfoSets in the HR Application -
Hi All,
what is a logical database? what is the use of it.Hi again,
1. To get a taste of it.
2. create a new z program.
3. while creating type PNP
in logical database field.
4. paste this code and execute.
REPORT ABC.
infotypes : 0001.
TABLES : PERNR.
GET PERNR.
WRITE :/ PERNR-PERNR.
5. The selection screen which u see
is coming from logical database PNP program.
6. Execute
7. U will get a list of pernr.
SAPDBPNP
this is the main program of LDB PNP
which does the main work.
SAPDB + ldb name.
regards,
amit m.
Message was edited by: Amit Mittal -
Selection Screen of PNP Logical database
Experts,
I am stuck up in filtering of data.
I am using PNP logical database in Adhoc Query, if I select Current Month as data selection than also it is giving all list of data..
Can anyone give Input to me.
it is urgent.
Point will revert for useful answer.
Hetal.how about if u do this step
1. Goto- Attribute.
2. Click "Change"
3. Click 'HR Report Category'
4. Click 'Create Report Category'
5. Click 'new entries' for careating Report Category
5. Select newly create report category
6. Click the folder 'Definition of Organizational Selection'.
7. Click 'New entries'.
8. Here you assign the required fields to be displayed, for eg pywerks - personal area.
9. finally assign this newly created 'report category' in the screen you will get upon clicking 'HR report Category' button in the Program attribute screen.
Hope this may help you. I am not much into hr abap. but sharing the info which i am aware. -
Logical Database - PNP, PCH, PNPCE
Hi Experts,
Im New to ABAP HR,
I would like to know about the logical databases we are using .
Logical Database - PNP, PCH, PNPCE, basic principles
If any body cud let me know about the differences , requiremnts , associated with these Logical databses will be much helpful for me.
Thanks
Rohini Devi
[email protected]Hi Rohini...
Global Employee Programming
Thanks
Message was edited by:
Aslam Riaz -
ABAP Report Program Logical Database PNP
I have a ABAP program using the logical database PNP. The report is config to run on MSS using EP. I have added code to capture the Org Unit when it is pass to the program from MSS. My issue is how do i capture the org unit value that is passed to the program. I have added code to capture field pnporgeh in the START OF SELECTION event. This works great if you are running the program from R3, but none of my edit checking against field pnporgeh works.
Hi John,
I am also having same trouble where in i have added a new custom(Z) report in the MSS ->My Staff -> Reporting under report category -> Time Management (MSS). I am not able to find how the value of org unit which is selected on portal screen is passed to report in R/3 which is using PNP logical db.
I tested in debugging but selection screen parameter PNPORGEH contains nothing.
Many Thanks in advance for the help.
Edited by: Ankit Kashyap on Nov 17, 2010 12:40 PM -
HR ABAP PNP Logical Database Doubt
Hi,
I have included a logical database pnp and used nodes statement.
Nodes pernr
i want to know what infotypes i can use with that declartion.
i know there are infotypes from 0000 to 9999. could you tell me which infotypes i can access with this PNP.
Kindly help me.
Thanks in Advance,
Bala.Hi BSP
if u want to acess infotype ,u have to declare the infptypes as
INFOTYPES: 0000 , "Action
0001 ,
0002 , "Personal Data
0006, "Address
0008,
1001,
0105, "Communication
0041. "Date Specification
then START-OF-SELECTION .
GET pernr.
and in attributes u have to give Logical database PNP..
with this i think u can acess all the infotype which u have declared...
thnx
Rohit -
Add new field infotype "z" in logical database selection screen pnp
Can add new field infotype "z" in logical database selection screen pnp
I could explain how to realize
ThanksIn case to somebody it interests to him: TO EXTEND SCREEN OF SELECTION WITH OPTIONAL DELIMITERS The case that can be given in a screen of selection of a logical data base it does not appear a certain field that we need in the filter, the steps that will be due to follow are the following:
u2022 To create a view of selection in agreement with the fields that we want to show To review the following Link http://help.sap.com/saphelp_46c/helpdata/es/6e/6ed638e70ef679e10000000a114084/content.htm u2022 To assign the view of selection to a class of report
u2022 In the code of report to create select option in the selection screen that allows to introduce imput to leak and after start-of-selection to put the following code,
"Allocation operative area to optional delimiter
IF NOT p_aroper IS INITIAL.
DATA: lt_texpr TYPE rsds_expr OCCURS 0 WITH HEADER LINE,
wa_texpr TYPE rsds_expr,
lt_rsds_expr_tab LIKE rsdsexpr OCCURS 10 WITH HEADER LINE,
wa_rsds_expr_tab LIKE rsdsexpr.
REFRESH lt_rsds_expr_tab.
wa_rsds_expr_tab-arity = '0'.
wa_rsds_expr_tab-fieldname = 'OBJID'.
wa_rsds_expr_tab-option = 'EQ'.
wa_rsds_expr_tab-low = p_aroper.
wa_rsds_expr_tab-high = '00000000'.
MOVE-CORRESPONDING wa_rsds_expr_tab TO lt_rsds_expr_tab.
APPEND lt_rsds_expr_tab.
REFRESH lt_texpr.
wa_texpr-tablename = 'PA9004'.
wa_texpr-expr_tab[] = lt_rsds_expr_tab[].
MOVE-CORRESPONDING wa_texpr TO lt_texpr.
APPEND lt_texpr.
pnpdynse[] = lt_texpr[].
ENDIF.
English is the forum language.
Edited by: Rob Burbank on May 18, 2011 11:41 AM -
Mandatory field in selection screen of pnp logical database report
Hi experts,
Im using pnp logical database in my report.
It give the standard selection screen. I need to make some fields in the selection screen as mandatory like pnpwerks.
How its possible. Give me some solution.
Thanks,
Priya.how about if u do this step
1. Goto- Attribute.
2. Click "Change"
3. Click 'HR Report Category'
4. Click 'Create Report Category'
5. Click 'new entries' for careating Report Category
5. Select newly create report category
6. Click the folder 'Definition of Organizational Selection'.
7. Click 'New entries'.
8. Here you assign the required fields to be displayed, for eg pywerks - personal area.
9. finally assign this newly created 'report category' in the screen you will get upon clicking 'HR report Category' button in the Program attribute screen.
Hope this may help you. I am not much into hr abap. but sharing the info which i am aware. -
How does works default parameters in a program with logical database PNP?
Hi Friends,
I have a basic program, i need to filter info with period parameters in a program that uses logical database PNP, but it doesn't work.
If i use "person selection period" that it's suposed to filter info according to infotype 0001 (as the sap help says), it doesn't work, i use: PNPBEGPS = today and PNPENDPS = today, and the result it's a lot of registers that doesn't meet that criteria.
Also i tried with: data selection period, today, up to day, current month. And the result it's with the same problem.
How does works period parameters in a program with logical database PNP?
This it's the program example, i use the default category.
REPORT ZRPHRTEST.
tables: pernr.
infotypes: 0001.
start-of-selection.
get pernr.
write: pernr-pernr, p0001-begda, p0001-endda.
end-of-selection.
write 'fin'.Hi,
Define pernr table under tables statement then and use GET PERNR event.This get event is followed by End-Of-Selection.
Syntax: Tables pernr.
Get pernr.
Try, activate and test. This should solve your problem.
Regards,
Abhijeet -
Customizing user selection fields of Logical database PNP
Dear Gurus,
I had made a z-copy of payslip program for incorporation of Logo. Now we need to put this report in Enterprise Portal (EP). Now since we would not want any user to view any other person's payslip, I need to disable the selection field (PERNR) for user selection.
Problem is this field for user selection is coming from standard Logical Database (LDB - PNP) used in the program. So how can I make this field hardcoded as sy-uname and non-modifiable without making z-copy of LDB-PNP.
Also I wish to harcode Payroll Area writing some code (from table PA000) but again I cannot write this in std. PNP LDB and writing it in driver program will not help.
Thanks in advance.
Regards,
AmitWrite the highlighted coding in initialization ...
initialization .
select single pernr from pa0105
into pernr-pernr
where usrid = sy-uname.
if sy-subrc = 0.
PNPPERNR-sign = 'I'.
PNPPERNR-option = 'EQ'.
PNPPERNR-LOW = pernr-pernr.
Append PNPPERNR.
endif.
loop at screen.
if screen-name = 'PNPPERNR-LOW' or
screen-name = 'PNPPERNR-HIGH'.
screen-input = '0'.
endif.
modify screen.
endloop.
at selection-screen output.
loop at screen.
if screen-name = 'PNPPERNR-LOW' or
screen-name = 'PNPPERNR-HIGH'.
screen-input = '0'.
endif.
modify screen.
endloop. -
To use logical database PNP in class builder
Hi
Inside the class builder (SE24), i have a created a method.
Now while implementing that method, that is between method and endmethod
statement can i implement logical database PNP or PNPCE.
If 'yes' how to use it.
if 'no' what is the other way to implement authorization.
Pls help meHello,
assume that the routines GET_ITnnnn are written by yourself. For reading infotypes ABAP Objects provides us with same very helpful classes as shown below:
* define data
DATA:
gif_employee type ref to if_pt_employee,
go_employee type ref to cl_pt_employee,
gt_infotypes TYPE tim_tmw_itlist_tab,
go_control TYPE REF TO if_pt_td_control,
go_data TYPE REF TO if_pt_td_base,
go_pnnnn TYPE REF TO if_pt_td_itnnnn,
gt_p0001 TYPE TIM_P0001_TAB,
gt_p0002 TYPE TIM_P0002_TAB,
gt_p0003 TYPE TIM_P0003_TAB.
start-of-selection.
GET pernr.
<b>* Create employee instance</b>
gif_employee = cl_pt_employee=>get_employee( pernr ).
go_employee ?= gif_employee.
<b>* Get master infotypes (0001, 0002)</b>
CALL METHOD go_employee->get_master_data
EXPORTING
im_begda = id_fromdate
im_endda = id_todate
IMPORTING
* EX_I0000 =
EX_I0001 = gt_p0001
EX_I0002 = gt_p0002
* EX_I0007 =
* EX_I0008 =
<b>* Append all other required infotypes to itab</b>
APPEND '0003' TO gt_infotypes.
CALL METHOD go_employee->get_infotypes
EXPORTING
i_itlist = gt_infotypes
i_fromdate = id_fromdate " start date
i_todate = id_todate " end date
* I_FILTER =
i_noauthcheck = 'X'
IMPORTING
e_result = gt_infty_request
e_retcd = gd_retcd.
* Please see documentation of parameter e_retcd...
LOOP AT gt_infty_request INTO go_control.
go_data = go_control->data. <b>" get data object</b>
* Casting
TRY.
go_pnnnn ?= go_data.
CATCH cx_sy_move_cast_error.
CONTINUE.
ENDTRY.
<b>* Convert infotype (semi-transparent -> transparent)</b>
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = lo_pnnnn->prelp
IMPORTING
pnnnn = gs_p0003.
APPEND gs_p0027 TO gt_p0003.
ENDLOOP.
The class CL_PT_EMPLOYEE provides us already with very easy access to so-called master infotypes (000, 0001, 0002, 0007 and 0008). All other infotypes can be read using method GET_INFOTYPES.
Using these classes we have a very convenient and standardized way of accessing all kinds of infotypes.
Vasanth
Maybe you are looking for
-
Unable to load pictures with mac osx..
I was wondering if anyone knows the reason why I'm unable to load pictures with my macbook for e-bay when I sell??? It just keep turning and turning with no results... Is it the new operating platform (osx) or what could it be?? I have tried it with
-
I would like to take small (2" X 2" approx.) samples of critical areas of a large image, arrange them as a collage on a smaller sized image and print these samples out so that I can evaluate the samples before committing to making a full sized print.
-
Want to add one more table in Inner join
Hi all, my code is show below. SELECT a~budat a~mblnr b~matnr b~menge b~bwart INTO CORRESPONDING FIELDS OF TABLE it_rawmat FROM mkpf as a inner join mseg as b on a~mblnr = b~mblnr where b~bwart = '261' and b~werks in werks
-
All Files in Sharepoint Designer
Hi We have managed to create some environments for different teams to work on projects in Sharepoint 2010. Now, in Sharepoint Designer, if I open the Production Site, there is a folder named 'pages' in the All Files Section. However the Lab Environme
-
Apple TV doesn't rotate photos correctly in slideshow
Hi, In ATV OS 2.4, a new bug was introduced by Apple where photos taken in vertical portrait mode were not rotated correctly in the photos slideshow. In prior releases (v2.3 and earlier), there was not problem and portrait photos rotated just fine in