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

Z table TMG

Former Member
0 Likes
3,404

Hi all,

I have made a Z table. There are two fields in it. Mandt, Werks.

I have to maintain Plant entries in it.

When I insert any entry it is inserted, but when I try to insert another value and display the table contents then it always shows me just one entry.

Any solution?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,370

Hi YAsh Acharya,

    Please Mark WERKS filed in database table as Primary Key, Because of WERKS filed not marked as primary key , this thing happen...

it will work

Thanks,

Vijay SR

15 REPLIES 15
Read only

Private_Member_15166
Active Contributor
0 Likes
3,370

Are you saving the data after every insertion?

Read only

0 Likes
3,370

Thanks Dhananjay.

Yes I save the data.

Read only

0 Likes
3,370

Hey mandt will be only primary key... that's why this is happening.. make werks as the primary key..

Read only

former_member206479
Participant
0 Likes
3,370

Hi Acharya,

It should not be like that. After entering new value and save just click on back button. It will show you all the records. If you need more information just post your screenshots how you are doing, then we will help you on this.

Regards,

Venkat.

Read only

Former Member
0 Likes
3,370

This is what i get in TMG.

I am not getting an option of multiple entries.

Read only

0 Likes
3,370

I also onced faced this problem but is the WERKS is the primary key??

Read only

0 Likes
3,370

This is because in TMG you maintainance type as  the Two Step, Make it One Step and re create it , you will get.Make sure Mark WERKS filed as primary key.

Rgds,

Vijay SR

Read only

Former Member
0 Likes
3,371

Hi YAsh Acharya,

    Please Mark WERKS filed in database table as Primary Key, Because of WERKS filed not marked as primary key , this thing happen...

it will work

Thanks,

Vijay SR

Read only

0 Likes
3,370

I have marked this field as primary field.

Read only

0 Likes
3,370

This is because in TMG you maintainance type as  the Two Step, Make it One Step and re create it , you will get.Make sure Mark WERKS filed as primary key.

Rgds,

Vijay SR

Read only

0 Likes
3,370

Thank You Vijay.

Read only

0 Likes
3,370

Welcome Yash

Read only

Former Member
0 Likes
3,370

Read only

0 Likes
3,370

Acharya,

Again go to TMG through Utilities path and change the step as single screen and save it.

Then you will find new entries button while going through SM30, there you can able to insert multiple entries at a time.

Regards.

Venkat.

Read only

0 Likes
3,370

Yash please regenrate the TMG so that both key fields are considered. InTMG you have chane option

Nabheet