<?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: document number in a table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660611#M881720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make the document number field as primary key field in the database table  ,,and then start inserting the data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 05:07:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T05:07:30Z</dc:date>
    <item>
      <title>document number in a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660610#M881719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Am a Bw guy and i have created a table in R/3 ,my problem is i want to create unique record number to each record automaticlly ..like serial no to identify each record uniquely ..how can i do that? it should be generated automatically for a new record.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 04:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660610#M881719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: document number in a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660611#M881720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make the document number field as primary key field in the database table  ,,and then start inserting the data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 05:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660611#M881720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T05:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: document number in a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660612#M881721</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;Assing the field with the primary key, which you want to make as unique and inorder to avoid duplicate numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you make it like this foe example doc number = 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an entry already made for 1000, and if you r trying to add another document with same number the system will not allow the duplicate entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Arun joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 05:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660612#M881721</guid>
      <dc:creator>radhushankar</dc:creator>
      <dc:date>2008-04-21T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: document number in a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660613#M881722</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;Thanks for your reply,i know that primary key concept,,here i have created a own table in R/3 and i can enter the values for the fields in the table like empid,manid,timein,timeout date ,,,as these are the fields in my table if i want to find a record uniquly i should keep empid,timein and date as the primary key ..then only there can be multiple entry for an employee id,,,,so i want some doc no like kind of keys to be &lt;STRONG&gt;automatically&lt;/STRONG&gt; generated for each record without manual entry for each record..how can i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 05:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660613#M881722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T05:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: document number in a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660614#M881723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Karthik,

Try this way to get the next empid automatically.

  &lt;PRE&gt;&lt;CODE&gt;DATA:l_pernr TYPE pernr-pernr.

  SELECT MAX( pernr )
    FROM pa0003
    into l_pernr.
    IF sy-subrc = 0.
     empid = l_pernr + 1. "Here u have to assign to screen field in the PBO if it is module pool program. 
     WRITE / l_pernr.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it helps u .

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 07:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-in-a-table/m-p/3660614#M881723</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-21T07:16:53Z</dc:date>
    </item>
  </channel>
</rss>

