Application Development 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: 

How to get primary key for stucuture

Former Member
0 Kudos

Can anyone tell me how to have a primary key for structure as well as make one field mandatory.

Bharat

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Structure doesn't have primary key..Only database tables can have primary key field..Are you talking about database tables..

Thanks,

Naren

7 REPLIES 7

Former Member
0 Kudos

Hi,

Structure doesn't have primary key..Only database tables can have primary key field..Are you talking about database tables..

Thanks,

Naren

0 Kudos

No,

I got a specification where they say primary key, what does it mean for me in regard to internal table!

regards,

Bharat

Former Member
0 Kudos

internal table primary key means a lot...it is used for various purposes...say u have one more internal table...

then....loop at itab.

read table itab2 with key <primaryfield> = itab-<primaryfield>.

endloop.

even while writing select statements the primary keys can be used in case of using for all entries....

0 Kudos

Ramesh

what does it mean for me during select from a table in case they say it required.

Bharat

0 Kudos

You can relation two table by their Primary Key...For example...

<b>BVAK</b> --> <i>VBELN</i>

<b>BVAP</b> --> <i>VBELN</i> --> <i>POSNR</i>

You can choose all related documents from VBAP reading the table using the Primary Key VBELN.

Greetings,

Blag.

Former Member
0 Kudos

Hi all,

Thanks for replies.

I think there is some problem with functional specs.

Regards,

Bharat

Former Member
0 Kudos

Hi all,

Thanks for replies.

I think there is some problem with functional specs.

Regards,

Bharat