PNPCE selection screen
Hi, I have problem in using logical database pnpce.
When using the logical database pnpce, it already has it's own default selection screen.
The default for the upper block of the selection screen(payroll period) is:
reporting period: today
What do i have to do if i want to set the default selection screen into
period: current payroll period
Many thanks.
Hi ,
You can get selection-options by pressing F1 then technical attributes .
Then in AT SELECTION-SCREEN OUTPUT event you write the following code ---
AT SELECTION-SCREEN OUTPUT / INITIALIZATION.
select_option_name-sign = 'I'.
select_option_name-sign = 'EQ'.
select_option_name-sign = sy-datum.
append select_option_name .
Regards
Pinaki
Edited by: Pinaki Mukherjee on Feb 9, 2009 5:56 AM
Similar Messages
-
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 -
HR PNPCE - Selection Screen - Payroll Period not available
Hi all,
I am using PNPCE and have created a custom Report Category. I have unchecked the "Data selection = EE selection" so that I now have 2 seperate period drop down boxes. I have selected all period options for both selection periods.
Problem is that under the "Data Selection Period" none of the Payroll Period options are available for using even though I selected them in the Report Category. ??? Anyone have this problem before?
If I go back and check the "Data selection = EE selection" then they appear and are available for selecting.
Thanks, MarkHi ,
You can get selection-options by pressing F1 then technical attributes .
Then in AT SELECTION-SCREEN OUTPUT event you write the following code ---
AT SELECTION-SCREEN OUTPUT / INITIALIZATION.
select_option_name-sign = 'I'.
select_option_name-sign = 'EQ'.
select_option_name-sign = sy-datum.
append select_option_name .
Regards
Pinaki
Edited by: Pinaki Mukherjee on Feb 9, 2009 5:56 AM -
How to pass a default value in selection screen of logical database pnpce
Dear All,
Can any one tell me how to pass a default value in selection screen of logical database pnpce .
Regards
Rakesh SinghHi Rakesh,
Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
Regards,
Rahul -
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 -
Selection screen PNPCE - hide som options
Hi group,
We have an infoset based on LDB PNPCE. We create queries that we assign to transaction codes for end users. So far so good. However, in the selection screen, we would like to hide some options.
Output format.
Hide the expand button. We want the user to be able to choose layout setting, but not to choose all the other options when you expand (like ABC-analysis).
Dynamic selection
We would like to hide this button as well. But not as important.
Any suggestions appreciated.
KirstenHi,
For the ALV output format control, you can look at standard auth. object S_ALV_LAYO. A value of 23 gives maintenance access within this and this controls whether you can change ALV options. Iu2019m not entirely sure though; please consult with your security team.
Maybe auth. object S_SCR for dynamic selection.
Hope this gives you a starting point.
Donnie -
How to create a new selection screen LDBS 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 -
Selection screen validation in HR ad hoc query
Hi Experts,
I have created a query in SQ01. My infoset is created using Logical database PNPCE. Selection criteria contains Fields Personnel Number and Employment status. so when the query will be run, I want to display error message if invalid personnel number or Employment status is entered. Please let me know, How do I achieve it.
Thanks in advane.
Regards.Hi
After declaring selection screen fields.
select the field to handle validation and click on the button 'Check coding for
Element' .
you will get a block to handle the validation. -
Set default value to selection screen for report
Hi All,
I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
Hope someone can help me on this.
Thanks.Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks. -
How do I add validation to a system-generated Selection Screen?
As HR ABAPers know, using the Logical Database approach (I'm using PNPCE) gives you a system-generated Selection Screen. Part of the specs I have for this report involves making sure that the begin and end dates for the period selected are for a two-week period. If not, I should display an error message until the user enters a period such that the period (pn-begda and pn-endda) reflect a two-week period.
The code for the validation is easy enough, and I put it in the AT SELECTION-SCREEN event. But here's the problem -- the code fires every time the user clicks the "Reporting Period" drop-down box, never giving the user a chance to specify a two-week period. It fires because pn-begda and pn-endda are still all zeroes. Even if I select "Other Period" from the drop-down list, the text boxes to allow me to specify the begin and end dates don't appear.
I've been working on this for quite a while, trying all kinds of things, but I'm spinning my wheels now. I just want that check to happen when the user clicks the Execute button on the Selection Screen, not when he/she is still trying to enter criteria. I'm thinking screen field validation for a system-generated Selection Screen has to be a pretty common thing, and there must be a good solution out there.
Any ideas?Rich,
Absolutely beautiful -- that's exactly what I needed to learn. Thank you so much.
Rob, I thought about that. I even proposed to the users that I could default in a two-week range beginning with today, exactly as you suggested, but they didn't want that. They felt that this report would more often than not be run to reflect data from two-week periods not necessarily starting today. Still thought it was a good idea, but that's their call. _
Again, thanks Rich. Points awarded. -
Want to have own selection screen in HR-ABAP report using LDB
Hi experts,
I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
Please help me..its very urgent..Hi,
chk this out:
Create Report Categories
In this step, you define the report categories and determine the layout
of the standard selection screen for these report categories. You can
create report categories for programs or queries that are based on the
PNP or PNPCE logical databases.
The definition of report categories is divided into two sections:
o In the Change Report Category view, you define general attributes
such as sort order, input fields for date, and so on.
o In the Change Selection Criteria view, you define which selection
fields of the logical database should be avaliable on the selection
screen.
Example
You want to set up your system so that your employees can only start
evaluation reports for Payroll if they use a payroll area. Within a
payroll area, you should be able to select according to personnel
number. Additional selection criteria should not be possible and you
should not be allowed to enter a sort sequence.
Standard settings
The standard system already contains report categories. You can find the
attributes of the report categories in the table.
Note the following five report categories in particular:
o Report category ' ' is the SAP default report category for
programs that are based on the PNP logical database.
o Report category PNPCE is the SAP default category for programs that
are based on the PNPCE logical database.
o Report category '00000000' is the customer-specific default category
for programs that are based on the PNP logical database.
o Report category '0PNPCE' is the customer-specific default category
for programs that are based on the PNPCE logical database.
o Report category __X2001 is the default category for Queries that
are based on an InfoSet of the PNP LDB.
o Report category QUEPNPCE is the default category for queries that
are based on an InfoSet of the PNPCE LDB.
The default report categories are used when a report is called if
the report has not been assigned a report category.
Parameters and Options for Report Categories of the LDB PNP and PNPCE
Parameters and Options in Screen Area General Data
If you activate this parameter, you can only enter data on the data
selection period if you use reports that have been assigned. The
same date entries are then used for the person selection as for the
date selection.
o Matchcode allowed
If you activate this parameter, you have use of a Matchcode
pushbutton (search help) if you use reports that have been assigned.
This pushbutton enables you to perform the person selection.
o Sort allowed
If you activate this parameter, you have use of a Sort pushbutton if
you use report that have been assigned. This pushbutton enables you
to define a sort order before you execute the report.
o Organizational structure allowed
If you activate this parameter, you have use of an Org.Structure
pushbutton if you use reports that have been assigned. This
pushbutton enables you to perform the person selection.
Note:
For more information about these options, see the online
documentation under this path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> Standard HR Reports -> Report Selection Screen in
Human Resources Management.
Parameters and Options in Screen Areas Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Options for data selection period and person selection period (key
date and so on)
Here you define which options for date and person selection are
available for reports that have been assigned.
o Options for payroll area/period/year
Here you define which options for selection using payroll
area/period/year are available for reports that have been assigned.
Parameters and Options in Screen Area Selection View
o Type/Name
This parameter enables you to use selection views to define report
categories. You use the selection view selected here to determine
which fields are available in the Dynamic Selectionsy.
Note:
You create selection views for the PNP and PNPCE logical databases
in the Object Navigator (SE80):
1. Start the Object Navigator (SE80)
2. Choose Workbench -> Edit Object.
3. Choose the More... tab page and the Selection view on this tab
page.
4. Choose Create.
5. In the Create Selection View dialog box, choose the For any
tables option.
6. In the Name of view field, enter a name for your selection view.
7. In the Tables dialog box, enter the name of the table from which
you want to use fields.
Note:
When you enter the table name, observe the naming convention in
Personnel Administration:
Infotype number: nnnn -> table name: PAnnnn
8. Choose Continue.
9. In the Functional groups area, define functional groups by
assigning a name and a number.
10. Assign fields from the selected tables to the functional groups
by entering the number of the desired functional group in front of
each field.
11. Save your entries.
For more information about adjusting the dynamic selections using
your own selection views, see the online documentation under the
following menu path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> HR Standard Reports -> Report Selection Screen in
Human Resources Management -> Enhancing the Selection Screen -
Dynamic Selections.
If you do not want to offer dynamic selections, make the following
settings:
- LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.
- LDB PNPCE: Leave the Selection view field empty.
Parameters and Options in Screen Area Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Available input parameters, date or period entry (today, key date,
all, and so on), and standard value.
Using the Standard value option, you define which of the selected
options is shown.
Parameters and Options in Screen Area CE Selection Fields
o CE selection fields (external person ID, grouping reason, grouping
value)
Using the options in this area, you define whether the external
person Id, grouping reason, or grouping value are available on the
selection screen.
Note:
These parameters are only relevant for you if you implement
Concurrent Employment (see also note 517071).
Parameters and Options in Screen Area Selection view
o Dynamic selections as dialog box
If this switch is set, you can call the dynamic selections as a
dialog box.
o Dynamic selections active
If this switch is set, the dynamic selections of the logical
database are active at the start of the report.
Note that the following combinations are possible for the last two
options mentioned:
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active
Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive
Activities
1. Choose Edit -> New entries.
2. Enter an abbreviation and a long text for the report category.
The customer name range for report categories is 0-9.
3. Select the For the PNPCE logical database checkbox, if you want to
create a report category for a program or for queries of the PNPCE
logical database.
4. In the General Data screen area, choose the desired options.
If you want to use selection IDs, you must have first created and
grouped selection Ids. The IMG path to do this is given in the
parameter description section.
5. In the Data selection period/person selection period or Selection
period screen area, choose the desired options.
6. In the Selection view screen area, choose the desired options.
7. In the CE selection fields screen area, choose the desired (only
possible for report categories of the LDB PNPCE).
8. Save your entries.
9. Choose the subactivity Permitted selection criteria.
10. Choose Edit -> New entries.
11. In the Select option field, use the input help to select each field
that should be available on the selection screen.
12. Select the checkbox in the 1.page column, if you want this selection
field to be available directly when you call the selection screen.
Further notes
13. If you want to copy entries, you still have to enter the selection
parameters again in the subsequent screen.
o If you create the report category '000000000', a selection screen is
generated according to report category '00000000'for all reports for
which a report category has not explicitly been assigned.
Assign Report Categories
In this step, you assign a report category to your reports.
Example
You have created your own report, for example ZPCTEST1, and would like
it to have the selection screen that corresponds to that of the
evaluation report for Payroll, which is assigned to report category
'__M00001'.
Assign report category '__M00001' to the report.
Requirements
You must have defined the Report Categories.
Standard settings
SAP Standard Reports:
In the standard system, reports are assigned a report category. If you
want to override these assignments, perform the activities described
here. If you want to assign report categories to standard reports using
SE38, this represents a modification.
Customer-Specific Reports:
For reports you have developed yourself, you can either assign report
categories by performing the activities described here or directly in SE38.
Recommendation
Only assign a report category if you have created your own reports or if
the selection screens in the standard system do not meet your
requirements.
Activities
1. Choose Edit -> New entries.
2. Perform the required assignment using the Program name and Report
category fields.
3. Save your entries.
reward if helpful
regards,
madhumitha -
Selection screen fields are not getting detected in an infoset in code
Hi All,
I am developing an infoset query using logical database 'PNPCE'. I am facing problem while writing a validation on selection screen fields on an infoset query at infoset code level.
The fields that are under program specific selection are determined at runtime with variables viz. SP$00001, SP$00002 etc. There are actually select options on selection screen of an infoset query.
So I cannot write a direct code on these fields as they do not exist at infoset level and hence cannot be detected.
I want to put down a validation that if user does not select anything on selection-screen and executes the query, then he should get a pop-up message 'Narrow down your search...' and he should go back to selection screen again.
Is there any alternative way to achieve this?hi,
Your Screen resolution is more in the system that's why while creating it was fine and while executing it was gone after the next field.
so you better create a frame and place that inside it or you can change cols size in the properties about the columns you want -
How to display selection screen of logical database on a screen
Hi Experts,
I create a screen 100, how do I display a selection screen of logical database on this screen.
Thanks!
Anthonyhi
if u are making HR report then goto attribute -> Logical database -> write PNPCE to create in build selection scree.
regards,
Abhilash -
Modification of LDB Selection screen
Hi All,
I am currently working on a HR report and I am using the LDB PNPCE, which provides a default selection screen with two blocks and my requirement is to hide the first block i.e., the Reporting Period block.
Can you please tell me how do I do that. And can I use report category to achieve the same ?.
Thanks in Advance.Hi,
The pnpce ldb gives a default hr report category.
You need to go the the attributes of the report: at the bottom of attribute screen you will see the hr report category.
Create a new hr report category and for the created hr report category remove the check box for the reporting period.
Also you will have to provide some entires on the selection screen like pnporgeh, pnppernr and so on and after creating the same dont forget to put the check box for first page.
Regards,
Divya -
Filtering of the data based upon the selection screen data using ldb
Hi Experts ,
I am using ldb pnpce, for my report ,and i created my own report category with selection paramaters
action type and payroll area
now the problem is when i am giving the action type as Z0 ,the data to be extracted is not getting filtered
based upon the action type ,the data consists the records having different action types other than Z0
Please give me some solution for thisThanks Durga ,but the link wat ever u was for hiding the selection screen fields
but my question is when am using get pernr event my data is not getting filtered with the selection screen paramater value
i,e m giving action type as only hiring ,but m getting the data for all the action types ,its not filtering based upon my selection
Maybe you are looking for
-
PE8 and Encoding/Burning Error: Unknown Error:2131042562
Hello all: I'm new to the forum and came across an issue. I had initially responded to an old post but at the direction of a couple veterans they guided me into doing a fresh post and to provide a lot more detail up front (thank you Bill & Steve).
-
How to conatant value in F4 & it should be gery out
Hi. I need to create a search help for a field . In seection method I have given one table. obviously in F4 it will pull all the data from table which we have mentioned in selection method. but I dont want all the data from it.In my search help
-
I have a mac mini, os 10.4.11 connected to my SONY46X2000 via VGA cable. It works perfectly most of the time, screen res is set to 1024x1280 and the display is recognised as a sonyTV. I am however experiencing the odd drop out, where the screen goes
-
How to Search document by using Long text description contents in SAPEasy DMS
Hi, How to Search document by using Long text description contents in SAPEasy DMS Regards, Shrikant Shinde
-
How to apply input file name to output file in file adapter
Hi Friends In my file to file scenario,i want to use input file name to output file by using adapter specific attributes,for this i have java code.Please suggest me how can i use this java code in mesg mapping and to which field i need to mapping thi