简体   繁体   中英

How can I validate a foreign key in a table control in abap?

I am learning ABAP, and one of the excersises is to make a table control with a table that has a foreign key in it.

I already did the Table control, but, how can I validate that the foreign key is correct or not?

  1. Go to SE11.
  2. Select the table .
  3. Select the field.
  4. Click button 'Foreign keys'在此处输入图片说明 .
  5. Type the control table in Check table and click button 'Generate proposal' and confirm the key proposed. If not type the fieldname(s) of the check table. Include field MANDT first.

在此处输入图片说明

  1. Select the relation type (Not specified is default).
  2. Click button 'Copy' or press 'Enter'. 在此处输入图片说明

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM