<?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 read data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858356#M362610</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;Please try FM HR_READ_INFOTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 17:18:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-16T17:18:45Z</dc:date>
    <item>
      <title>how to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858355#M362609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to read data from the fields nachn and vorna from the table pa0002&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858355#M362609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858356#M362610</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;Please try FM HR_READ_INFOTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858356#M362610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858357#M362611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use FM: HR_99S_READ_INFOTYPE&lt;/P&gt;&lt;P&gt;You can read data frm any infotype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858357#M362611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858358#M362612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the personnel number (v_pernr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_nachn type pa0002-nachn, &lt;/P&gt;&lt;P&gt;      v_vorna type pa0002-vorna,&lt;/P&gt;&lt;P&gt;      v_pernr type pa0002-pernr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single nachn vorna&lt;/P&gt;&lt;P&gt;       into (v_nachn, v_vorna)&lt;/P&gt;&lt;P&gt;       from pa0002&lt;/P&gt;&lt;P&gt;       where pernr = v_pernr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note that pernr is part of primary key and the above select can return multiple rows. If you have other key fields like subty (subtype) , you can get better results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858358#M362612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858359#M362613</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 believe this is in Continuation of other post..Changes are marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZFM_HANDY , PA0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: G_REPID LIKE SY-REPID,&lt;/P&gt;&lt;P&gt;GS_PRINT TYPE SLIS_PRINT_ALV,&lt;/P&gt;&lt;P&gt;GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,&lt;/P&gt;&lt;P&gt;GT_LIST_END_OF_PAGE TYPE SLIS_T_LISTHEADER,&lt;/P&gt;&lt;P&gt;GT_EVENTS TYPE SLIS_T_EVENT,&lt;/P&gt;&lt;P&gt;GT_SORT TYPE SLIS_T_SORTINFO_ALV,&lt;/P&gt;&lt;P&gt;GS_LAYOUT TYPE SLIS_LAYOUT_ALV,&lt;/P&gt;&lt;P&gt;GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,&lt;/P&gt;&lt;P&gt;FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,&lt;/P&gt;&lt;P&gt;COL_POS TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : BEGIN OF ty_MOBLIST occurs 0.&lt;/P&gt;&lt;P&gt;include structure zfm_handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : NACHN type pa0002-nachn, &lt;/P&gt;&lt;P&gt;VORNA type pa0002-vorna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF ty_MOBLIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : BEGIN OF ty_zfm_handy occurs 0.&lt;/P&gt;&lt;P&gt;include structure zfm_handy.&lt;/P&gt;&lt;P&gt;data : END OF ty_zfm_handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : BEGIN OF ty_pa0002 occurs 0,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PERNR Type PA0002-PERNR,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;NACHN type pa0002-nachn, &lt;/P&gt;&lt;P&gt;VORNA type pa0002-vorna,&lt;/P&gt;&lt;P&gt;END OF ty_pa0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_MOBLIST like table of ty_MOBLIST,&lt;/P&gt;&lt;P&gt;wa_MOBLIST like ty_MOBLIST ,&lt;/P&gt;&lt;P&gt;it_zfm_handy like table of ty_zfm_handy,&lt;/P&gt;&lt;P&gt;wa_zfm_handy like ty_zfm_handy ,&lt;/P&gt;&lt;P&gt;it_pa0002 like table of ty_pa0002,&lt;/P&gt;&lt;P&gt;wa_pa0002 like ty_pa0002 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;G_REPID = SY-REPID.&lt;/P&gt;&lt;P&gt;PERFORM PRINT_BUILD USING GS_PRINT. "Print PARAMETERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from&lt;/P&gt;&lt;P&gt;zfm_handy&lt;/P&gt;&lt;P&gt;into table it_zfm_handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_zfm_handy[] is initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;b&amp;gt;PERNR&amp;lt;/b&amp;gt; NACHN &lt;/P&gt;&lt;P&gt;VORNA &lt;/P&gt;&lt;P&gt;from pa0002&lt;/P&gt;&lt;P&gt;into table it_pa0002&lt;/P&gt;&lt;P&gt;for all entries in it_zfm_handy&lt;/P&gt;&lt;P&gt;where pernr = it_zfm_handy-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif. " not it_zfm_handy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_zfm_handy into wa_zfm_handy.&lt;/P&gt;&lt;P&gt;read table it_pa0002 into wa_pa0002 with key pernr = wa_zfm_handy-pernr.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;clear wa_MOBLIST.&lt;/P&gt;&lt;P&gt;move wa_zfm_handy to wa_MOBLIST.&lt;/P&gt;&lt;P&gt;move wa_pa0002 to wa_MOBLIST.&lt;/P&gt;&lt;P&gt;append wa_MOBLIST to it_MOBLIST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif. " sy-subrc&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/1858359#M362613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:23:21Z</dc:date>
    </item>
  </channel>
</rss>

