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

SAP-ABAP

Former Member
0 Likes
619

can we give primary key to standard internal tables?

can we give primary key to standard internal tables?

4 REPLIES 4
Read only

Former Member
0 Likes
589

Yes, you can declare it using the WITH UNIQUE KEY option of the syntax.

Regards,

Ravi

Read only

Former Member
0 Likes
589

no primary key..but with unique key yes..!!

Message was edited by: Gunjan Kumar

Read only

0 Likes
589

yes,

you can use it by sorted and hashed table

Andreas

Read only

Former Member
0 Likes
589

Hi vijay,

No u can't give primay key to standard tables.

While reading table u can give only key, not primary key even though pwd is a primary key of table ysell.

<b>Report :</b>

tables : ysell.

data : itab type standard table of yshell with header line.

select * from yshell into table itab.

read table itab with key pwd = 'XXXX'.

write : / itab-pwd1.