Help in pnpce
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
Hello,
first go to SE36 and look at the quite extensive documentation for LDB PNPCE.
Second you can influence the look of the selection screen via report category. In IMG: Personnel Management -> Human Resources Information System -> Reporting -> Adjusting the Standard Selection Screen.
For PNPCE you can choose the different dates and set even a default.
Regards,
Michael
Similar Messages
-
Help with pnpce logic data base
Hallow I doing a program that use logic data base pnpce(my first time) and in the program I use get peras to bring the employee num and in the loop the name of employee
Something I doing wrong because its not working what?
I just wont to bring to my table person_tab employee num and name.
thankes
Tables :pernr
Nodes:persa
Infotypes:0000 like t_oooo,
00002 like t_0002.
START-OF-SELECTION.
GET peras.
LOOP AT t_0000.
MOVE t_0000-pernr TO person_tab-objid.
APPEND person_tab.
Endloop.
Loop at t0002.
MOVE t_0002-nachn TO person_tab-lastname.
MOVE t_0002-vorna TO person_tab-firstname.
APPEND person_tab.
ENDLOOP.
END-OF-SELECTION.Hi there. I'm not sure what version you are on, but in ERP 2005 this is an obsolete statement. Here's an alternate way to get the information you're looking for:
TABLES: PERNR.
INFOTYPES: 0002.
DATA: BEGIN OF person_tab OCCURS 0,
objid LIKE PERNR-PERNR,
lastname LIKE P0002-NACHN,
firstname LIKE P0002-VORNA,
END OF person_tab.
START-OF-SELECTION.
GET pernr.
person_tab-objid = pernr-pernr.
RP-PROVIDE-FROM-LAST P0002 space sy-datum sy-datum.
person_tab-lastname = p0002-nachn.
person_tab-firstname = p0002-vorna.
APPEND person_tab.
CLEAR person_tab.
END-OF-SELECTION.
Even if you don't end up using this code, you would need to change yours so that you aren't appending to your person_tab table until you have moved all of the data for the fields of your record. By appending twice like you currently are doing, you are creating two separate records (one with just the pernr and another with the first and last name). I hope this helps.
- April King -
PNPCE LDB search help shows all action types?
Hi All!
I use pnpce in my program. Want to select all vacations in 302 infotype.
By "search help" button i use "HR Master Record: Infotype 0302 (Additional Actions)" sh.
P* structures (such p0298, p0302) filles up with ALL "Action types" - not only with "V7" which i specified.
Tell me pls why?
Thanks fo ideas!!
Edited by: Julius Bussche on Dec 29, 2008 11:01 AMHi,
I understood from the qn that you have used PNPCE as LDB.You want to select some specific action from F4 help in input.That is not getting populated.
Sometimes, entry might be restricted for hits.After pressing F4, make the maximum no. of hits as blank. -
Logical Database - PNPCE - Hide 'Org Structure' 'Search Help' etc buttons
Hi,
We have created a report by making a z copy of RCATS_APPROVE_ACTIVITIES. In the Z version we need to hide the buttons on the titlebar of the selection screen.
Buttons are
- Org Structure
- Search Help
- Dynamic Selection
- Selection Fields.
Can you please suggest if I can do something from the code ?
Regards,
Chiranjeevi.Hi,
Thanks for your suggestion. However, there is no title bar method that we can modify to remove the buttons. I have created a Z report Category by copying the existing one and made the modifications.
In that we can hide/display UI elements which are displayed by Logical Database.
Regards,
Chiranjeevi. -
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 - HR Logical Database PNPCE
Hi everyone,
Can anybody help me regarding lofical databse PNPCE used in HR abap.
If u have any information regarding the same,please provide.
Thanks.
SandyHi sandeep,
1. PNPCE is just like the original/last
PNP
2. PNPCE has extra fields for selection
on selection-screen.
3. It has got extra events as compared to PNP
GET PERSON, GET GROUP, and GET PERAS
4. For more info,
goto SLDB tcode.
Type PNPCE
5. choose radiobutton for 'Documentation'
press 'Display'
6. There u will find lot of information.
regards,
amit m. -
HELP - ABAP Program Cancelled After Running for 2.5 Hours in Background
I have an ABAP report program that was being tested in our QA system and it died after running for 2.5 hours with the status of "Cancelled" (which, I assume, means it was terminated by SAP for exceeding some type of governor).
I ran Code Analyzer and no performance issues were recognized.
I am running several SELECT statements during program execution. These are a list of all the SELECT statements used in my program. Also, I'm using PNPCE to get a list of pernrs for which to pull data at the beginning of the program.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE gt_p0167
FROM pa0167
WHERE pernr EQ gt_selected_pernrs
AND bplan IN s_bplan
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE fgbdt fasex
INTO (lv_dob, lv_gender)
FROM pa0021
WHERE pernr EQ gt_selected_pernrs
AND subty EQ <fs_dtyxx>
AND objps EQ <fs_didxx>
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE agency ansvh
INTO (p_agency_out, lv_ansvh)
FROM pa0001
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE vorna nachn gbdat perid gesch
INTO (gt_control_table-fname, gt_control_table-lname, gt_control_table-dob, gt_control_table-mskssn, gt_control_table-gender)
FROM pa0002
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE perid
INTO (lv_ssn)
FROM pa0106
WHERE pernr EQ p_pernr_in
AND subty EQ p_subty_in
AND objps EQ p_objps_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE smoke
INTO (p_smoker_out)
FROM pa0376
WHERE pernr = p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE state pstlz zcounty
INTO (p_state_out, lv_zip, p_county_out)
FROM pa0006
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE werks btrtl
INTO (lv_werks, lv_btrtl)
FROM pa0001
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE region
INTO (p_region_out)
FROM zpat_county_code
WHERE county EQ p_county_in.
SELECT SINGLE pernr
INTO lv_pernr
FROM pa0002
WHERE perid EQ gt_cobra_table-l_essn.
SELECT SINGLE eecst ercst
INTO (lv_eecst, lv_ercst)
FROM t5ubi
WHERE barea EQ '01'
AND bplan EQ lv_bplan
AND bcost EQ p_bcost_in
AND cstv1 EQ '0001'
AND smoke EQ p_smoker_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE kwert
INTO lv_kwert
FROM t511k
WHERE molga EQ '10'
AND konst EQ 'ZCOB1'
AND begda LE pn-endda
AND endda GE pn-begda.The screen shot the tester sent me only says that it was canceled. However, the log shows the following:
09/17/2008 16:54:32 Job Started
09/17/2008 16:54:32 Step 001 started (program ZBNI001...
09/17/2008 19:22:09 ABAP/4 processor: DATASET_NOT_OPEN
09/17/2008 19:22:09 Job cancelled
I'm not sure it was an error, per se, but maybe SAP canceled it because it had been running too long? The "DATASET_NOT_OPEN" is curious although I've no idea what it means.
Thanks for your help. -
Logical Database (PNPCE) , selection screen hide.
Hi Gurus,
i have couple of questions related to logical database pnpce.
1.Since i know logical database has there own selection screen , my requirement is i want to add my custom fields to the selection screen other than what is provided is it possible or not.
2. i want to hide the selection screen of the logical database, but i do want to create my own in which i will be declaring some select options of the standard logical database screen has, like pernr, organisation unit, etc, how do i communicate the entered data with the logical database if i dont use the logical database standard selection screen, hope i could able to explain my problem, please see into my problem and let me know thanks in advance,
hussainiHussain,
LDB have standard selection screens, if at all you want to customize those standard selection screen you would have to define a report category for your program. You`ll have to configure in the spro settings for your corresponding report category.
If you would like to declare your own selection criteria, you can very well do it and these criteria are visible below the standard selection criteria. You can process these elements in your program and not in the LDB standard program. Use the normal selection screen events in your program for processing your selection criteria.
Hope this info is helpful, reward points if convinced.
Regards -
How to extend dynamic selection for Logical Database PNPCE
Hi All,
I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
Thanks
RanjithHi All,
I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
Thanks
Ranjith -
How to create a new selection screen IN LOGICAL DATABASE PNPCE
how to create a new selection screen LDBS PNPCE
Hello Ankit,
Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
For later (which is more common), you can use HR Report Category.
Hope this helps.
Best Regards,
Biraju Rajyaguru -
HR Reporing Payroll using Logical Database PNPCE
Hi ALL
Can any body explain me how can we do HR Payroll reporing using logical database PNPCE.
In the program attibutes as mentioned we need to scee 900 for payroll reporting, but when I use PNPCE I cant see that screen in the Dropdown.
can any body help me with this.
regards
AJcheck this program..
REPORT ZHR_PAYROLL_EX1
MESSAGE-ID ZZ
LINE-SIZE 132
LINE-COUNT 64(2)
NO STANDARD PAGE HEADING .
T A B L E S *
TABLES : PA0001 , "Infotype 0001
PCL1, "HR Cluster 1
PCL2, "HR Cluster 2
T549A, "Payroll Accounting Areas
T549Q. "Payroll Periods
I N C L U D E S *
*--Standard Include for US Payroll
INCLUDE RPC2RUU0. "Cluster RD data definition
INCLUDE RPC2CD00. "Cluster CD Data-Definition
INCLUDE RPC2CA00. "Cluster CA Data-Definition
INCLUDE RPC2RX00. "Cluster RF data definition internat. part
INCLUDE RPPPXD00. "Data definition buffer PCL1/PCL2
INCLUDE RPPPXD10. "Common part buffer PCL1/PCL2
INCLUDE RPPPXM00. "Buffer handling routine
INTERNAL TABLES
*Internal Table to Hold data from PA0001
DATA : BEGIN OF I_0001 OCCURS 0,
PERNR LIKE PA0001-PERNR, "Personnel Number
END OF I_0001.
*Internal Table to Hold data from PA0001
DATA : BEGIN OF I_FINAL OCCURS 0,
PERNR LIKE PA0001-PERNR, "Personnel Number
GAMNT LIKE PC207-BETRG, "Gross Amount
NTAMT LIKE PC207-BETRG, "Net Amount
PAYDT LIKE PC261-PAYDT, "Pay Date
RUNDT LIKE PC261-RUNDT, "Run Date
VORNA LIKE PA0002-VORNA, "First Name
NACHN LIKE PA0002-NACHN, "Last Name
END OF I_FINAL.
*Internal Table to Hold data from PA0002
DATA : BEGIN OF I_0002 OCCURS 0,
PERNR LIKE PA0002-PERNR, "Personnel Number
VORNA LIKE PA0002-VORNA, "First Name
NACHN LIKE PA0002-NACHN, "Last Name
END OF I_0002.
Control record type
TYPES : BEGIN OF T_T569V,
ABKRS LIKE T569V-ABKRS, "Personnel Area
PABRJ LIKE T569V-PABRJ, "Accounting year
PABRP LIKE T569V-PABRP, "Accounting period
STATE LIKE T569V-STATE, "Status of Control Record
ADRUN LIKE T569V-ADRUN, "HR: Special payroll run
END OF T_T569V.
STRUCTURES
DATA : WA_T569V TYPE T_T569V. " Work area for t569v
DATA
DATA : V_PABRJ LIKE T569V-PABRJ, "Accounting year
V_PABRP LIKE T569V-PABRP, "Accounting period
V_BEGDA LIKE SY-DATUM, "Begin Date
V_ENDDA LIKE SY-DATUM, "End Date
V_FPPER(6) TYPE C, "For Period
V_SEQNR LIKE PC261-SEQNR. "Sequence Number
SELECTION SCREEN
Selectio Screen Block for Employee Selection.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_PERNR FOR PA0001-PERNR, "Pernr
S_DATE FOR SY-DATUM. "Date
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION
START-OF-SELECTION.
*Get Data from pa0001
PERFORM GET_DATA_FROM_0001.
*Get Data from pa0001
PERFORM GET_DATA_FROM_0002.
*Get CHAD Details
PERFORM GET_PAYDATA.
END-OF-SELECTION
END-OF-SELECTION.
IF NOT I_FINAL[] IS INITIAL.
*Print the Final Report.
PERFORM PRINT_REPORT.
ENDIF.
T O P O F P A G E
TOP-OF-PAGE.
Display Header
PERFORM DISPLAY_HEADER.
S U B - R O U T I N E S
*& Form get_data_from_0001
Get Data from 0001
FORM GET_DATA_FROM_0001.
SELECT PERNR "Personnel Number
FROM PA0001
INTO TABLE I_0001
WHERE PERNR IN S_PERNR AND
ENDDA >= S_DATE-LOW AND
BEGDA <= S_DATE-HIGH .
IF SY-SUBRC = 0.
SORT I_0001 BY PERNR.
ENDIF.
ENDFORM. " get_data_from_0001
*& Form get_data_from_0002
Get Data from 0002
FORM GET_DATA_FROM_0002.
SELECT PERNR "Personnel Number
VORNA
NACHN
FROM PA0002
INTO TABLE I_0002
WHERE PERNR IN S_PERNR AND
ENDDA >= S_DATE-LOW AND
BEGDA <= S_DATE-HIGH .
IF SY-SUBRC = 0.
SORT I_0002 BY PERNR.
ENDIF.
ENDFORM. " get_data_from_0002
*& Form populate_chad_coinage_table
text
FORM GET_PAYDATA.
LOOP AT I_0001.
READ TABLE I_0002 WITH KEY PERNR = I_0001-PERNR BINARY SEARCH.
IF SY-SUBRC = 0.
I_FINAL-VORNA = I_0002-VORNA.
I_FINAL-NACHN = I_0002-NACHN.
ENDIF.
Read Result Directory for Payroll Results for a Employee.
PERFORM CU_READ_RGDIR.
Get Sequence Number & Associated Payroll Results.
PERFORM GET_PAYROLL_RESULTS.
ENDLOOP.
ENDFORM. " get_paydata
*& Form cu_read_rgdir
Reag rgdir to get the results with conty grouping 'TD'
FORM CU_READ_RGDIR.
DATA : V_MOLGA LIKE T500L-MOLGA ."Country Grouping
*Call function module to get Results
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR = I_0001-PERNR
IMPORTING
MOLGA = V_MOLGA
TABLES
IN_RGDIR = RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
SORT RGDIR BY SEQNR.
ENDFORM. " cu_read_rgdir
*& Form get_payroll_results
Get Sequence number
FORM GET_PAYROLL_RESULTS.
LOOP AT RGDIR WHERE SRTZA = 'A' AND
VOID IS INITIAL AND
REVERSAL IS INITIAL AND
OUTOFSEQ IS INITIAL AND
PAYDT IN S_DATE.
V_SEQNR = RGDIR-SEQNR.
*-- Macro Call for Germany
RP-INIT-BUFFER.
RX-KEY-PERNR = I_0001-PERNR.
RX-KEY-SEQNO = V_SEQNR.
RP-IMP-C2-RU.
LOOP AT RT WHERE LGART = '/559'.
I_FINAL-PERNR = I_0001-PERNR.
I_FINAL-GAMNT = RT-BETRG.
I_FINAL-PAYDT = RGDIR-PAYDT.
I_FINAL-RUNDT = RGDIR-RUNDT.
APPEND I_FINAL.
CLEAR I_FINAL.
ENDLOOP.
ENDLOOP.
ENDFORM. "get_payroll_results
*& Form display_header
Display Header
FORM DISPLAY_HEADER .
FORMAT COLOR 1.
ULINE.
WRITE:/1 SY-VLINE,
(15) 'Empl Number',
SY-VLINE,
(20) 'First Name',
SY-VLINE,
(20) 'Last Name',
SY-VLINE,
(15) 'Pay Date',
SY-VLINE,
(15) 'Run Date',
SY-VLINE,
(25) 'Gross Amount',
132 SY-VLINE.
ULINE.
FORMAT COLOR OFF.
ENDFORM. " display_header
*& Form print_report
Display Report
FORM PRINT_REPORT .
LOOP AT I_FINAL.
WRITE:/1 SY-VLINE,
(15) I_FINAL-PERNR,
SY-VLINE,
(20) I_FINAL-VORNA,
SY-VLINE,
(20) I_FINAL-NACHN,
SY-VLINE,
(15) I_FINAL-PAYDT,
SY-VLINE,
(15) I_FINAL-RUNDT,
SY-VLINE,
(25) I_FINAL-GAMNT,
132 SY-VLINE.
ULINE.
ENDLOOP.
SKIP 2.
WRITE:/1 'Period Begin Date:',(25) V_BEGDA.
WRITE:/1 'Period End Date:',(25) V_ENDDA.
ENDFORM. " print_report -
PNP and PNPCE databases in ESS portal
HI,
As all you know standard ESS works on PNP logical database.but we have a situation in our project that we should use PNPCE database instead of PNP.
So i would like to get your inputs on the usage of PNPCE in ESS .will there be any bad impact of using that database
helpful inputs will be rewarded
BalaHi Bala,
It's very interesting question.
In case of PNP we are using the employee number as the base and using the sap logon name of this user pernr.
But if we are able to do the same with Person ID of the employee then I think we will be able to use the ESS with PNPCE.
I am not sure that is this possible but just giving a thought.
Regards,
Umesh Chaudhari. -
PNP and PNPCE databases in ESS
HI,
As all you know standard ESS works on PNP logical database.but we have a situation in our project that we should use PNPCE database instead of PNP.
So i would like to get your inputs on the usage of PNPCE in ESS .will there be any bad impact of using that database
helpful inputs will be rewarded
BalaHi Bala,
It's very interesting question.
In case of PNP we are using the employee number as the base and using the sap logon name of this user pernr.
But if we are able to do the same with Person ID of the employee then I think we will be able to use the ESS with PNPCE.
I am not sure that is this possible but just giving a thought.
Regards,
Umesh Chaudhari. -
Additional i/o fields to infoset query based on PNPCE logical database
Hi All,
I have a requirement to add two additional input and output fields "job function" and "job family" to a infoset query based on logical database PNPCE. I am new to writing code in infset query and there are so many code areas in infoset query. I am confused where to write code and how to limit the output list based on the user selection to the additional fields "Job function" and "job family". have any one done this in the past?. is there sample code somewhere to do something similar to this?
Your help will be much appreciated with points! (as per our community guidelines)
Regards,
ArulHello Arul,
Your question would be better answered if you post it in on of the Business Intelligence Forums. Please close this thread and goto:
Expert Forums » Business Intelligence
or
/community
Regards,
Manny -
Initialize Org Units on PNPCE Org Structure selection
Hi All
In the selection screen of programs where PNP or PNPCE logical database is used, the Org Units can be selected from the Org Structure.
Can anyone tell me how to initialize Org Units values into the org structure screenHi..
I hope this may help you...
select-options: s_orgeh for p0001-orgeh.
*-- pre-populate top-level org units to process
s_orgeh-sign = 'I'.
s_orgeh-option = 'EQ'.
s_orgeh-low = 'xxxxxxx'.
append s_orgeh.
s_orgeh-low = 'xxxxxxx'.
append s_orgeh.
Thank you
Maybe you are looking for
-
Using multiple devices on the same itunes account
My children are getting ipod touches for xmas. I want to be able to put any prior purchased movies and music that is appropiate from my account. Please help
-
Addiing additional data in header of excel output of alv excel dowload.
Hi Experts, I want to set(print) some additional data in header(with table header) of excel output of alv standard functionality(Export to Microsoft Excel) in webdynpro abap. any suggesions... Reg, Rajesh.
-
Hello, I am in the process of transferring data and contacts onto a Mysql database. I have had some help and am trying to get a software solution. So main features would be to migrate large amounts of data and contacts every day. The migration would
-
ORA-00900 when there is huge quantity access to Data Base
Hi I have some Java programs which access to the same Data Base Oracle 11gR2 from diferent computers and diferent Operative System. in a normal execution everything is working but when I want to test the 'stress' in the data base I execute many concu
-
hi ... How can I make viewshed analysis on a georaster dataset using spatial Oracle? In case no direct function can perform this ... is there any other solution? Your help is highly appreciated