<?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 Re: SALES HEADER TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913529#M1690837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my knowledge, If I got your requirement properly, your requirement is met by normalization.&lt;/P&gt;&lt;P&gt;In that first table is as Customer header&amp;nbsp;&amp;nbsp; Second&amp;nbsp;&amp;nbsp; is&amp;nbsp; Sales Orders&amp;nbsp;&amp;nbsp; and third is for&amp;nbsp; Products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer_id&amp;nbsp; is primary key for 1st table. Sales_id will be foreign key pointing to&amp;nbsp; primary key of&amp;nbsp; second table ' Sales_id'.&amp;nbsp;&amp;nbsp; And&amp;nbsp; Third table&amp;nbsp; is having primary key Sales_id and Product_id&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Sales_id is&amp;nbsp; foreign key pointing to&amp;nbsp; Sales_id column of Second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add new record for&amp;nbsp; Second product for already present&amp;nbsp; customer in table&amp;nbsp; then&amp;nbsp; you will have to just select&amp;nbsp; the&amp;nbsp; Sales_order for that customer from first table . And you can insert new record for new Product in Third table. In his way data duplication is avoided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2012 11:44:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-16T11:44:57Z</dc:date>
    <item>
      <title>SALES HEADER TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913528#M1690836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to place&amp;nbsp; a sales order for customers buying a product. But the thing is if a customer buys more than 1 product different sales order is created for other products. What I need is if a customer buys more than 1 product it should come under the same sale order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the possible fields to be put into the table because i have added &lt;STRONG&gt;sales_id&lt;/STRONG&gt; field as Primary key and so if I add another product for a customer,obviously different &lt;STRONG&gt;sales_id&lt;/STRONG&gt; is created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 07:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913528#M1690836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-16T07:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: SALES HEADER TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913529#M1690837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my knowledge, If I got your requirement properly, your requirement is met by normalization.&lt;/P&gt;&lt;P&gt;In that first table is as Customer header&amp;nbsp;&amp;nbsp; Second&amp;nbsp;&amp;nbsp; is&amp;nbsp; Sales Orders&amp;nbsp;&amp;nbsp; and third is for&amp;nbsp; Products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer_id&amp;nbsp; is primary key for 1st table. Sales_id will be foreign key pointing to&amp;nbsp; primary key of&amp;nbsp; second table ' Sales_id'.&amp;nbsp;&amp;nbsp; And&amp;nbsp; Third table&amp;nbsp; is having primary key Sales_id and Product_id&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Sales_id is&amp;nbsp; foreign key pointing to&amp;nbsp; Sales_id column of Second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add new record for&amp;nbsp; Second product for already present&amp;nbsp; customer in table&amp;nbsp; then&amp;nbsp; you will have to just select&amp;nbsp; the&amp;nbsp; Sales_order for that customer from first table . And you can insert new record for new Product in Third table. In his way data duplication is avoided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 11:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913529#M1690837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-16T11:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: SALES HEADER TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913530#M1690838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks santosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 11:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-header-table/m-p/8913530#M1690838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-16T11:48:08Z</dc:date>
    </item>
  </channel>
</rss>

