<?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 to create code for an additional field in an info set in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076219#M430417</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;Unfortunately your answer is not working. Sceondly, why should I set TYOLUPA like PA0016-ARBER when the latter is a date field (type D) and my new field is not? Did you mean P0016-ARBER? Neither of the options work.&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;Pia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 10:00:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T10:00:29Z</dc:date>
    <item>
      <title>How to create code for an additional field in an info set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076216#M430414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an info set in tra SQ02 and the area is HCM with version ERP2004. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create an additional field to show "Work permit" in ad hoc queries. I know that the infotype 0016 has a standard field P0016-ARBER which contains a date if that person has a work permit. System should select the latest record or the one which is valid during reporting period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement for this new field is that it should just has X if the field P0016-ARBER contains a date (i.e. that person has a work permit). If the field  P0016-ARBER is empty, then the new field "Work permit" is also empty. So, the date itself is not enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not an abaper. I have tried to create a code for my field but there is always problems with the code. I have tried without the line&amp;lt;i&amp;gt;into&amp;lt;/i&amp;gt; but checker says I need to. I have tried different places for statement ENDSELECT but without success. How should I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have so far is (TYOLUPA = Work permit) is shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select SINGLE ARBER&lt;/P&gt;&lt;P&gt;into TYOLUPA&lt;/P&gt;&lt;P&gt;from PA0016&lt;/P&gt;&lt;P&gt;where pernr = P0016-pernr&lt;/P&gt;&lt;P&gt;and ENDDA = '31129999'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear TYOLUPA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ARBER ne ''.&lt;/P&gt;&lt;P&gt;then TYOLUPA = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice!&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;Pipsa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076216#M430414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create code for an additional field in an info set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076217#M430415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In extras tab  create column "workpermit" in infoset and add that column to Field groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then under record processing event... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : TYOLUPA like PA0016-ARBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Record processing event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select SINGLE ARBER&lt;/P&gt;&lt;P&gt;into TYOLUPA&lt;/P&gt;&lt;P&gt;from PA0016&lt;/P&gt;&lt;P&gt;where pernr = P0016-pernr&lt;/P&gt;&lt;P&gt;and ENDDA = '31129999'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  TYOLUPA  ne ' '.&lt;/P&gt;&lt;P&gt;  WORKPERMIT = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076217#M430415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T09:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create code for an additional field in an info set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076218#M430416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once u have added the additional field to the infoset &lt;/P&gt;&lt;P&gt;right click on the field and select Fieldcode there u will find the editor .&lt;/P&gt;&lt;P&gt;in the editor u can write the code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076218#M430416</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2007-04-17T09:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create code for an additional field in an info set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076219#M430417</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;Unfortunately your answer is not working. Sceondly, why should I set TYOLUPA like PA0016-ARBER when the latter is a date field (type D) and my new field is not? Did you mean P0016-ARBER? Neither of the options work.&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;Pia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 10:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-code-for-an-additional-field-in-an-info-set/m-p/2076219#M430417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T10:00:29Z</dc:date>
    </item>
  </channel>
</rss>

