<?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: Automatic id generation in MPP screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939287#M1965514</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried it,but iam getting only one number like "1" the value is not changing that means its not getting loop.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_GET_NEXT'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 NR_RANGE_NR = '01'&lt;BR /&gt;
 OBJECT = 'ZCANID'&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 NUMBER = LV_NUMBER_RANGE&lt;BR /&gt;
 RETURNCODE = LV_RC&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 INTERVAL_NOT_FOUND = 1&lt;BR /&gt;
 NUMBER_RANGE_NOT_INTERN = 2&lt;BR /&gt;
 OBJECT_NOT_FOUND = 3&lt;BR /&gt;
 QUANTITY_IS_0 = 4&lt;BR /&gt;
 QUANTITY_IS_NOT_1 = 5&lt;BR /&gt;
 INTERVAL_OVERFLOW = 6&lt;BR /&gt;
 BUFFER_OVERFLOW = 7&lt;BR /&gt;
 OTHERS = 8&lt;BR /&gt;
 .&lt;BR /&gt;
IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt;
* Implement suitable error handling here&lt;BR /&gt;
 WA_ZCAN_DET-CANDIDATE_ID = LV_NUMBER_RANGE.&lt;BR /&gt;
ENDIF.&lt;BR /&gt;
&lt;BR /&gt;
LOOP AT IT_ZCAN_DET INTO WA_ZCAN_DET.&lt;BR /&gt;
 WA_ZCAN_DET-CANDIDATE_ID = LV_NUMBER_RANGE.&lt;BR /&gt;
 &lt;BR /&gt;
ENDLOOP.&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1701774-o1.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 10:13:58 GMT</pubDate>
    <dc:creator>former_member577082</dc:creator>
    <dc:date>2019-07-15T10:13:58Z</dc:date>
    <item>
      <title>Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939282#M1965509</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1701684-1.png"&gt;1.png&lt;/A&gt;&lt;A href="https://answers.sap.com/storage/temp/1701685-2.png"&gt;2.png&lt;/A&gt;Hi everyone,&lt;/P&gt;
  &lt;P&gt;I have designed a screen in MPP with push button, when i click the push button the candidate form is opening which consists of candidate details like candidate_id,candidate_name and so on. Here my requirement is when i open the&lt;/P&gt;
  &lt;P&gt;candidate form the candidate_id should generate automatically.Can anyone please help me out to achieve this.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 06:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939282#M1965509</guid>
      <dc:creator>former_member577082</dc:creator>
      <dc:date>2019-07-11T06:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939283#M1965510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow below steps.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create number range in SNRO T-code.&lt;/LI&gt;&lt;LI&gt;Once you done with that use NUMBER_GET_NEXT FM in PBO event of that candidate ID screen.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitme&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939283#M1965510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-11T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939284#M1965511</link>
      <description>&lt;P&gt;1.I have created number range in SNRO T-code as below&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1701712-s1.png" /&gt;&lt;/P&gt;&lt;P&gt;2.I have used NUMBER_GET_NEXT FM in PBO of the candidate_id screen&lt;/P&gt;&lt;P&gt;MODULE STATUS_4000 OUTPUT.&lt;BR /&gt;
* SET PF-STATUS 'STATUS'.&lt;BR /&gt;
* SET TITLEBAR 'TITLE'.&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
CALL FUNCTION 'NUMBER_GET_NEXT'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 NR_RANGE_NR = '01'&lt;BR /&gt;
 OBJECT = 'ZCANID'&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 NUMBER = LV_NUMBER_RANGE&lt;BR /&gt;
 RETURNCODE = LV_RC&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 INTERVAL_NOT_FOUND = 1&lt;BR /&gt;
 NUMBER_RANGE_NOT_INTERN = 2&lt;BR /&gt;
 OBJECT_NOT_FOUND = 3&lt;BR /&gt;
 QUANTITY_IS_0 = 4&lt;BR /&gt;
 QUANTITY_IS_NOT_1 = 5&lt;BR /&gt;
 INTERVAL_OVERFLOW = 6&lt;BR /&gt;
 BUFFER_OVERFLOW = 7&lt;BR /&gt;
 OTHERS = 8&lt;BR /&gt;
 .&lt;BR /&gt;
IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt;
* Implement suitable error handling here&lt;BR /&gt;
ENDIF.&lt;/P&gt;&lt;P&gt;3.Still cant able to generate the id automatically.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1701713-o.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 11:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939284#M1965511</guid>
      <dc:creator>former_member577082</dc:creator>
      <dc:date>2019-07-11T11:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939285#M1965512</link>
      <description>&lt;P&gt;Your getting next interval value in LV_NUMBER_RANGE this field which will be passed to the candidate id field.&lt;/P&gt;&lt;P&gt;Example:In screen level your candidate id field is wa-stu_id then what ever value u will get in LV_NUMBER_RANGE pass to wa_sti_id&lt;/P&gt;&lt;P&gt;wa-stu_id = LV_NUMBER_RANGE.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitme&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 11:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939285#M1965512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-11T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939286#M1965513</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Issue resolved?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitme&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 07:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939286#M1965513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-12T07:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939287#M1965514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried it,but iam getting only one number like "1" the value is not changing that means its not getting loop.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_GET_NEXT'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 NR_RANGE_NR = '01'&lt;BR /&gt;
 OBJECT = 'ZCANID'&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 NUMBER = LV_NUMBER_RANGE&lt;BR /&gt;
 RETURNCODE = LV_RC&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 INTERVAL_NOT_FOUND = 1&lt;BR /&gt;
 NUMBER_RANGE_NOT_INTERN = 2&lt;BR /&gt;
 OBJECT_NOT_FOUND = 3&lt;BR /&gt;
 QUANTITY_IS_0 = 4&lt;BR /&gt;
 QUANTITY_IS_NOT_1 = 5&lt;BR /&gt;
 INTERVAL_OVERFLOW = 6&lt;BR /&gt;
 BUFFER_OVERFLOW = 7&lt;BR /&gt;
 OTHERS = 8&lt;BR /&gt;
 .&lt;BR /&gt;
IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt;
* Implement suitable error handling here&lt;BR /&gt;
 WA_ZCAN_DET-CANDIDATE_ID = LV_NUMBER_RANGE.&lt;BR /&gt;
ENDIF.&lt;BR /&gt;
&lt;BR /&gt;
LOOP AT IT_ZCAN_DET INTO WA_ZCAN_DET.&lt;BR /&gt;
 WA_ZCAN_DET-CANDIDATE_ID = LV_NUMBER_RANGE.&lt;BR /&gt;
 &lt;BR /&gt;
ENDLOOP.&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1701774-o1.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 10:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939287#M1965514</guid>
      <dc:creator>former_member577082</dc:creator>
      <dc:date>2019-07-15T10:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939288#M1965515</link>
      <description>&lt;P&gt;Hi Please explain your requirement clearly...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitme&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 11:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939288#M1965515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-15T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939289#M1965516</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thank you  for your help,I have solved my issue with the help of the below code&lt;/P&gt;&lt;P&gt;LV_NUMBER_RANGE = 1.&lt;BR /&gt;
LOOP AT IT_ZCAN_DET INTO WA_ZCAN_DET.&lt;BR /&gt;
 WA_ZCAN_DET-CANDIDATE_ID = LV_NUMBER_RANGE.&lt;BR /&gt;
 LV_NUMBER_RANGE = LV_NUMBER_RANGE + 1.&lt;/P&gt;&lt;P&gt;By using this now i can able to generate id automatically on the screen one after the other.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939289#M1965516</guid>
      <dc:creator>former_member577082</dc:creator>
      <dc:date>2019-07-16T09:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic id generation in MPP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939290#M1965517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for generating the customer_id automatically we have to use SNRO and give the ranges &lt;/P&gt;&lt;P&gt;once it is done use NUMBER_GET_NEXT Function module in your MPP .&lt;/P&gt;&lt;P&gt; go through this below link ,you will get idea to work .&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/ABAP/SNRO/SNRO.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/ABAP/SNRO/SNRO.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-id-generation-in-mpp-screen/m-p/11939290#M1965517</guid>
      <dc:creator>former_member697514</dc:creator>
      <dc:date>2021-08-11T12:31:48Z</dc:date>
    </item>
  </channel>
</rss>

