<?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: help with bring data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962577#M395597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Tables :pernr
Nodes:persa
Infotypes:0000 like t_oooo,
00002 like t_0002.

START-OF-SELECTION.

GET peras.

LOOP AT t_0000.
MOVE t_0000-pernr TO person_tab-objid.
READ TABLE t_0002 WITH KEY penrr = t_0000-penrr.
IF sy-subrc = 0.
MOVE t_0002-nachn TO person_tab-lastname.
MOVE t_0002-vorna TO person_tab-firstname.
ENDIF.
APPEND person_tab.
Endloop.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 10:28:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T10:28:40Z</dc:date>
    <item>
      <title>help with bring data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962575#M395595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow I doing a program that use logic data base pnpce(my first time) and in the program I use get peras to bring the employee num and in the loop the name of employee &lt;/P&gt;&lt;P&gt;Something I doing wrong because its not working what?&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I just wont to bring to my table person_tab employee num and name.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;thankes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables :pernr&lt;/P&gt;&lt;P&gt;Nodes:persa&lt;/P&gt;&lt;P&gt;Infotypes:0000 like t_oooo,&lt;/P&gt;&lt;P&gt;00002 like t_0002.&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;GET peras.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE t_0000-pernr TO person_tab-objid.&lt;/P&gt;&lt;P&gt;   APPEND person_tab.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at t0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE t_0002-nachn TO person_tab-lastname.&lt;/P&gt;&lt;P&gt;    MOVE t_0002-vorna TO person_tab-firstname.&lt;/P&gt;&lt;P&gt;    APPEND person_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 10:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962575#M395595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: help with bring data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962576#M395596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are using logical data base use the following type of code.&lt;/P&gt;&lt;P&gt;tables: pernr.&lt;/P&gt;&lt;P&gt;infotypes: 0000,&lt;/P&gt;&lt;P&gt;           0001,&lt;/P&gt;&lt;P&gt;           0002,&lt;/P&gt;&lt;P&gt;           0006,&lt;/P&gt;&lt;P&gt;           0021.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      pernr type p0000-pernr,&lt;/P&gt;&lt;P&gt;      stat2 type p0000-stat2,&lt;/P&gt;&lt;P&gt;      bukrs type p0001-bukrs,&lt;/P&gt;&lt;P&gt;      plans type p0001-plans,&lt;/P&gt;&lt;P&gt;      stell type p0001-stell,&lt;/P&gt;&lt;P&gt;      vorna type p0002-vorna,&lt;/P&gt;&lt;P&gt;      nachn type p0002-nachn,&lt;/P&gt;&lt;P&gt;      anzkd type p0002-anzkd,&lt;/P&gt;&lt;P&gt;      name2 type p0006-name2,&lt;/P&gt;&lt;P&gt;      stras type p0006-stras,&lt;/P&gt;&lt;P&gt;      ort01 type p0006-ort01,&lt;/P&gt;&lt;P&gt;      pstlz type p0006-pstlz,&lt;/P&gt;&lt;P&gt;      name21 type p0006-name2,&lt;/P&gt;&lt;P&gt;      stras1 type p0006-stras,&lt;/P&gt;&lt;P&gt;      ort011 type p0006-ort01,&lt;/P&gt;&lt;P&gt;      pstlz1 type p0006-pstlz,&lt;/P&gt;&lt;P&gt;      favor type p0021-favor,&lt;/P&gt;&lt;P&gt;      fanam type p0021-fanam,&lt;/P&gt;&lt;P&gt;      fgbdt type p0021-fgbdt,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   rp_provide_from_last p0006 '2' pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;   if pnp-sw-found = 1.&lt;/P&gt;&lt;P&gt;     move p0006-name2 to itab-name2 .&lt;/P&gt;&lt;P&gt;     move p0006-stras to itab-stras .&lt;/P&gt;&lt;P&gt;     move p0006-ort01 to itab-ort01 .&lt;/P&gt;&lt;P&gt;     move p0006-pstlz to itab-pstlz.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   rp_provide_from_frst p0006 '1' pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;    if pnp-sw-found = 1.&lt;/P&gt;&lt;P&gt;     move p0006-name2 to itab-name21 .&lt;/P&gt;&lt;P&gt;     move p0006-stras to itab-stras1 .&lt;/P&gt;&lt;P&gt;     move p0006-ort01 to itab-ort011 .&lt;/P&gt;&lt;P&gt;     move p0006-pstlz to itab-pstlz1.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  provide * from p0000&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from p0001&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from p0002&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from p0021 between pn-begda and pn-endda&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            where p0000-stat2 = '2' or&lt;/P&gt;&lt;P&gt;                  p0000-stat2 = '3' and&lt;/P&gt;&lt;P&gt;                  p0021-subty = '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        move p0000-pernr to itab-pernr.&lt;/P&gt;&lt;P&gt;        move p0000-stat2 to itab-stat2.&lt;/P&gt;&lt;P&gt;        move p0001-bukrs to itab-bukrs.&lt;/P&gt;&lt;P&gt;        move p0001-plans to itab-plans.&lt;/P&gt;&lt;P&gt;        move p0001-stell to itab-stell.&lt;/P&gt;&lt;P&gt;        move p0002-vorna to itab-vorna.&lt;/P&gt;&lt;P&gt;        move p0002-nachn to itab-nachn.&lt;/P&gt;&lt;P&gt;        move p0002-anzkd to itab-anzkd.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move p0006-name2 to itab-name2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move p0006-stras to itab-stras.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move p0006-ort01 to itab-ort01.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       move p0006-pstlz to itab-pstlz.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if p0002-anzkd &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    move p0021-favor to itab-favor.&lt;/P&gt;&lt;P&gt;    move p0021-fanam to itab-fanam.&lt;/P&gt;&lt;P&gt;    move p0021-fgbdt to itab-fgbdt.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append itab.&lt;/P&gt;&lt;P&gt; clear itab.&lt;/P&gt;&lt;P&gt;endprovide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will helpful for you.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 10:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962576#M395596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T10:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: help with bring data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962577#M395597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Tables :pernr
Nodes:persa
Infotypes:0000 like t_oooo,
00002 like t_0002.

START-OF-SELECTION.

GET peras.

LOOP AT t_0000.
MOVE t_0000-pernr TO person_tab-objid.
READ TABLE t_0002 WITH KEY penrr = t_0000-penrr.
IF sy-subrc = 0.
MOVE t_0002-nachn TO person_tab-lastname.
MOVE t_0002-vorna TO person_tab-firstname.
ENDIF.
APPEND person_tab.
Endloop.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 10:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962577#M395597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T10:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: help with bring data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962578#M395598</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;In the second loop, you forget to position to the target record in your internal table, and use modify/update instead of append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at t0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE person_tab WITH KEY pernr = t0002-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE t_0002-nachn TO person_tab-lastname.&lt;/P&gt;&lt;P&gt;MOVE t_0002-vorna TO person_tab-firstname.&lt;/P&gt;&lt;P&gt;MODIFY person_tab.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 10:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bring-data/m-p/1962578#M395598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T10:29:27Z</dc:date>
    </item>
  </channel>
</rss>

