Skip to Content
author's profile photo Former Member
Former Member

How to get primary key for stucuture

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

Bharat

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 06:01 PM

    Hi,

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

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 06:05 PM

    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....

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 07:26 PM

    Hi all,

    Thanks for replies.

    I think there is some problem with functional specs.

    Regards,

    Bharat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 07:26 PM

    Hi all,

    Thanks for replies.

    I think there is some problem with functional specs.

    Regards,

    Bharat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.