<?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: extended program check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076510#M974730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass all the key fields in the where clause of the Select statement.&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;&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 07:21:47 GMT</pubDate>
    <dc:creator>former_member182354</dc:creator>
    <dc:date>2008-07-09T07:21:47Z</dc:date>
    <item>
      <title>extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076503#M974723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;experts ,&lt;/P&gt;&lt;P&gt;assumption: work area declared ie gs_cdhdr of type cdhdr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     i have coded a following statement &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;select single OBJECTCLAS&lt;/P&gt;&lt;P&gt;                 objectid&lt;/P&gt;&lt;P&gt;                 changenr&lt;/P&gt;&lt;P&gt;                 FROM CDHDR&lt;/P&gt;&lt;P&gt;                 INTO (gs_cdhdr-objectclas,&lt;/P&gt;&lt;P&gt;                            gs_cdhdr-  bjectid,&lt;/P&gt;&lt;P&gt;                            gs_cdhdr-changenr)&lt;/P&gt;&lt;P&gt;                 WHERE objectclas = 'BELEG'&lt;/P&gt;&lt;P&gt;                 AND username IN s_uname&lt;/P&gt;&lt;P&gt;                 AND udate IN s_date&lt;/P&gt;&lt;P&gt;                 AND tcode = 'FB02'&lt;/P&gt;&lt;P&gt;                 AND change_ind   = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use extended program check&lt;/P&gt;&lt;P&gt;the following warning message is getting displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In "SELECT SINGLE ...", the WHERE condition for the key field "CHANGENR" does not    &lt;/P&gt;&lt;P&gt; test for equality. Therefore, the single record in question is possibly not   unique.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where am  i coding wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076503#M974723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T06:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076504#M974724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key fields in CDHDR table are OBJECTCLAS ,OBJECTID and CHANGENR .&lt;/P&gt;&lt;P&gt;But your select statement has only OBJECTCLAS .. So there is a possibilty of multiple entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try to include OBJECTID and CHANGENR  in u r select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076504#M974724</guid>
      <dc:creator>sachin_mathapati</dc:creator>
      <dc:date>2008-07-09T06:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076505#M974725</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;In CDHDR we three OBJECTCLAS&lt;/P&gt;&lt;P&gt;OBJECTID&lt;/P&gt;&lt;P&gt;CHANGENR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key fields and you are passing only one in Where clause. So it may be possible with one  OBJECTCLAS we have more than one rcord in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076505#M974725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076506#M974726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is sying that untill you enter the changer value in where condition i cant able to retrive a unique single record from database , it may have mor than one entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so specify the value of changer in where condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076506#M974726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T06:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076507#M974727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a SELECT querry, the addition SINGLE is used only when the WHERE clause conatins the complete primary key of the table being hit. If we cannot include details of the complete primary key in the WHERE clause, the addition SELECT UP TO 1 ROWS is to be used. The same SELECT querry modified as shown here, will give no EPC checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT objectclas&lt;/P&gt;&lt;P&gt;             objectid&lt;/P&gt;&lt;P&gt;             changenr&lt;/P&gt;&lt;P&gt;             FROM cdhdr&lt;/P&gt;&lt;P&gt;             INTO (gs_cdhdr-objectclas,&lt;/P&gt;&lt;P&gt;                       gs_cdhdr-objectid,&lt;/P&gt;&lt;P&gt;                       gs_cdhdr-changenr)&lt;/P&gt;&lt;P&gt;             UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;             WHERE objectclas EQ 'BELEG'&lt;/P&gt;&lt;P&gt;            AND username    IN s_uname&lt;/P&gt;&lt;P&gt;            AND udate          IN s_date&lt;/P&gt;&lt;P&gt;            AND tcode          EQ  'FB02'&lt;/P&gt;&lt;P&gt;            AND change_ind  EQ 'U'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 06:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076507#M974727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T06:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076508#M974728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see table CDHDR you would fing the key fields are OBJECTCLAS, OBJECTID, CHANGENR.&lt;/P&gt;&lt;P&gt;When we want to use select single to retrieve data then all the key field should be specified in the selection criteria to get tthe proper result.As there is a violation to that rule,that is the reason why you are getting the warning in epc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code should be:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single OBJECTCLAS
                  objectid
                  changenr
                  FROM CDHDR
                 INTO (gs_cdhdr-objectclas,
                            gs_cdhdr-  bjectid,
                            gs_cdhdr-changenr)
               WHERE objectclas = 'BELEG'
                and       objectid = 'xyz'
                 and changenr = '123'
                AND username IN s_uname
                  AND udate IN s_date
                  AND tcode = 'FB02'
               AND change_ind   = 'U'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would remove the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 07:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076508#M974728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076509#M974729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables cdhdr.&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;if ur unable to pass primary key to selection condition then we have to use up to rows statement &lt;/P&gt;&lt;P&gt;data: gs_cdhdr type cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_uname for cdhdr-username,&lt;/P&gt;&lt;P&gt;                s_date for cdhdr-udate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select OBJECTCLAS&lt;/P&gt;&lt;P&gt;objectid&lt;/P&gt;&lt;P&gt;changenr&lt;/P&gt;&lt;P&gt;up to 1 rows&lt;/P&gt;&lt;P&gt;FROM CDHDR&lt;/P&gt;&lt;P&gt;INTO (gs_cdhdr-objectclas,gs_cdhdr-objectid,gs_cdhdr-changenr)&lt;/P&gt;&lt;P&gt;WHERE objectclas = 'BELEG'&lt;/P&gt;&lt;P&gt;AND username IN s_uname&lt;/P&gt;&lt;P&gt;AND udate IN s_date&lt;/P&gt;&lt;P&gt;AND tcode = 'FB02'&lt;/P&gt;&lt;P&gt;AND change_ind = 'U'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 07:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076509#M974729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T07:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076510#M974730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass all the key fields in the where clause of the Select statement.&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;&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 07:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076510#M974730</guid>
      <dc:creator>former_member182354</dc:creator>
      <dc:date>2008-07-09T07:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076511#M974731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This warning comes when you are not specifying all the primary keys in the database table. To remove the warning include all the primark keys in the table CDHDR in your SELECT SINGLE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 08:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076511#M974731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: extended program check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076512#M974732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The key fields in CDHDR  are &lt;/P&gt;&lt;P&gt;  OBJECTCLAS&lt;/P&gt;&lt;P&gt;  OBJECTID&lt;/P&gt;&lt;P&gt;  CHANGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you use select single then check with all the key fields . &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;Rajitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 08:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extended-program-check/m-p/4076512#M974732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T08:56:25Z</dc:date>
    </item>
  </channel>
</rss>

