‎2008 Dec 26 8:39 AM
Hi,
I am creating a table maintenance view with time as one of the input enabled field. I would like to display 00:00:00 as initial value for time. How can I do it? presently its displaying as blank.
Thanks in advance for your help.
With regards,
Vamsi
‎2008 Dec 26 1:14 PM
Hi Vamsi,
I think you can go for events in table maintainance.
1) In table maint. generator choose from standard menu Enviromnet->Modification->Events and event which suits your requirement best i.e 05 - Create New Entry
2) Form Name: AT_NEWENTRY (Enter key). Double Click on the editor.
4) In form initialize your time field with 00 so it will provide this each time new wntry is being created.
5) Go to SE93 and create a transaction for your table view: T-code: ZTAB, Trasaction: SM30,Skip first screen, Viename: your_custom_view, Update: X
6) Save and try your new transaction
Regards
Marcin
‎2008 Dec 26 1:14 PM
Hi Vamsi,
I think you can go for events in table maintainance.
1) In table maint. generator choose from standard menu Enviromnet->Modification->Events and event which suits your requirement best i.e 05 - Create New Entry
2) Form Name: AT_NEWENTRY (Enter key). Double Click on the editor.
4) In form initialize your time field with 00 so it will provide this each time new wntry is being created.
5) Go to SE93 and create a transaction for your table view: T-code: ZTAB, Trasaction: SM30,Skip first screen, Viename: your_custom_view, Update: X
6) Save and try your new transaction
Regards
Marcin
‎2008 Dec 31 9:03 PM
Hello Vamsi,
Table maintance generated views are allowed to change the screnn and code as well. If you double click on 'Maint. Screen No.' after genering view it will take you to the generated screen to change the field property. Here possibly you will get option to assign a default value.
Or from the adding even ref to following link-
Thank You,
Nishikant.
‎2009 Feb 06 9:53 AM
‎2009 Feb 06 10:30 AM
Hi,
Declare like this........
parameters:
p_time type t.
It will automatically show the initial values...
Regards
Kiran
‎2009 Feb 06 10:32 AM
Hi,
Or else ypu can try out like this,
parameters:
p_time like sy-timlo.
Regards
Kiran
‎2009 Feb 09 5:14 AM
Hi,
If you want to initialize the time as 00.00.00.
Declare the variable as parameter
Ex:
parameters:
Time type sy-timlo.
Regards,
Rajani