<?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 find  error in code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864557#M1886980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can any one tell me , why&amp;nbsp; function module is not&amp;nbsp; selecting data based on options ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 106%; font-family: 'Segoe UI',sans-serif; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;DATA: l_be_log_system1&lt;BR /&gt;TYPE be_log_system,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lt_options1 TYPE TABLE OF rfc_db_opt,&lt;BR /&gt;&lt;BR /&gt;ls_options1 LIKE LINE OF lt_options1,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i_fields1 TYPE TABLE OF rfc_db_fld,&lt;BR /&gt;&lt;BR /&gt;wa_fields1 TYPE rfc_db_fld,&lt;BR /&gt;&lt;BR /&gt;i_data1 TYPE TABLE OF tab512,&lt;BR /&gt;&lt;BR /&gt;wa_data1 TYPE tab512.&lt;BR /&gt;&lt;BR /&gt;data: line type line .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;l_be_log_system1 = es_item-be_log_system.&lt;BR /&gt;&lt;BR /&gt;*************** FOR OPTIONS&lt;BR /&gt;&lt;BR /&gt;READ TABLE i_account into wa_account with KEY order_no = '001000007336'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;concatenate 'order_no = ''' wa_account-order_no '''' into line .&lt;BR /&gt;&lt;BR /&gt;move: line to ls_options1 .&lt;BR /&gt;&lt;BR /&gt;append ls_options1 to lt_options1 .&lt;BR /&gt;&lt;BR /&gt;************** FOR FIELDS&lt;BR /&gt;&lt;BR /&gt;wa_fields1-fieldname = 'AUFNR'.&lt;BR /&gt;&lt;BR /&gt;APPEND wa_fields1 TO i_fields1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'RFC_READ_TABLE' DESTINATION l_be_log_system1&lt;BR /&gt;&lt;BR /&gt;EXPORTING&lt;BR /&gt;&lt;BR /&gt;query_table = 'COAS'&lt;BR /&gt;&lt;BR /&gt;TABLES&lt;BR /&gt;&lt;BR /&gt;OPTIONS = lt_options1&lt;BR /&gt;&lt;BR /&gt;fields = i_fields1&lt;BR /&gt;&lt;BR /&gt;data = i_data1&lt;BR /&gt;&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt;&lt;BR /&gt;table_not_available = 1&lt;BR /&gt;&lt;BR /&gt;table_without_data = 2&lt;BR /&gt;&lt;BR /&gt;option_not_valid = 3&lt;BR /&gt;&lt;BR /&gt;field_not_valid = 4&lt;BR /&gt;&lt;BR /&gt;not_authorized = 5&lt;BR /&gt;&lt;BR /&gt;data_buffer_exceeded = 6&lt;BR /&gt;&lt;BR /&gt;OTHERS = 7. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 106%; font-family: 'Segoe UI',sans-serif; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 106%; font-family: 'Segoe UI',sans-serif; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;Hari Gutti&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 12:51:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-02-05T12:51:56Z</dc:date>
    <item>
      <title>find  error in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864557#M1886980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can any one tell me , why&amp;nbsp; function module is not&amp;nbsp; selecting data based on options ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 106%; font-family: 'Segoe UI',sans-serif; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;DATA: l_be_log_system1&lt;BR /&gt;TYPE be_log_system,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lt_options1 TYPE TABLE OF rfc_db_opt,&lt;BR /&gt;&lt;BR /&gt;ls_options1 LIKE LINE OF lt_options1,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i_fields1 TYPE TABLE OF rfc_db_fld,&lt;BR /&gt;&lt;BR /&gt;wa_fields1 TYPE rfc_db_fld,&lt;BR /&gt;&lt;BR /&gt;i_data1 TYPE TABLE OF tab512,&lt;BR /&gt;&lt;BR /&gt;wa_data1 TYPE tab512.&lt;BR /&gt;&lt;BR /&gt;data: line type line .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;l_be_log_system1 = es_item-be_log_system.&lt;BR /&gt;&lt;BR /&gt;*************** FOR OPTIONS&lt;BR /&gt;&lt;BR /&gt;READ TABLE i_account into wa_account with KEY order_no = '001000007336'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;concatenate 'order_no = ''' wa_account-order_no '''' into line .&lt;BR /&gt;&lt;BR /&gt;move: line to ls_options1 .&lt;BR /&gt;&lt;BR /&gt;append ls_options1 to lt_options1 .&lt;BR /&gt;&lt;BR /&gt;************** FOR FIELDS&lt;BR /&gt;&lt;BR /&gt;wa_fields1-fieldname = 'AUFNR'.&lt;BR /&gt;&lt;BR /&gt;APPEND wa_fields1 TO i_fields1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'RFC_READ_TABLE' DESTINATION l_be_log_system1&lt;BR /&gt;&lt;BR /&gt;EXPORTING&lt;BR /&gt;&lt;BR /&gt;query_table = 'COAS'&lt;BR /&gt;&lt;BR /&gt;TABLES&lt;BR /&gt;&lt;BR /&gt;OPTIONS = lt_options1&lt;BR /&gt;&lt;BR /&gt;fields = i_fields1&lt;BR /&gt;&lt;BR /&gt;data = i_data1&lt;BR /&gt;&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt;&lt;BR /&gt;table_not_available = 1&lt;BR /&gt;&lt;BR /&gt;table_without_data = 2&lt;BR /&gt;&lt;BR /&gt;option_not_valid = 3&lt;BR /&gt;&lt;BR /&gt;field_not_valid = 4&lt;BR /&gt;&lt;BR /&gt;not_authorized = 5&lt;BR /&gt;&lt;BR /&gt;data_buffer_exceeded = 6&lt;BR /&gt;&lt;BR /&gt;OTHERS = 7. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 106%; font-family: 'Segoe UI',sans-serif; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; line-height: 106%; font-family: 'Segoe UI',sans-serif; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;Hari Gutti&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 12:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864557#M1886980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-05T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: find  error in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864558#M1886981</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;What do you have in sy-subrc after the call ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 13:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864558#M1886981</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2015-02-05T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: find  error in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864559#M1886982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you forgot to add a OR between each selection criteria (or refresh the itab)?&lt;/P&gt;&lt;P&gt;If the target is a SAP system, does your table COAS actually contain a field "&lt;SPAN style="color: black; font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;order_no"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Did you always monitor sy-subrc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 13:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864559#M1886982</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-02-05T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: find  error in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864560#M1886983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem seems to be here in this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'order_no = ''' wa_account-order_no '''' into line .&lt;/P&gt;&lt;P&gt;***move: line to ls_options1 .&lt;/P&gt;&lt;P&gt;ls_options1 = 'order_no = 1234'.&lt;/P&gt;&lt;P&gt;append ls_options1 to lt_options1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here lt_options1 is internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is selection options then you have to give high or low value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 13:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-error-in-code/m-p/10864560#M1886983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-05T13:49:28Z</dc:date>
    </item>
  </channel>
</rss>

