<?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: Code not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216333#M766941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to handle the menu options from the selction screen only. I had written the FORM-----ENDFORM in start-of-selection only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think this is correct. But its not displaying any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Anil,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2008 08:50:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-07T08:50:06Z</dc:date>
    <item>
      <title>Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216327#M766935</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;Please help me. The below code is not displaying the report.&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;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'UACR'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   PERFORM PROCESS_UACR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form PROCESS_UACR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_dupreg_new  TYPE TABLE OF zdvmt_dupreg WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_dupreg_new  TYPE          zdvmt_dupreg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      lt_irnum       TYPE TABLE OF zdvmt_i_record WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      lt_product     TYPE TABLE OF zdvmt_product WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_email       TYPE zdvmt_emailid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zdvmt_dupreg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            INTO TABLE lt_dupreg_new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            WHERE acr = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT lt_dupreg_new BY bpsetno .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT COLOR COL_POSITIVE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /1  'RECNO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        8  'SETNO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        17  'BPNO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        28 'BPGUID',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        68 'FIRSTNAME',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        88 'LASTNAME',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        108 'BU_SORT1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        128 'BU_SORT2',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       148 'EMAIL',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        148 'TELEPHONE1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        163 'TELEPHONE2',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        178 'TELEPHONE3',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        193 'COUNTRY',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        201 'CreateUser',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        218 'CreateDate',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        235 'CreateTime',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        250 'CHANGEDBY',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        266 'CHANGEDDate',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        284 'CHANGEDTIME',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        300 'CIDNUMBER',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        320 'ACR',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        325 'SETCODE',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        333 'EMAIL',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        363 'STD_NO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        370 'PRODUCTGUID',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        405 'PRODCUTNO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        420 'SERIALNO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        430 'CREATEDBY',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        445 'CREATEDAT',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        465 'IRNUMBER',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        480 'CREATED_BY',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        495 'CREATED_AT'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT lt_dupreg_new BY bpsetno bpno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_dupreg_new INTO ls_dupreg_new. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW BPSETNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT COLOR COL_BACKGROUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: /1 ls_dupreg_new-recno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          8 ls_dupreg_new-bpsetno, 17 ls_dupreg_new-bpno, 28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ls_dupreg_new-bpguid, 68 ls_dupreg_new-firstname, 88&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ls_dupreg_new-lastname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            108 ls_dupreg_new-bu_sort1, 128 ls_dupreg_new-bu_sort2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            148 ls_dupreg_new-phone1, 163&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ls_dupreg_new-phone2, 178 ls_dupreg_new-phone3,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            193 ls_dupreg_new-country, 201 ls_dupreg_new-crusr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            218 ls_dupreg_new-crdat, 235 ls_dupreg_new-crtim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            250 ls_dupreg_new-chusr, 266 ls_dupreg_new-chdat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            284 ls_dupreg_new-chtim, 300 ls_dupreg_new-cidnumber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            320 ls_dupreg_new-acr, 325 ls_dupreg_new-setcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_setno = ls_dupreg_new-bpsetno. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216327#M766935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216328#M766936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;zdvmt_dupreg does this table contain line with value acr = 'U'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 07:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216328#M766936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T07:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216329#M766937</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;U have written this code under the AT SELECTION-SCREEN event. So the system remains at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this code under START-OF-SELECTION or END-OF-SELECTION events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas Ch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 08:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216329#M766937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216330#M766938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u please mention the fields and their corresponding data elements  present in  &lt;STRONG&gt;zdvmt_dupreg&lt;/STRONG&gt; ,&lt;STRONG&gt;zdvmt_i_record , zdvmt_product&lt;/STRONG&gt; tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;suma sailaja pvn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 08:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216330#M766938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T08:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216331#M766939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this process it is not possible to give you the exact solution for your requiement ,  i would suggest you to debug the report and post the error that you are getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 08:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216331#M766939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T08:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216332#M766940</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;Whenever you are using control break stmt like ATNEW ..ENDAT , The field should be the first field in the internal table.otherwise you will not get expected result in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_dupreg_new INTO ls_dupreg_new. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW BPSETNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT COLOR COL_BACKGROUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you make code correction as bpsetno as first field in the internal table  lt_dupreg_new so that you may get result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just declare internal table and populate data like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 08:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216332#M766940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T08:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216333#M766941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to handle the menu options from the selction screen only. I had written the FORM-----ENDFORM in start-of-selection only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think this is correct. But its not displaying any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Anil,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 08:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216333#M766941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T08:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216334#M766942</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;Check you code and change as follow.&lt;/P&gt;&lt;P&gt;First Define like this &lt;/P&gt;&lt;P&gt;TABLES :sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN. &lt;/P&gt;&lt;P&gt; CASE sscrfields-ucomm.   " should be change like this&lt;/P&gt;&lt;P&gt;   WHEN 'UACR'. &lt;/P&gt;&lt;P&gt;        PERFORM PROCESS_UACR.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure in the Pf-Status you have created one push Button with 'UACR' function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definetly it work. else send me the error you r getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Swati namdeo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 09:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216334#M766942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T09:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216335#M766943</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;Though you have mentioned your form.....endform in the start-of-selection event you need to mention the perform statement also in start-of-sel event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'UACR'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM PROCESS_UACR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also keep in mind, when you say at new (something)...&lt;/P&gt;&lt;P&gt;the rest of the fields in that internal table will get disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so pass the fields into another internal table which is simalar to the one, and then use at nw command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since you are saying at new... and then trying to print using write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, before using at new...pass the values to another int table and then print it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 09:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/3216335#M766943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T09:06:04Z</dc:date>
    </item>
  </channel>
</rss>

