<?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 how to avoid hard coding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460885#M552074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am retrieving the data from bseg, bkpf and bsad tables into 3 different internal tables.. like.. first of i took the data from bseg table (BELNR, BUKRS, GJAHR, CPUDT, CPUTM) into one internal table ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all entries in ITAB1, I selected the data from BSEG table (BELNR, GJAHR, BUKRS, DMBTR, SHKZG, KUNNR, UMSKS, UMSKZ, AUGDT, AUGBL, GUONR, BUZEI) into another internal table ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on itab2 key fields i retrieved the data from BSAD table (XBLNR, REBZG, PRCTR, VBELZ, ZUONR, KUNNR, XREF1, XREF2, XREF3) into itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is ... I have to filter the data based on the fields of  BSAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: BSAD-XREF3 &amp;lt;&amp;gt; 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379 or 325  delete the records......... from itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to avoid this hard coding how to do it... where to specify all those values and how to pass that variable in the select statement... please can anyone guide me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 03:37:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T03:37:49Z</dc:date>
    <item>
      <title>how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460885#M552074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am retrieving the data from bseg, bkpf and bsad tables into 3 different internal tables.. like.. first of i took the data from bseg table (BELNR, BUKRS, GJAHR, CPUDT, CPUTM) into one internal table ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all entries in ITAB1, I selected the data from BSEG table (BELNR, GJAHR, BUKRS, DMBTR, SHKZG, KUNNR, UMSKS, UMSKZ, AUGDT, AUGBL, GUONR, BUZEI) into another internal table ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on itab2 key fields i retrieved the data from BSAD table (XBLNR, REBZG, PRCTR, VBELZ, ZUONR, KUNNR, XREF1, XREF2, XREF3) into itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is ... I have to filter the data based on the fields of  BSAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: BSAD-XREF3 &amp;lt;&amp;gt; 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379 or 325  delete the records......... from itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to avoid this hard coding how to do it... where to specify all those values and how to pass that variable in the select statement... please can anyone guide me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460885#M552074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460886#M552075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ranges : rxref3 for bsad-xref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rxref3-low = '170'.&lt;/P&gt;&lt;P&gt;rxref3-high = '179'.&lt;/P&gt;&lt;P&gt;rxref3-sign = 'E'.&lt;/P&gt;&lt;P&gt;rxref3-option = 'BT'.&lt;/P&gt;&lt;P&gt;append rxref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rxref3-low = '370'.&lt;/P&gt;&lt;P&gt;rxref3-high = '379'.&lt;/P&gt;&lt;P&gt;rxref3-sign = 'E'.&lt;/P&gt;&lt;P&gt;rxref3-option = 'BT'.&lt;/P&gt;&lt;P&gt;append rxref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rxref3-low = '270'.&lt;/P&gt;&lt;P&gt;rxref3-high = '279'.&lt;/P&gt;&lt;P&gt;rxref3-sign = 'E'.&lt;/P&gt;&lt;P&gt;rxref3-option = 'BT'.&lt;/P&gt;&lt;P&gt;append rxref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rxref3-low = '325'.&lt;/P&gt;&lt;P&gt;rxref3-sign = 'E'.&lt;/P&gt;&lt;P&gt;rxref3-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append rxref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use select *  from bsad .......where xref3 in rxref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460886#M552075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460887#M552076</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;   if all the hard coded values are a result set of a condition..like order type = 'XX' or something, then you can directly use that condition in the select...if those values are going to be static for your scenario, then probably you can build a range with those values harcoded and then use NOT IN in your select..again, you have to pass those values (hard code!) to build your range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460887#M552076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460888#M552077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shiba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are solution makes sense...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so here one more point is also there actually before I filter those records I have to separate those records into debit and credit records into 2 different internal tables and then i have to filter those records ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for the debit and credit records for the same fields the set of values are different means &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for credit records condition is BSAD-XREF3 = 345 or 369 then delete the records....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for debit records condition is BSAD-XREF3 = 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379 or 325.  then delete the records &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case how to apply the condition and filter the records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your valuable time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460888#M552077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460889#M552078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;if  BSAD-XREF3  ( ge170  and   le 179 )  or  if  BSAD-XREF3  ( ge270  and   le 279 )   or if  BSAD-XREF3  ( ge370  and   le 379 )   or  BSAD-XREF3 eq 325 .

de;ete   from itab.

endif &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points  if it is uefull .......&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460889#M552078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460890#M552079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you can get the two int tab with icred and idebt before using the for all entries in bsad table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for credit also declare one range...&lt;/P&gt;&lt;P&gt;ranges rxrefc for bsad-xref3.&lt;/P&gt;&lt;P&gt;rxrefc-low = '345'.&lt;/P&gt;&lt;P&gt;rxrefc-sign = 'E'.&lt;/P&gt;&lt;P&gt;rxrefc-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append xrefc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rxrefc-low = '369'.&lt;/P&gt;&lt;P&gt;rxrefc-sign = 'E'.&lt;/P&gt;&lt;P&gt;rxrefc-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append xrefc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use&lt;/P&gt;&lt;P&gt;select ... from bsad for all entries in icred into table ibsadc where xref3 in rxrefc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for debt...&lt;/P&gt;&lt;P&gt;select ... from bsad for all entries in idebt into table ibsadd where xref3 in rxref3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 04:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460890#M552079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T04:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid hard coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460891#M552080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok shiba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to implement that tomorrow morning and if i get any problem i will get back to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton for your quick reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 04:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-hard-coding/m-p/2460891#M552080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T04:06:53Z</dc:date>
    </item>
  </channel>
</rss>

