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

how to create table records..

Former Member
0 Likes
1,338

hi,

i have table having 6 fields,

first two are key fields.. i need to create table records with repeating

1st field , how can i create plz tell me , because its not accepting in se11, is their any altenative .

thanks and regards,

kalyan

hi,

i have table having 6 fields,

first two are key fields.. i need to create table records with repeating

1st field , how can i create plz tell me , because its not accepting in se11, is their any altenative .

thanks and regards,

kalyan

10 REPLIES 10
Read only

Former Member
0 Likes
1,310

if the first 2 fields combined makes the key,

then it shud allow, same first field..

for eg, vbeln and posnr..

for same vbeln u can have different posnrs..

try with different value for second field..

let us now, exactly what error message it is giving..

try inserting thru a program...but it shud allow thru se11..

Read only

Former Member
0 Likes
1,310

Hi,

You can create new records using SM30 transaction.

First check whether your table is maintaining table maintenance and then goto SM30>Maintain->create.

Thanks,

Sree.

Read only

0 Likes
1,310

IN MY CASE TWO KEY FIELDS ARE NEED TO BE REPEATED ..

IS THEIR ANY PROCEDURE TO CREATE NEW RECORD...(FIRST TWO ARE KEY FIELDS)

Read only

0 Likes
1,310

may be in your table give those two fields as key fields and in SM30 while creating the entries you may see those two entries(iam not sure, try your luck!!)....or you can repeat same to the key fields and for the other you can set your new entries.

Thanks,

Sree.

Read only

0 Likes
1,310

that is not getting , can i move records from program

Read only

0 Likes
1,310

Yes, Click "-"(Minus) from the tool bar.

Thanks,

Sree.

Read only

0 Likes
1,310

What do you mean by 2 key fields are to be repeated ?

that means u are trying to defeat the concept of database table itself..:)

what exactly is ur requirement ? if it is a custom table..

redesign the table structure, with one more key field added, say Serialno or some running numbers like that.

and make the 3 fields as key.

in that case, you can repeat the first and second fields..

Read only

0 Likes
1,310

Can you be more clear on what your requirement is ?

Lets put it in an example :

CASE 1 : Possible

Key1 Key2 Field1 Field2 Field3 Field4

1 1 XXX xxx xxxx xxx

1 2 XXX xxx xxxx xxx

OR

CASE 2 : Impossible with 2 keys, you will need one more key.

Key1 Key2 Field1 Field2 Field3 Field4

1 1 XXX xxx xxxx xxx

1 1 XXX xxx xxxx xxx

regards,

Advait

Read only

Former Member
0 Likes
1,310

Hi,

It should allow, unless you keep the second key field blank in the first one and attempt to enter another record with the same first key and a blank second key again.

regards,

Advait.

Read only

Former Member
0 Likes
1,310

issue closed