<?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: HCM PROCESS AND FORMS - TABLE HANDLING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hcm-process-and-forms-table-handling/m-p/8770925#M1677280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suman,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tables are stored as different fieldindex. you can read table contents using loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT service_field_values ASSIGNING &amp;lt;lfs_service_field_values&amp;gt; WHERE fieldname = 'COMMENT_FIELD'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND &amp;lt;lfs_service_field_values&amp;gt; to string_field.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can not access HCM P &amp;amp; F comments using service_fields_values or service_dataset. They are not part of the field configuration or special fields from framework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can access comments using process_runtime instance (class CL_HRASR00_PROCESS_RUNTIME) . &lt;/P&gt;&lt;P&gt;Sample Code: This method instantiates process runtime using POBJ_GUID. You might not get POBJ_GUID in initiate step, either you have to do this in second stage or in the workflow task.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/113602" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bhagya &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 01:35:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-26T01:35:05Z</dc:date>
    <item>
      <title>HCM PROCESS AND FORMS - TABLE HANDLING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hcm-process-and-forms-table-handling/m-p/8770924#M1677279</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;I am developing HCM form for one of our MSS process using Adobe interactive forms.I have a filed called 'Comments' in the form which is a text field allows multiple lines and it is bind to ISR generated attribute&amp;nbsp; HRASR_CURRENT_NOTE. I need to read comments in my back end service which are entered in the form when user clicks on check and save.How can i read string table in my back end service in one of the methods IF_HRASR00GEN_SERVICE~INITIALIZE or IF_HRASR00GEN_SERVICE~DO_OPERATIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally we write following logic to read interface attributes in the back end service.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;service_field_values &lt;SPAN class="L0S52"&gt;ASSIGNING &lt;/SPAN&gt;&amp;lt;lfs_service_field_values&amp;gt; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;fieldname &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gc_form_scenario&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;&amp;lt;lfs_service_field_values&amp;gt; &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ASSIGNED&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_form_scenario &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&amp;lt;lfs_service_field_values&amp;gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;fieldvalue&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNASSIGN &amp;lt;lfs_service_field_values&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;The code above will only work for single value variable. BUt i want to read string table. Please let me know your inputs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Suman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 17:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hcm-process-and-forms-table-handling/m-p/8770924#M1677279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-08T17:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: HCM PROCESS AND FORMS - TABLE HANDLING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hcm-process-and-forms-table-handling/m-p/8770925#M1677280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suman,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tables are stored as different fieldindex. you can read table contents using loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT service_field_values ASSIGNING &amp;lt;lfs_service_field_values&amp;gt; WHERE fieldname = 'COMMENT_FIELD'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND &amp;lt;lfs_service_field_values&amp;gt; to string_field.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can not access HCM P &amp;amp; F comments using service_fields_values or service_dataset. They are not part of the field configuration or special fields from framework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can access comments using process_runtime instance (class CL_HRASR00_PROCESS_RUNTIME) . &lt;/P&gt;&lt;P&gt;Sample Code: This method instantiates process runtime using POBJ_GUID. You might not get POBJ_GUID in initiate step, either you have to do this in second stage or in the workflow task.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/113602" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bhagya &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 01:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hcm-process-and-forms-table-handling/m-p/8770925#M1677280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T01:35:05Z</dc:date>
    </item>
  </channel>
</rss>

