<?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: How best to process variable fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819239#M42571</link>
    <description>&lt;P&gt;Thank you both for your answers! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry I should have said that; I will be provided wih a customizing table (SM30) in the format as per the screenshot I provided.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 11:17:18 GMT</pubDate>
    <dc:creator>former_member201275</dc:creator>
    <dc:date>2019-03-07T11:17:18Z</dc:date>
    <item>
      <title>How best to process variable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819236#M42568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;We have a report which delivers an output structure, and I have to add in another field (this example OUTPUT_FIELD) and populate this field depending on variable criteria.&lt;/P&gt;
  &lt;P&gt;The customer will supply me a table as follows:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/301319-capture.png"&gt;capture.png&lt;/A&gt; &lt;/P&gt;
  &lt;P&gt;I must then, using the first row as an example, provide code that if PA0001-PERSG = A001, and PA0002-LAND = DE, and PA9006-DEPARTMENT = 'FI001', then the new field OUTPUT_FIELD = D010GL,&lt;/P&gt;
  &lt;P&gt;etc....&lt;/P&gt;
  &lt;P&gt;How best do i handle this scenario? I never know in advance what the variables might be, and in some cases, for example the second line for variable 3 there is no value.&lt;/P&gt;
  &lt;P&gt;Is it best to use 'ASSIGN COMPONENTS', or is there a neater/better way to do this. &lt;/P&gt;
  &lt;P&gt;All help and advice is really greatly appreciated!&lt;/P&gt;
  &lt;P&gt;Thank you and kind regards&lt;/P&gt;
  &lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819236#M42568</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2019-03-07T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How best to process variable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819237#M42569</link>
      <description>&lt;P&gt;So, the question is "dynamic" (var = 'PA0002-XXXX'. ASSIGN (var) TO &amp;lt;fs&amp;gt;) or "static" access (if var1-field = 'PA0002-XXXX'. pa0002-xxxx = ...)&lt;/P&gt;&lt;P&gt;If there's a limited number of possible fields, then static, otherwise dynamic.&lt;/P&gt;&lt;P&gt;I don't think you have a lot of possibilities...&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819237#M42569</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-03-07T09:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How best to process variable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819238#M42570</link>
      <description>&lt;P&gt;Is there a possibility for you to create a (SM30) custom table with a number of 'field' fields and 'value' fields and the last field being the output field?&lt;/P&gt;&lt;P&gt;You can then just loop over the custom table, comparing the fields and values (using field symbols). If a row complies, fill the output field with the related value of your custom table.&lt;/P&gt;&lt;P&gt;So something like this:&lt;/P&gt;&lt;P&gt;field1 type NAME_FELD&lt;BR /&gt;value1 type c length whatever&lt;BR /&gt;field2 type NAME_FELD&lt;BR /&gt;value2 type c length whatever&lt;BR /&gt;field3 type NAME_FELD&lt;BR /&gt;value3 type c length whatever&lt;BR /&gt;field4 type NAME_FELD&lt;BR /&gt;value4 type c length whatever&lt;BR /&gt;(etc)&lt;BR /&gt;output_field type c length whatever&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819238#M42570</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2019-03-07T09:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How best to process variable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819239#M42571</link>
      <description>&lt;P&gt;Thank you both for your answers! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry I should have said that; I will be provided wih a customizing table (SM30) in the format as per the screenshot I provided.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 11:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819239#M42571</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2019-03-07T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How best to process variable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819240#M42572</link>
      <description>&lt;P&gt;So you have to select data from customzing table, get the field name and assign component of structure that you need to check, get value of that component and compare, field symbol is your friend here.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 11:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-best-to-process-variable-fields/m-p/819240#M42572</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-03-07T11:35:16Z</dc:date>
    </item>
  </channel>
</rss>

