Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Maintenance generator Initializing screen elements

former_member219399
Active Participant
0 Likes
970

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

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
910

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

6 REPLIES 6
Read only

MarcinPciak
Active Contributor
0 Likes
911

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

Read only

Former Member
0 Likes
910

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-

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20im...

Thank You,

Nishikant.

Read only

Former Member
0 Likes
910

Hi Vamsi,

Use there SY-TIMLO.

Thanks,

N.Neelima.

Read only

Former Member
0 Likes
910

Hi,

Declare like this........

parameters:

p_time type t.

It will automatically show the initial values...

Regards

Kiran

Read only

Former Member
0 Likes
910

Hi,

Or else ypu can try out like this,

parameters:

p_time like sy-timlo.

Regards

Kiran

Read only

Former Member
0 Likes
910

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