<?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 with select end select statment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085425#M1180820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry I could not get you.... could you please be more specific.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2009 10:48:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-06T10:48:02Z</dc:date>
    <item>
      <title>Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085415#M1180810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all genious,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i have got a strange kind of problem, actually there is a custom program which picks value from Mard table and display the one fied with repect to the material numbers and the same value we can see via the MMBE transaction also. actually sometimess the the field value comes as zero even though the value exists in MMBE transaction, Different times the different material gives the field value as zero.and most of the times the output is perfectly fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually there is select endselect statement has been written on the MARD table. i guess sometimes it is not able to read the database table. What shall i do?? i am planning to put do and enddo statement outside the select endselect stament. so that even if sometimes the database access fails the next time it will be fine. I am not able to find any other problem in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be a great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085415#M1180810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085416#M1180811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Could you paste your select query here so that it can be evaluated.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;PS. Never ever put your select-endselect between a do and enddo..it creates a severe performance degradation of your code.&lt;/P&gt;&lt;P&gt;Hope this is helpfull..&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085416#M1180811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085417#M1180812</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;Kindly paste your code so we can help out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mon Magallanes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085417#M1180812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085418#M1180813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually it is a client data so i cannot paste it, m really sorry, m scared a bit. actually that zero in that field is not uniform so m not sure if it is problem with coding, m not able to debug also the code dumps if we debug between select end select satement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085418#M1180813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085419#M1180814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;zl_old_matnr = 'z'.&lt;/P&gt;&lt;P&gt;  CLEAR : zl_labst_hd, zl_labst_sd, zl_speme_hd, zl_speme_sd.&lt;/P&gt;&lt;P&gt;  SELECT matnr lgort labst speme FROM mard&lt;/P&gt;&lt;P&gt;                  INTO (zl_matnr,zl_lgort,zl_labst,zl_speme)&lt;/P&gt;&lt;P&gt;                  WHERE werks = p_werks&lt;/P&gt;&lt;P&gt;                    AND ( lgort = p_lg_hd OR lgort = p_lg_sd ).&lt;/P&gt;&lt;P&gt;    IF zl_old_matnr NE zl_matnr AND sy-dbcnt NE 1.&lt;/P&gt;&lt;P&gt;  READ TABLE tab_header_record WITH KEY matnr = zl_old_matnr&lt;/P&gt;&lt;P&gt;                                               BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;On complète TAB_HEADER_RECORD avec les infos de stock&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tab_header_record-labst_hd = zl_labst_hd.&lt;/P&gt;&lt;P&gt;    tab_header_record-speme_hd = zl_speme_hd.&lt;/P&gt;&lt;P&gt;    tab_header_record-labst_sd = zl_labst_sd.&lt;/P&gt;&lt;P&gt;    tab_header_record-speme_sd = zl_speme_sd.&lt;/P&gt;&lt;P&gt;    MODIFY tab_header_record INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Si l'article n'a pas été envoyé dans le fichier&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DATA : zl_stock LIKE mard-labst.&lt;/P&gt;&lt;P&gt;    zl_stock = zl_labst_hd + zl_speme_hd&lt;/P&gt;&lt;P&gt;                     + zl_labst_sd + zl_speme_sd.&lt;/P&gt;&lt;P&gt;    IF NOT ( zl_stock IS INITIAL ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;On remplit la table avec articles stock&amp;lt;&amp;gt;0 dans SAP et non envoyés&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ADD 1 TO w_compteur_ligne.&lt;/P&gt;&lt;P&gt;      CLEAR tab_edit.&lt;/P&gt;&lt;P&gt;      tab_edit-matnr = zl_old_matnr.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE maktx FROM makt INTO tab_edit-maktx&lt;/P&gt;&lt;P&gt;                       WHERE matnr = zl_old_matnr&lt;/P&gt;&lt;P&gt;                              AND spras = k_spras.&lt;/P&gt;&lt;P&gt;      tab_edit-qty_pds = 0.&lt;/P&gt;&lt;P&gt;      tab_edit-qty_sap = zl_stock.&lt;/P&gt;&lt;P&gt;      tab_edit-qty_ecart = zl_stock.&lt;/P&gt;&lt;P&gt;      tab_edit-observation = 'Absent de INVRPT !'.&lt;/P&gt;&lt;P&gt;      DATA : zl_labst2 LIKE mard-labst.&lt;/P&gt;&lt;P&gt;      zl_labst2 = zl_labst_hd + zl_labst_sd.&lt;/P&gt;&lt;P&gt;      IF zl_labst2 IS INITIAL.&lt;/P&gt;&lt;P&gt;        tab_edit-type_stock = 'xyz'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        tab_edit-type_stock = 'abc'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      APPEND tab_edit.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;      CLEAR : zl_labst_hd, zl_labst_sd, zl_speme_hd, zl_speme_sd.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    zl_old_matnr = zl_matnr.&lt;/P&gt;&lt;P&gt;    IF zl_lgort = p_lg_hd.&lt;/P&gt;&lt;P&gt;      ADD zl_labst TO zl_labst_hd.&lt;/P&gt;&lt;P&gt;      ADD zl_speme TO zl_speme_hd.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      ADD zl_labst TO zl_labst_sd.&lt;/P&gt;&lt;P&gt;      ADD zl_speme TO zl_speme_sd.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085419#M1180814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085420#M1180815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Try to use the below Conversion routines for MATNR field before SELECT and ENDSELECT statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_MATN1_OUTPUT&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085420#M1180815</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-02-06T07:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085421#M1180816</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;Its fine if you dont want to paste the code,&lt;/P&gt;&lt;P&gt;Firstly write a select query as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;field1&amp;gt;&lt;/P&gt;&lt;P&gt;         &amp;lt;field2&amp;gt;... etc...&lt;/P&gt;&lt;P&gt;from mard&lt;/P&gt;&lt;P&gt;into corresponding fields of &amp;lt;field_string&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;condition&amp;gt;... if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try to execute your code... if it works fine then please check the fields written in select query and the fields in the internal table are not in the same order may be they are jumbled or your internal table might have an extra field in between them...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let us know whether into corresponding fields of &amp;lt;field_string&amp;gt; is working or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085421#M1180816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T07:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085422#M1180817</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;Can't see problem in the code. Have you already the pin point scenario when the problem occured? I think you need to debug you code so that you can isolate the the cause.&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;Mon Magallanes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 08:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085422#M1180817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085423#M1180818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nikesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; could you please let me know at which statement you are getting the dump is it on the select statement or inside select statement there is a read statement... or somewhere else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 08:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085423#M1180818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T08:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085424#M1180819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing is that field value comes zero only for first 5 fields usually that different materials at different time. Most of the times there is now problem at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 08:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085424#M1180819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T08:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select end select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085425#M1180820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry I could not get you.... could you please be more specific.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 10:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-end-select-statment/m-p/5085425#M1180820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T10:48:02Z</dc:date>
    </item>
  </channel>
</rss>

