<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Append structure to a table with foreign key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-structure-to-a-table-with-foreign-key/m-p/1885992#M371620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a table /hjk/zsfdhjdkk and in the table there is a field "cthno" (with dataelement ZMB_CTHOEN) and for this field there is foreign key relationship with table "ztarntyu" ( with field "cthno").So it was working well in the program(doing foreign key check and also a pop up is appearing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have "Appended" a structure "zwedwrwew" for the above table and in the structure i have added a field "mcthno" (with dataelement ZMB_CTHOEN) and for this field i have given foreign key relationship with the above table "ztarntyu" ( with field "cthno").Activated the structure &amp;amp; table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is in the program,for the field "mcthno" the pop up is not appearing and also its not doing foreign key check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what may be the error i have done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is a search help from table "ztarntyu" and foreign key check with "ztarntyu".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shaik Sajid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 14:03:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-17T14:03:23Z</dc:date>
    <item>
      <title>Append structure to a table with foreign key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-structure-to-a-table-with-foreign-key/m-p/1885992#M371620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a table /hjk/zsfdhjdkk and in the table there is a field "cthno" (with dataelement ZMB_CTHOEN) and for this field there is foreign key relationship with table "ztarntyu" ( with field "cthno").So it was working well in the program(doing foreign key check and also a pop up is appearing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have "Appended" a structure "zwedwrwew" for the above table and in the structure i have added a field "mcthno" (with dataelement ZMB_CTHOEN) and for this field i have given foreign key relationship with the above table "ztarntyu" ( with field "cthno").Activated the structure &amp;amp; table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is in the program,for the field "mcthno" the pop up is not appearing and also its not doing foreign key check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what may be the error i have done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is a search help from table "ztarntyu" and foreign key check with "ztarntyu".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shaik Sajid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 14:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-structure-to-a-table-with-foreign-key/m-p/1885992#M371620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Append structure to a table with foreign key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-structure-to-a-table-with-foreign-key/m-p/1885993#M371621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaik,&lt;/P&gt;&lt;P&gt; Are u sure without appended structure, the foreign key check is working for u through program?....Actually if u r updating the table through program, u need to check the values against the primary key table manually. I hope it is not the problem with appended structure. And anyway if u are referring to that table filed, F4 help will come anyways. The foreign key check is performed when u r updating the table through se11 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can go ahead like this with the program. In table YBSP1, I have a field userid and an appended structure field userid1. These two are foreign keys and are checked against field userid of YBSP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : name TYPE ybsp1-userid,&lt;/P&gt;&lt;P&gt;             name1 TYPE ybsp1-userid1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa TYPE ybsp1.&lt;/P&gt;&lt;P&gt;DATA : itab TYPE STANDARD TABLE OF ybsp WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;wa-userid  = name.&lt;/P&gt;&lt;P&gt;wa-userid1 = name1.&lt;/P&gt;&lt;P&gt;SELECT * FROM ybsp INTO TABLE itab.&lt;/P&gt;&lt;P&gt;READ TABLE itab WITH KEY userid = name.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  READ TABLE itab WITH KEY userid = name1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zxxx) WITH 'Invalid'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE e000(zxxx) WITH 'Invalid'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ybsp1 FROM wa.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  MESSAGE e000(zxxx) WITH 'Invalid'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Hope this helps u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 05:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-structure-to-a-table-with-foreign-key/m-p/1885993#M371621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T05:21:24Z</dc:date>
    </item>
  </channel>
</rss>

