<?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: problem in dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378376#M1642622</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 am just selecting the max value in the itab when user pressed (NEW) and incrementing that no by one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way i am following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any another efficient way pls suggest me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 09:49:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-02T09:49:43Z</dc:date>
    <item>
      <title>problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378370#M1642616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello experts,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  i have a requirement that in modulepool program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i have a field (say serialno) which is automatically generated one based on previous no,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my problem is  if user enters the no randomly and if he pressed save that no is storing in the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my req is i have to restrict the functionality to only automatic generation and if user enters any random value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my field has to reject that value and has to show the message(say "the entered value is not matching with the series, do u want to continue?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody please suggest me with some sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;maheshlap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 08:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378370#M1642616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T08:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378371#M1642617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In the PAI you can check the no. in ITAB with the previous no. and after comaprison  and remove it and then flash a message on the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378371#M1642617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378372#M1642618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to restrict to only automatic generation, make the field as input-disabled in your screen.&lt;/P&gt;&lt;P&gt;Or, in the PAI of the screen, write code when user clicks SAVE. Check if the entered value matches your next series no. If it does not match, then show a popup with "Do you want to continue?".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&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;Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378372#M1642618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378373#M1642619</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 can i check the no with previously generated no say &amp;lt;,&amp;gt;,= or decimal places wise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u pls give me a clear idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378373#M1642619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378374#M1642620</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;could u pls send me the sample code  to check wether the no exists in the no series  or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378374#M1642620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378375#M1642621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to compare the user entered value with previous series no. or the next series no.? Can you tell me how you are generating this series no.s?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378375#M1642621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378376#M1642622</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 am just selecting the max value in the itab when user pressed (NEW) and incrementing that no by one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way i am following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any another efficient way pls suggest me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378376#M1642622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378377#M1642623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say your increamented number is stored in a variable NUM. When user enters a value and clicks SAVE, compare the input with this variable NUM. If they do not match, just show a popup with your message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is what you wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 09:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378377#M1642623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T09:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378378#M1642624</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 have understood the problem but my problem is i dont know how to compare,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user's input maybe less than max no in itab or may be grater or may be matches or he can enter randomly any value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here if the enterd no is less than max value  or equal to max value  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the no is not stored in itab bcz they r alrdy exists in itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when the user entered   anyval  &amp;gt; maxval  the value is storing in itab and the auto generation starts from that no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i want that wen usr entered value is immediate next to my max val then only that val has to be saved in itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise it has to generate message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope my problem is clear for u now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u pls send me some sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 10:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378378#M1642624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T10:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378379#M1642625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay. I got it now. The code should be as:&lt;/P&gt;&lt;P&gt;if user entered value&amp;gt; maxval + 1.&lt;/P&gt;&lt;P&gt;   show error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have this maxval in your code. So, you can use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this fine now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 10:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378379#M1642625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T10:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378380#M1642626</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;ok i got that now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for suppose i want to completely restricts the user input to that field wat shld i do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont say disable that field,bcz that fld is reqired to me to check for any entered serailno   there r any records exists in the item &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table r not. i want to disable only user enterd values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shld it be possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u plz let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 10:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378380#M1642626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378381#M1642627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can restrict in such a way. We cannot check only user entered values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 10:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378381#M1642627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378382#M1642628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain this in detail..  "i want to disable only user enterd values.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See, if you want to have the serial number field enabled and want user to enter the number. After the user enters you can cross check it with database table if the number already exists.&lt;/P&gt;&lt;P&gt;If it doesn't exist then you can assign that number, but if that number already exists you want to assign a new serial number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is your requirement then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there could be a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your database table has 1-10 serial number and some user entered his own serial number as 15 and you saved it.&lt;/P&gt;&lt;P&gt;this will be fine.&lt;/P&gt;&lt;P&gt;But the next time if the user again enters a serial of 15 then you will find 15 already in your database and hence you will find the max value from table i.e 15 and increase it by 1 and then assign 16 to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by doing this there wont be proper serial maintained in your records.&lt;/P&gt;&lt;P&gt;Just in above example you can observe 11-14 number vanish until and unless your gives them on his own..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 11:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378382#M1642628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-02T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378383#M1642629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here user was not allowed to enter any value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the val has to increment automatically by comparing with max val exist in db table when user presses NEW pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in any case or by mistake if user enters any value and presses SAVE pushbutton, then the entered val gettin saved in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbtab and when he presses NEW the series satrtin from that no,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to restrict that case .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have any better one pls suggest me.&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;Maheshlap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 03:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378383#M1642629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T03:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378384#M1642630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could possibly do this.....&lt;/P&gt;&lt;P&gt;1. as suggested by sindhu above disable input to that field but display the serial when new button is pressed.&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. do not disable the field but display the serial and store it in a separate variable. Now if the user changes the serial by any chance on the screen then do not consider the changed value and just update database with the serial in your variable all the time. and display the serial saved in DB on the screen so that user is aware of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my suggestion is .... if you dont want user to disturb the serial counting then just INPUT DISABLE the serial field on the screen. This will help user to see the serial but do not modify it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 15:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-dialog-programming/m-p/8378384#M1642630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T15:16:28Z</dc:date>
    </item>
  </channel>
</rss>

