<?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: A doubt in parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011437#M711651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use below sample coding for updating database table from ur internal table and modify it according to your need...&lt;/P&gt;&lt;P&gt;As your problem is not well cleared.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wtab.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ztable WHERE matnr = wtab-matnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MODIFY ztable FROM wtab.&lt;/P&gt;&lt;P&gt;Elseif sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;insert into ztable value wtab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps you&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2007 08:11:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-28T08:11:49Z</dc:date>
    <item>
      <title>A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011430#M711644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everyone is doing well.I got a small problem.I wrote small SE38 program using parameters to accept few fields and put the data to internal table,then to database from internal table.I need to validate a field(trackid) which is primary key.The validation is for duplication.If the user enter duplicate ID,after F8,a message should be displayed that key already exists and the control should be passed to the trackid field.Previously I have posted the same query in selection screens.Is the same possible when we use parameters option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2007 15:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011430#M711644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-27T15:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011431#M711645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user enters Track ID value in parameter P_TRACKID in selection screen, you can use event AT SELECTION_SCREEN ON P_TRACKID, to validate if the entry exists in the table. If it exists, you can display error message,&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;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2007 15:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011431#M711645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-27T15:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011432#M711646</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;yes the same thing is possible in parameters also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to validate after F8 is pressed.do the validation in the START-OF-SELECTION event or else normally you can do by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION_SCREEN ON P_TRACKID&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;Sheron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2007 15:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011432#M711646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-27T15:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011433#M711647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this are various form of AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for providing F4 help...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN ON VALUE-REQUEST&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Validating your select-option..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN ON FIELD or ON BLOCK.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON S_TRID.&lt;/P&gt;&lt;P&gt;    where S_TRID is the Select-option u declared before..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2007 15:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011433#M711647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-27T15:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011434#M711648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies.Its working,but my concern is when I press &amp;lt;enter&amp;gt; only,the code validates and message is displayed but not when tab is pressed,Is it possible to validate code when tab is pressed,something like lost focus.Here is my code&lt;/P&gt;&lt;P&gt;tables zgtable.&lt;/P&gt;&lt;P&gt;parameters:trackid(10) type n,&lt;/P&gt;&lt;P&gt;           artist(25)  type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of warea,&lt;/P&gt;&lt;P&gt;      mandt   type zgtable-mandt,&lt;/P&gt;&lt;P&gt;      trackid type zgtable-trackid,&lt;/P&gt;&lt;P&gt;      artist  type zgtable-artist,&lt;/P&gt;&lt;P&gt;      end of warea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:itable type standard table of warea with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move trackid to itable-trackid.&lt;/P&gt;&lt;P&gt;move artist to itable-artist.&lt;/P&gt;&lt;P&gt;append itable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on trackid.&lt;/P&gt;&lt;P&gt;select * from zgtable where trackid = trackid.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-dbcnt &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message i000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zgtable from table itable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few more problems:&lt;/P&gt;&lt;P&gt;1)data is not getting stored in table when we enter correct trackid,why?&lt;/P&gt;&lt;P&gt;and if i use 'at selection-screen on VALUE-REQUEST' following error is coming&lt;/P&gt;&lt;P&gt;'value-request is neither a selection criterion nor a parameter'...why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 07:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011434#M711648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T07:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011435#M711649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables zgtable.&lt;/P&gt;&lt;P&gt;parameters:trackid(10) type n,&lt;/P&gt;&lt;P&gt;artist(25) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of warea,&lt;/P&gt;&lt;P&gt;mandt type zgtable-mandt,&lt;/P&gt;&lt;P&gt;trackid type zgtable-trackid,&lt;/P&gt;&lt;P&gt;artist type zgtable-artist,&lt;/P&gt;&lt;P&gt;end of warea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:itable type standard table of warea with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move trackid to itable-trackid.&lt;/P&gt;&lt;P&gt;move artist to itable-artist.&lt;/P&gt;&lt;P&gt;append itable.&lt;/P&gt;&lt;P&gt;data : itgtable type standard table of zgtable with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on trackid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use internal tables always where it is possible..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select * from zgtable into table itgtable where trackid = trackid.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;message i000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;insert zgtable from table itable.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Try to debug and see the flow of program...&lt;/P&gt;&lt;P&gt;are the values are getting updated or not ?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Reward points if for all usefull answers&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 07:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011435#M711649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011436#M711650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got your 1st point which says that we can use internal tables the way you used.Secondly I really dont know how to debug a program.After I run the program, I check the database where I dont find the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 07:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011436#M711650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T07:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: A doubt in parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011437#M711651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use below sample coding for updating database table from ur internal table and modify it according to your need...&lt;/P&gt;&lt;P&gt;As your problem is not well cleared.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wtab.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ztable WHERE matnr = wtab-matnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MODIFY ztable FROM wtab.&lt;/P&gt;&lt;P&gt;Elseif sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;insert into ztable value wtab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps you&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 08:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-doubt-in-parameters/m-p/3011437#M711651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T08:11:49Z</dc:date>
    </item>
  </channel>
</rss>

