‎2006 Jan 30 11:43 AM
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.
‎2006 Jan 31 9:11 AM
Hi Suryakiran,
Try this way it is working for me.
INITIALIZATION.
<b>pnptimed ='D'.</b>
Hope this solves your issue.
Thanks&Regards,
Siri.
‎2006 Jan 30 11:49 AM
Hi Kiran,
Do like this....
tables:pernr.
at selection-screen output.
PNPTIMR6 = ' '.
pnptimr1 = 'X'.
Thanks
Eswar
‎2006 Jan 30 11:56 AM
If we do this at selection screen output,
even if i select someother date, it will be reset back to today...
I just want it as the defualt one, not hte hardcoded one...
‎2006 Jan 30 11:52 AM
For select-options initialize as:
select-options: s_docdat for vbak-erdat.
initialization.
move 'I' to s_docdat-sign.
move 'BT' to s_docdat-option.
move sy-datum to s_docdat-high.
subtract 7 from sy-datum.
move sy-datum to s_docdat-low.
append s_docdat.
‎2006 Jan 30 11:57 AM
I dont need to give a select option. PNP LDB provides the dates selection block.
I just need to initialize them.
‎2006 Jan 30 11:58 AM
Hi SuKi,
Use this
at selection-screen output.
loop at screen.
if screen-name = 'PNPTIMR6'.( I mean if this is the
default RB clicked)
clear : PNPTIMR6.
PNPTIMR1 = 'X'.
modify screen.
endif.
endloop.
Regards,
GSR.
‎2006 Jan 30 1:30 PM
Srinivas garu,
This doens't help.
I just wnat to default, not hardcode.
‎2006 Jan 30 12:52 PM
Use following
At selection-screen output.
PNPTIMR2 = 'X'.
PNPTIMR6 = ' '.
ensure u have another event starting in ur Z program.
‎2006 Jan 30 3:13 PM
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.
‎2006 Jan 31 5:54 AM
‎2006 Jan 31 6:12 AM
Try the following
1. U can try using event LOAD OF PROGRAM instead of Initialize.
regards,
Sumeet Mishra
‎2006 Jan 31 9:11 AM
Hi Suryakiran,
Try this way it is working for me.
INITIALIZATION.
<b>pnptimed ='D'.</b>
Hope this solves your issue.
Thanks&Regards,
Siri.