<?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: Using string in instruction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079246#M1614348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi afromeen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand you correct, you want to substitute specific values in a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a second table with same structure 3 columns: Structure, Field, Value. This table could be maintained using maintenance screen. Then put in here the Structure and Field names relevant for substitution and the substitution value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then loop at the original table. For each line, check if you have a substitution value. The substitution table can be loaded into a sorted or hashed key table and accessed quickly using READ TABLE WITH TABLE KEY. Use field-symbols to save time.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 13:24:05 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2011-08-03T13:24:05Z</dc:date>
    <item>
      <title>Using string in instruction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079244#M1614346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do action in BRF which make field value substitution in some structure. I have table with 3 columns: Structure, Field, Value. two first columns are string.Now if i want make substitution i have to use multi and mulilevel CASE's. How can I make sunbstitution instruction using these strings like 'Structure'-'Field' = Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 08:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079244#M1614346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T08:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using string in instruction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079245#M1614347</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;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  ls_mara   TYPE mara,
  lv_str1   TYPE string VALUE 'LS_MARA',
  lv_str2   TYPE string VALUE 'MATNR',
  lv_field  TYPE string.

FIELD-SYMBOLS:
  &amp;lt;fs&amp;gt;  TYPE ANY.

CONCATENATE lv_str1 '-' lv_str2 INTO lv_field.
ASSIGN (lv_field) TO &amp;lt;fs&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 10:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079245#M1614347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T10:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using string in instruction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079246#M1614348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi afromeen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand you correct, you want to substitute specific values in a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a second table with same structure 3 columns: Structure, Field, Value. This table could be maintained using maintenance screen. Then put in here the Structure and Field names relevant for substitution and the substitution value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then loop at the original table. For each line, check if you have a substitution value. The substitution table can be loaded into a sorted or hashed key table and accessed quickly using READ TABLE WITH TABLE KEY. Use field-symbols to save time.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 13:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-string-in-instruction/m-p/8079246#M1614348</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-03T13:24:05Z</dc:date>
    </item>
  </channel>
</rss>

