<?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: Assignment Number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124583#M445839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the other fields of the table?&lt;/P&gt;&lt;P&gt;Is this a key field and if yes is this the only key field? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I explained before, you will have to first get the latest NUMM value using MAX (ORDER BY numm DESCENDING is important). You then increment it, and fill the rest of the fields of the work area (like Z table). Then use either INSERT FROM wa or MODIFY FROM wa options depending on whether NUMM is part of the key. Look at the help of INSERT and MODIFY and you will understand how to do it from work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 20:47:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T20:47:38Z</dc:date>
    <item>
      <title>Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124567#M445823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table ztable with one field numm that I need to use as an assignment number. In my custom report I need to pick up with value ztable-numm and add one to it and use this value in my report. Then I need to update ztable-numm with the new value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124567#M445823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124568#M445824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select max( * ) from ztable where &amp;lt;condtion&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_numm = ztable-numm + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124568#M445824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T16:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124569#M445825</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YVTOL_TEST-NUMM = ZTABLE-NUMM + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ZTABLE.&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124569#M445825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T16:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124570#M445826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT MAX(numm) FROM ztable INTO v_numm WHERE &amp;lt;condition&amp;gt; ORDER BY numm.&lt;/P&gt;&lt;P&gt;v_numm = v_numm + 1.&lt;/P&gt;&lt;P&gt;ztable-numm = v_numm.&lt;/P&gt;&lt;P&gt;ztable-field1 = somevalue.&lt;/P&gt;&lt;P&gt;....rest of the fields&lt;/P&gt;&lt;P&gt;MODIFY ztable FROM work_area_for_ztable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124570#M445826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T16:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124571#M445827</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: wa_ztable like ztable,
      wa_numm like ztable-numm.

select single * into wa_ztable 
from ztable 
where &amp;lt;condition&amp;gt;.

wa_numm = wa_ztable-numm + 1.


...


wa_ztable-numm = wa_numm.

modify ztable from wa_ztable transporting wa_ztable-numm.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124571#M445827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T16:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124572#M445828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to append the new value for numm to the ztable &lt;/P&gt;&lt;P&gt;and also i need to select the last row in ztable as the value of numm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 18:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124572#M445828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T18:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124573#M445829</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MAX( NUMM ) FROM ZTABLE&lt;/P&gt;&lt;P&gt;       INTO ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTABLE-NUMM = ZTABLE-NUMM + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZTABLE.&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 18:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124573#M445829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T18:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124574#M445830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unknown column name "MAX(NUMM)". not determined until runtime,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 18:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124574#M445830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T18:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124575#M445831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi megan,&lt;/P&gt;&lt;P&gt;   u can also use this stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add 1 to numm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 18:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124575#M445831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T18:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124576#M445832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select * from ztable into wa1.
v_numm = wa1-numm.
endselect.

add 1 to v_numm.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I just need to append v_numm to ztable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 18:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124576#M445832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T18:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124577#M445833</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;&lt;/P&gt;&lt;P&gt;loop at ztable into wa1.&lt;/P&gt;&lt;P&gt;wa1-numm = wa1-numm + 1.&lt;/P&gt;&lt;P&gt;append wa1 to ztable.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paisante&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 19:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124577#M445833</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-04-16T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124578#M445834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM zasscit INTO wa1.
  v_numm = wa1-numm.
  ADD 1 TO wa1-numm.
ENDSELECT.

ADD 1 TO v_numm.
WRITE:/ v_numm.

INSERT INTO zasscit VALUES wa1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys the wierdest thing is happening &lt;/P&gt;&lt;P&gt;It inserts until numm goes to 0004, after that it stops inserting. Is there something wrong with my code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 19:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124578#M445834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T19:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124579#M445835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'm going to try to steer you in the RIGHT direction.  What you are doing is trying to simulate an internally assigned number.  You should be using a number range to do this instead of trying to find the last number used.  You create the number range using the transaction SNRO.  Give it a name and allow for buffering or not.  Then give the number range, this is client specific, so when you move your changes to production, you will need to visit SNRO in production and create the number range interval(just the interval).  In your program, you simply use a function module to get the next available number.  Here is an example, which I just did for my project just a couple minutes ago..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here ZCTPL_NUM is the name of the number range i created in SNRO.  01 is the name of the interval which I defined.  XCTPLN is the variable whic recieves the new number.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: xctpln type zcmptrk-ctpln.

  call function 'NUMBER_GET_NEXT'
       exporting
            nr_range_nr             = '01'
            object                  = 'ZCTPL_NUM'
       importing
            number                  = xctpln
       exceptions
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            others                  = 8.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind that this is how most(if not all) numbering is done within SAP, For example,  internal assign material numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 19:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124579#M445835</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-16T19:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124580#M445836</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: it_zasscit  TYPE STANDARD TABLE OF zasscit .
DATA: wa_zasscit LIKE LINE of zasscit.


