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.
Similar Messages
-
F4 ( Search Help ) for date field on the selection screen
Hi Freinds,
i have used WDR_SELECT_OPTIONS In my component, i have one date field on selection screen(BUDAT), for this date field i want seach help
this is my code
create a range table for Posting Date
lt_range_table = wd_this->m_handler->create_range_table(
i_typename = 'BUDAT' ).
add Posting Date to the selection
wd_this->m_handler->add_selection_field( i_id = 'BUDAT'
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
I_VALUE_HELP_ID = '??????'
I_DESCRIPTION = 'Posting Date'
it_result = lt_range_table ).
can any one help me
Thanks
Srinihi sarbjeet
i created search help in dictionary and i used that search help in my program, but still its now working , any other ideas
Thnx
srini -
Possibele entries are not populating for the fields on the selection screen
Hi,
Possible entries are not populating for the fields on the selection screen for the query.But its working fine in Development and Quality Systems.
Can any body help me out
Regards,
Amit.Hi,
In the Selection screen,go to Settings->Value Restrictions tab->Read Mode Settings->Custom radio button and select the options Values in Master Data or Only Values in InfoProv or Only Posted values for navigation.
After this setting,check whether you are getting the data or not.
Rgds,
Murali -
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 get the F4 help for a field in the selection screen
Hi all,
I am working on a report program. In the selection screen, I have the field 'Brand Node ID'(ZNODEID). The requirement is to have the F4 help for this field. This field is available in a 'Z' table ZNODETAB. There is no Value table maintained for the corresponding data element. So, without disturbing the table data element/domain, I should get the F4 help in the selection screen of the report. In the F4 help, data should be fetched from the table ZNODETAB and the field is ZNODEID. Is there any way to do this.
By searching the function modules, I could find that, we can use the FM F4IF_INT_TABLE_VALUE_REQUEST. But, I am not Sure. Can someone tell me the parameters to be passed to this function module to get the F4 help and the procedure to follow. S_NODEID is the select option used in the program. Please help me in this regard. Thanks in advance.
Thanks & Regards,
Paddu.look at this code and try
select-options : S_NODEID for ZNODETAB-ZNODEID.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-LOW'.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-HIGH'.
end-of-selection.
FORM f4_nodeid USING p_field.
declare it_node.
select znodeid from ZNODETAB into table it_node.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZNODEID'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = p_field
value = space
value_org = 'S'
display = 'F'
TABLES
value_tab = it_node
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
endform -
Input help for AUART field on the selection screen
Hi,
I need to create a Z search help for the Field AUART ( sales document type ) .
The search help should be created in this way :
i need to group these Document types under one name ( say SALO) ZCM1, ZCM2,ZDM1,ZDM2,ZRE1,ZRE2,ZS01,ZS02,ZS04.
Then i need to group these document types under another name ( say PRJO) ZCM3,ZDM3,ZS03.
Then i need to group both SALO and PRJO under one name 'BOTH'.
So my new search help will be SALO
PRJO
BOTH
If i select SALO , it should pull data from the Table for all the document types specified. Similarly for PRJO and BOTH .
Can anyone please advice me in this regard at the earliest
With Best Regards
Mamatha.Hi Mamtha,
Your Scenario can be achieved be defining Search help Exit available in the search Help creation Screen
Regards,
Kasi S -
Cursor on a error-data field in the Selection-Screen
Hi all,
I have a normal selection-screen in which I have 4 select-options.
I require that when user enters a wrong data in the 3rd field, the cursor should blink in that field.
I tried to use AT SELECTION-SCREEN ON fld event, but through this, the other's field input is disabled which I don't want.
What should I do?
Can I do it using SCREEN table?
Regards,
Saurabh A. BukshHi Saurabd,
you could use the general event
AT SELECTION-SCREEN.
with no restriction on the fields. Then
SET CURSOR FIELD error_field.
MESSAGE Exxx...
Best regards,
Florin -
How do we declare a date field in the selection screen?
As an input,so that the user can give a appro date.
Thanks in advance.
Regards,
ShilpaYou can also do a select-option for a date.
select-options: s_datum for sy-datum.
REgards,
Rich Heilman -
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. -
Can I get field name of Selection screen ?
Hi, experts.
I'd like to manage PGM's screens & fields of screens. I need to know field names of selection screen in external PGMs to manage input values of those fields.
For values, I'll use 'Dynp_values_read', but what should I use for getting field names of selection screen?
Is there any functions, classes or tables for PGM's fields of selection screen?
I've found tables&functions for this and I found D020S, D020T, D021T for PGM's screen. But I counld't see proper field names that shows on a selection screen when I excuted PGM. I guess there's a conversion routine between data that saved in repository and field name on screen.
Please let me know what should I use a function, tables or else.
Thanks.Hi
Use Read text pool syntax
READ TEXTPOOL program name
INTO T_TPOOL
LANGUAGE 'NL'.
within TB_TPOOL all select option field namees will be stored under field ID with type S
Edited by: Lavanya K on Apr 22, 2009 10:02 AM -
Select-options for date field.
Hi all,
i need to give select options for Date field.How can i give that.
Thanks & Regards
Ravi.Hi Ravi,
Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
3. View: Properties Tab:Create Controller Usage and select
SELECT_OPTIONS WDR_SELECT_OPTIONS
SELECT_OPTIONS WDR_SELECT_OPTIONS INTERFACECONTROLLER
4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
5. View Attributes Tab: Create Following two attributes:
M_HANDLER type IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
7:CREATE_SELECTION_SCREEN: Write following Code:
* Data Declaration
data:
lt_range_table TYPE REF TO DATA.
data:
lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
* Execution
* Create Used Component
lr_componentusage = wd_this->wd_cpuse_select_options( ).
if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
lr_componentusage->create_component( ).
endif.
* Get pointer to interface controller of select options
wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
* initialize selction screen
wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
* Create Range Table for: Date
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'DATS'
RECEIVING
RT_RANGE_TABLE = lt_range_table.
* Add Selection Field for: Date
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = '<name of date attribute in the context>'
* I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
* I_DESCRIPTION =
* I_IS_AUTO_DESCRIPTION = ABAP_TRUE
IT_RESULT = lt_range_table
* I_OBLIGATORY = ABAP_FALSE
* I_COMPLEX_RESTRICTIONS =
* I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
* I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
* I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
* I_VALUE_HELP_ID =
* I_VALUE_HELP_MODE =
* I_VALUE_HELP_STRUCTURE =
* I_VALUE_HELP_STRUCTURE_FIELD =
* I_HELP_REQUEST_HANDLER =
* I_LOWER_CASE =
* I_MEMORY_ID =
* I_NO_EXTENSION = ABAP_FALSE
* I_NO_INTERVALS = ABAP_FALSE
* I_AS_CHECKBOX = ABAP_FALSE
* I_AS_DROPDOWN = ABAP_FALSE
* IT_VALUE_SET =
* I_READ_ONLY = ABAP_FALSE
* I_DONT_CARE_VALUE =
* I_EXPLANATION =
I_TOOLTIP = 'Select Date'.
8: To Fetch Data entered in the selection field, write following code on action of button click:
data:
lt_date type REF TO DATA.
FIELD-SYMBOLS:
<fs_date> TYPE table.
* retrieve Date from Select Options
CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = '<attrib_name>'
RECEIVING
RT_RANGE_TABLE = lt_date.
* assign Date Field Symbol
ASSIGN lt_date->* to <fs_date>.
9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of WDR_SELECT_OPTIONS component.
Regards,
Reema. -
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. -
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 -
Can you "combine" criteria for 2 or more fields on a Selection Screen?
Good day everyone,
Here's my question: I understand that I can put fields on a Selection Screen and pre-fill them with data values. In this particular case, I want to pre-fill a couple of hidden fields with data values that will be used as criteria when I read data from the database; however, I need to pull back records that have this COMBINATION of data. For example:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
So in my SQL, if I say "werks IN s_werks" and "btrtl IN s_brtrl", true, it will still work. But really, I need to say "if werks = 'z002' and btrtl = 'z001', or werks = 'z002' and btrtl = 'z002', etc. I can't rely on the simple "IN" functionality because it's possible a new value could be added in the future:
WERKS BTRTL
Z003 Z003
So if I use the "IN" logic and the record has werks = 'Z002' and btrtl = 'Z003', it would be returned. But I really don't want it returned, since a combination of werks = 'Z002' and btrtl = 'Z003' doesn't exist in my table of valid combinations.
Is this even possible to do in a Selection Screen? Do I go ahead and populate the fields separately, use the "IN" functionality, then spin through my resulting internal table and delete anything that doesn't match my "table" of valid combinations? Do I skip putting these on a Selection Screen completely and check the values in my SQL statement?
Thanks in advance -- points, as always, will be given.Hi
Yuo can try to use FOR ALL ENTRIES option.
IF you have:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
You should do something like that:
DATA: BEGIN OF <TAB_SEL> OCCURS 1,
WERKS TYPE WERKS,
BTRTL TYPE BTRTL,
END OF <TAB_SEL>.
WERKS BTRTL
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
SELECT * FROM <TABLE> INTO TABLE ITAB
FOR ALL ENTRIES IN <TAB_SEL>
WHERE WERKS = <TAB_SEL>-WERKS
AND BTRTL = <TAB_SEL>-BTRTL.
In this case you need to fill correctly the internal table <TAB_SEL> with the all combinations.
Max -
How to Make Field "Creation Date" Mandatory (in EP Selection Screen)
Dear experts,
I am on SRM 7.0.
In Shopping Cart, i'd like to set Field "Creation Date" as Mandatory Field in EP Selection Screen / Criteria Maintenance.
Is there BADI or SPRO need to be maintained?
Thanks & regards,
Jack
Edited by: Jack4ever on Aug 9, 2011 7:42 AM
Edited by: Jack4ever on Aug 9, 2011 7:43 AMHi Jack,
Not sure if it possible in standard with any customizing but it might be able to achieve this through webdynpro enhancements.
Regards,
Prasanna
Maybe you are looking for
-
Can't look at pictures in full screen mode?
I have an iPod touch 5th generation 32GB model. It is fairly new, only almost one year old. I have kept it in mint condition. The problem is, if I take a picture with either the front or rear camera, it will appear when I am looking at all of my phot
-
Error while creating new project number
Hi Folks, I am getting the below error while creating a new project number. "Oracle Projects failed to generate unique project number. Please contact your system administrator to setup the next number field for automatic project numbering in implemen
-
why the iBooks doesnt belong to the programm which can transfer content from my pc to the new ipad? (whe i first installed itunes on the pc, every book was transfered in the iBooks' library, but not any more!).
-
Ios8 and iphone5s lost cell connectivity - how do i get it back ?
How do I get cell connectivity back after upgrading to ios8 on my iphone 5S
-
Mailbox very slow with direct login but ok when proxying
We have a large common departmental account monitored by multiple users (yes, shared account, not shared folder). When I log in directly to the account and select a folder it can take 10-15 secs to populate the list of items. Seems to apply to nearly