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

Ztable entries

Former Member
0 Likes
697

Hi All,

I have created a Ztable with 7 fields, Out of which 3 fields are SY-UNAME, SY-DATUM, SY_UZEITT. I have also created table maintenance for that. My requirement is when user goes to SM30 and click on new entries, SY-UNAME, SY-DATUM, and SY-UZEITT to be populated automatically and user should not able to change those.

Is there any way to do that? Its an urgent requirement for me, Please reply ASAP.

Thanks in Advance,

Rajesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
662

Hi,

for this one u need to write the code in table maintenance generator

goto -> environment-> modification->events

write the code for the same and also in screen make these fields as display only

thanks

Shiva

Hi,

for this one u need to write the code in table maintenance generator

goto -> environment-> modification->events

write the code for the same and also in screen make these fields as display only

thanks

Shiva

4 REPLIES 4
Read only

Former Member
0 Likes
662

i think you have reffered standard dataelement for those fields and for that you cannot able to input .

can you try with some z dataelement for them and z domain .

regards

shiba dutta

Read only

0 Likes
662

If you are using standard table maint. SM30, you can make use of the events of the table main.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

Read only

Former Member
0 Likes
663

Hi,

for this one u need to write the code in table maintenance generator

goto -> environment-> modification->events

write the code for the same and also in screen make these fields as display only

thanks

Shiva

Read only

Former Member
0 Likes
662

when u created a table maintanebce , it will ask for function group, ok,

so goto se11->open ur Ztable -> goto table maintanace generator-> c d Function group name & Screen number. OK.

now open SE80 -> open that Function group -> expand screens -> click on that screen number,,,,so now u have to change in this scren to achive ur requirement...ok

-> open the sceen layout and make that username,date,time fileds display mode.

-> come to FLOW logic, write ur code in PAI/PBO evevts by creating create a module inthat assign syatem variables.....where ever it is required...ok..

( say

if tablename = 'ztable name' <i><- somethig u have to check,,,,like this</i>

Ztable-field1 = sy-uname.

Ztable-field2 = sy-datum.

Ztable-field3 = sy-uzeit.

)

hope u understand what i explained...

Ramesh.