PNP selection field
Hello,
when I use logical database PNP in my interface, may I know what are the names of each selection field? I am trying to determine whether the employee I got has bi-weekly payroll or monthly payroll, which can be obtained directly from the selection screen of PNP if I know what the name is.
Thanks a lot!
Regards,
anyi
Hi ,
I think one more method of looking at the screen fields is using the 'loop at screen' and 'Endloop' statement .
There is an internal table which has all the screen field names .
Also it is helpful to use this when u want to activate or diactivate certain fields in ur screen.
You can see all the field names , there attributes during debugging.
Similar Messages
-
How to hide selection fields when using logical database PNP
hi.
i m using a logical database PNP and report catagory 1PY_DEF in my program.
but when i execute it , it shows to selection box. one name is period and second is selections.
but i just want to show only period box selection fields , not the selection box fields.
how it iz possible.HI,
In my case i haved used the PNP logical database..in the selection box i don't wnat to display Contorling area,Cost Center & Organizational Unit. i have written this code to hide those fields..
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name CS 'PNPKOKRS' OR
screen-name CS 'PNPKOSTL' OR
screen-name CS 'PNPORGEH'.
screen-active = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
CLEAR screen.
ENDIF.
ENDLOOP.
Try modify hide the total block instead of individual fields in that block. -
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. -
Dear freinds how to open the fields in the PNP selection screen
Dear Freinds,
When you use the PNP selection screen , i dont find the Orgeh field in default selection screen .
However , using the code at selection screen output i have closed certain feilds using the loop at screen,
but when iam trying in similar way to show the field
on the selection what is the code i have to use
in the loop at screen...........especially for the field
orgeh .
i have tried the othere options like required.........this working when iam able to make the date fields mandatory, similary i want to try with the below
code to get the field Orgeh on the selection as default feild when we execute the report.
can any one please modify me the code
LOOP AT SCREEN.
IF screen-group4 = '026' .
screen-active = 0.
screen-invisible = 1.
screen-input = 0.
ENDIF.
modify screen.
endloop.
what i have to use in the loop at screen for me to get the orgeh field on the selection screen.
thanks & regards
madhuriHi Madhuri,
Unless you dont declare the orgeh field in hr report category you cannot show it on the selection screen nor you can hide it.
If you do not want to use hr report cateogry.
What you can do is that declare a parameter or selection screen called p_orgeh type orgeh.
Here you can do the hiding on conditions.
Kindly note here that after get pernr you will have to put a check that
check p0001-orgeh in p_orgeh.
Because for the fields declared by you automatic filtering does not happen.
Regards,
Divya
Pts valuable. -
Not able to hide all fields on PNP selection screen.
Dear Freinds,
i wanted to hide all the field which are given on PNP selection screen, with the help of the
report category i have hided all the field including the Person selection period as i require only the
Data selection period. further through coding as below iam able to remove all the radio buttons
Today, Current month,Current year, from today, upto today,Other Period . But i am getting spaces above period (PNPBEGDA and PNPENDA) . i.e in the frame Period i have spaces being left due to
the radio buttons being Hidden . Could any one let me know how to remove the spaces so that
Period range will set exactly in the frame.
LOOP AT SCREEN.
IF screen-name = 'PNPTIMR4' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-name = 'PNPTIMR2 .
screen-input = '0'.
screen-invisible = '1'.
ENDIF
IF screen-group4 = '090' .
screen-input = '0'.
screen-invisible = '1'.
ENDIF.
IF screen-name = 'PNPTIMR1' .
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.
MODIFY SCREEN.
ENDLOOP
Please could any one let me know how can i push up the Period date (PNPBEGDA and PNPENDDA)
so that i will not have any blank space left out in the frame(Period) .
Thanks & Regards
Divya.
Edited by: Divya Kumari on Jan 4, 2009 1:53 PMhi, sorry i think i misunderstand you question,
if i can understand it right now? the following code can help you i am using "PNP" Screen no '900'.
tables:pc207, hrp1000,pernr, pyorgscreen.
infotypes: 0001. "Organizational Assignments
nodes: payroll type pay99_result.
at selection-screen output.
loop at screen.
if ( screen-group1 = 'RES' or screen-group1 = 'YB1' or
screen-group1 = 'YB2' or screen-group1 = 'YB3' ).
screen-active = '0'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
try the following too,
TABLES:pc207, hrp1000,pernr, pyorgscreen.
INFOTYPES: 0001. "Organizational Assignments
NODES: payroll TYPE pay99_result.
AT SELECTION-SCREEN OUTPUT.
BREAK-POINT.
LOOP AT SCREEN.
IF (
* screen-name = '%BYB1005_BLOCK_1000'
screen-name = '%FYTI007_1000'
or screen-name = '%FBIS010_1000'
or screen-name = 'PYVW0_0'
or screen-name = '%_PYPERNR_%_APP_%-TEXT'
or screen-name = 'PYPERNR-LOW'
or screen-name = '%_PYPERNR_%_APP_%-VALU_PUSH'
screen-active = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Replay if any problem,
Kind Regards,
Faisal
Edited by: Faisal Altaf on Jan 4, 2009 6:55 PM -
How to populate f4 values to standard pnp selection screen fields
Hi Experts,
my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my f4 values in the selection screenHi Venkat,
To put ur own values in the F4 help of any field...all u have to do is.
1st fetch all the records that u need to display in F4 help list...in one internal table.
and then use the function module 'F4IF_INT_TABLE_VALUE_REQUEST'
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield =
value_org =
tables
value_tab =
return_tab =
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
where retfield is the field for which u need to give the F4 help.
and valu_tab is the internal table in which u have the list of records to be displayed.
this would do the work...
I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
Till then hope this helps u...all the best
Regards,
Radhika -
Initialization for Date Fields on PNP Selection screen
Hi All,
I need to initialize the date on the LDB PNP selection screen to today.
I gave the following code in the Initialization
Set the Key Date to Today
pnptimr1 = 'X'.
but this doesn't get reflected on the selection screen.
Please suggest.
Thanks,
Suryakiran D.Hi Suryakiran,
1. Only as Default.
2. Use this.
DATA : firstover TYPE c.
AT SELECTION-SCREEN OUTPUT.
IF firstover = ''.
firstover ='X'.
pnptimr6 = ''.
pnptimr1 = 'X'.
ENDIF.
regards,
amit m. -
Hi Guys/Dolls
I have an ABAP program that uses a PNP Logical database.
When the application is launched the "Other period" is automatically selected I have managed (with your help) to make "Today" to be the default via the use of the following statement.
pnptimed = 'D'.
2 other questions
1) The cursor doesn'tt seem to have moved still in the date of the other box how do
I make it move to the default which is now set to "Today".
2) As a matter of curiosity how would I make the current month the default or any other selections the defaults? Are there similar statements like pnptimed = D.?
Many thanks in advance.
RajThe following 2 statement will set Today as the default on the PNP
selection and also move the cursor to that field.
pnptimed = 'D'.
SET CURSOR FIELD 'PNPTIMR1'. -
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. -
hi experts,
i am using pnp selection screen and i want
emp no , personnel area , personnel subarea , epm group ,emp sub group in my selection screen.
how it can be possible ?
actully there is option to select the particuler field option ,but when i again excute the program it shows the std selection screen .
Thanks And Regards.
Priyank Dixithi,
refer to this links
Re: Change in LDP PNP Selection Screen
Re: Change in LDP PNP Selection Screen
http://brookshireconsulting.com/technical_rc.html -
Pnp selection screen 000 how to put default values
Hello everybody,
my question today is about PNP selection screen 000: How can i put default values in the fields w/o using variant.
or can i restrict the numbers of values returned by " get pernr" with conditions not on selection screens.
thank you in advance!
Eric.use this code to default fields on the event INITIALIZATION. you can modify as per you needs..
*----------------------------- INITIALISATION -------------------------------------------
INITIALIZATION.
pnpstat1-low = '0'.APPEND pnpstat1.
pnpstat2-low = '3'. APPEND pnpstat2.
pnptimed = 'I'.
* Default Dates
CONCATENATE sy-datum+0(4) '0101' INTO pnpbegda.
CONCATENATE sy-datum+0(4) '1231' INTO pnpendda. -
Hi Experts,
I am developing a program which uses PNP screen 900. But in the o/p screen when I press "Further Selections", its not displaying the list popup. But its working fine with screen 000.
Kindly let me know whether I am missing anything.
Thanks & Regards
ManasHi Manas,
Please check the below link it will be useful
[Pnp Selection Screen|Not able to hide all fields on PNP selection screen.]
Thanks
Kalyan -
HR-How to use dynamic selection fields in prog ..?
Hii
I have written a prog to select data pertaining to details of all employees who belong to a particular country . For this i have provided a dynamic selection field for selecting country (through Selection View).But when i am getting all the records for all countries.
How to use the dynamic selection fields in program or they behave in the same way as the standard selection given by the LDB .As if we enter a value in the std screen then the GET event acts accordingly .
Ajitabh PradhanHi Ajitabh,
First off, is the Dynamic Selection working? If so, try the following code.. I am assuming, you only want to look at Permanent Address.
tables: pernr.
infotypes: 0001,0006.
start-of-selection.
get pernr.
rp-provide-from-last p0001 space pn-begda pn-endda.
check pnp-sw-found eq 1.
rp-provide-from-last p0006 1 pn-begda pn-endda.
check pnp-sw-found eq 1.
write:/ pernr-pernr,p0001-ename,p0006-land1.
end-of-selection.
Regards,
Suresh Datti -
Changing the Label of the LDB - PNP Screen Field(Date field)
Hi,
I got a req. to change the label of the field "Data Selection Period". This field is from PNP LDB.
Pls let me know, is there any FM or any other process?you can customize the PNP selection screen by creating a report class. you will find the button in the report attributes.
or you can define your own selection view via SE80 an maintaining table T599C.
but I dont't think you will be able to rename the field lable. -
Additional field added in Infoset unable to use as a selectable field
I added 2 fields as additional fields to the Organizational Assignment infotype in a PNP Infoset that I created via SQ02. When I select the infoset to build a query via adhoc query the fields are listed in the Org Assignment infotype and available for output but are not available as a selection field. There is no check box under the Selection column, only a checkbox under the output column.
How do I make the added additional fields available as a section field as well as an output field.Solution: in ad hoc query select Extras > Switch off object selection
Maybe you are looking for
-
In a FM 11 book, how can I display filename w/o file location?
In a FrameMaker book, how can I display filename without the file's location on the hard drive? For example, The book would list: "MyFile.fm" instead of C:\windows\documents\Framefiles\XYZ Company\widgets\draft_2013_1111\MyFile.fm If this cannot be
-
Pictures in iPhoto 6 library flash and then disappear but leave a box
OSX 10.5.8 iPhoto 6 pictures in library flash and then disappear but leave an empty box
-
Auto reporting in OSB to extract the headers
Hi everybody, I would to know if it's possible to do a reporting action (extracting a value from header for auditing with the reporting console) programmatically for all the proxy services in OSB by extending some handler in OSB with java. Is it poss
-
Searching for content in text insets
In a FrameMaker book, is there a way to search all the text insets in a book without opening each individual inset? I'm working on a project that has more than 30 text insets. I'd like to search for certain terms without having to open each inset. I'
-
I cannot normally read pdfs because it always crashes whenever I use any keyboard keys. Please help!