SELECT * FROM zasscit INTO TABLE it_zasscit  
ENDSELECT.

SORT it_zasscit BY numm descending.

READ TABLE it_zasscit  INDEX 1.

v_numm =  it_zasscit-numm. 

LOOP AT it_zasscit INTO wa_zasscit. 
  v_numm = v_numm + 1. 
  wa_zasscit-numm = v_numm.
 modify it_zasscit from  wa_zasscit-numm.
ENDLOOP. 

INSERT zasscit FROM TABLE it_zasscit.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 19:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124580#M445836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T19:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124581#M445837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry Lianto &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it not be &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_zasscit LIKE LINE of it_zasscit.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing that gives me many more errors though &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 20:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124581#M445837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T20:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124582#M445838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still struggling with this one. All I need to do is read zasscit-numm, add 1 to it and update the new value back to the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working on 2 solutions now and neither seem to work &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: zasscit.
DATA:   wa TYPE STANDARD TABLE OF zasscit,
        wa1 LIKE LINE OF wa,
        v_numm LIKE zasscit-numm.

SELECT * FROM zasscit INTO wa1.
  v_numm = wa1-numm.
  ADD 1 TO wa1-numm.
*  modify wa from wa1-numm.
ENDSELECT.

ADD 1 TO v_numm.
WRITE:/ v_numm.

INSERT zasscit from table wa.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: it_zasscit TYPE STANDARD TABLE OF zasscit.
DATA: wa_zasscit LIKE LINE OF it_zasscit.
DATA: v_numm LIKE zasscit-numm.


SELECT * FROM zasscit INTO TABLE it_zasscit.

SORT it_zasscit BY numm DESCENDING.

READ TABLE it_zasscit into wa_zasscit index 1.

v_numm =  wa_zasscit-numm.

LOOP AT it_zasscit INTO wa_zasscit.
  v_numm = v_numm + 1.
  wa_zasscit-numm = v_numm.
  MODIFY it_zasscit FROM  wa_zasscit-numm.
ENDLOOP.

INSERT into zasscit values wa_zasscit-numm.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 20:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124582#M445838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124583#M445839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the other fields of the table?&lt;/P&gt;&lt;P&gt;Is this a key field and if yes is this the only key field? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I explained before, you will have to first get the latest NUMM value using MAX (ORDER BY numm DESCENDING is important). You then increment it, and fill the rest of the fields of the work area (like Z table). Then use either INSERT FROM wa or MODIFY FROM wa options depending on whether NUMM is part of the key. Look at the help of INSERT and MODIFY and you will understand how to do it from work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 20:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124583#M445839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T20:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124584#M445840</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;How many records do you need to update with incremental?&lt;/P&gt;&lt;P&gt;One record or all record? If one record, is it the last one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to modify all records, please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: it_zasscit TYPE STANDARD TABLE OF zasscit.
DATA: wa_zasscit LIKE LINE OF it_zasscit.
DATA: v_numm LIKE zasscit-numm.
 
 
SELECT * FROM zasscit INTO TABLE it_zasscit.
 
SORT it_zasscit BY numm DESCENDING.
 
READ TABLE it_zasscit into wa_zasscit index 1.
 
v_numm =  wa_zasscit-numm.
 
LOOP AT it_zasscit INTO wa_zasscit.
  v_numm = v_numm + 1.
  wa_zasscit-numm = v_numm.
  MODIFY it_zasscit FROM  wa_zasscit-numm.
ENDLOOP.
 
MODIFY zasscit from table it_zasscit.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 20:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124584#M445840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T20:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124585#M445841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ferry !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 21:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-number/m-p/2124585#M445841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T21:17:10Z</dc:date>
    </item>
  </channel>
</rss>

