<?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: HR Abap code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636651#M875837</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;loop at itab where SPKZL = 'TDE2'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;rp-provide-from-last P0770 '003' pnpbegda pnpendda.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  concatenate 'Pers. No: ' itab-pernr 'Passport No: ' P0770-dlnum&lt;/P&gt;&lt;P&gt;    into body separated by space.&lt;/P&gt;&lt;P&gt;  append body.&lt;/P&gt;&lt;P&gt;  clear body.append body.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Macro rp-provide-from-last reads tha table P0770 and if it will find something you will have a value in field P0770-dlnum. You use CONCATENATE to assemble the sentence - this is ok. But BODY is variable from type CHAR or STRING that after CONCATENATE statement has a value &lt;/P&gt;&lt;P&gt;"Pers.No: XXXXXX Passport No: YYYYYYYYYYYY". On the next loop it will be overwritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would write something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of body occurs 10,&lt;/P&gt;&lt;P&gt;sentence(50), " How long can be the sentence&lt;/P&gt;&lt;P&gt;end of body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;other code using LDB *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear body. refresh body.&lt;/P&gt;&lt;P&gt;loop at itab where SPKZL = 'TDE2'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;rp-provide-from-last P0770 '003' pnpbegda pnpendda.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  concatenate 'Pers. No: ' itab-pernr 'Passport No: ' P0770-dlnum&lt;/P&gt;&lt;P&gt;    into body-sentence separated by space.&lt;/P&gt;&lt;P&gt;  append body.&lt;/P&gt;&lt;P&gt;  clear body.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************&lt;/P&gt;&lt;P&gt;So after that you will have an internal table BODY with one field BODY-sentence per each row in table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 09:23:00 GMT</pubDate>
    <dc:creator>vladimir_golovtchiner</dc:creator>
    <dc:date>2008-04-16T09:23:00Z</dc:date>
    <item>
      <title>HR Abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636647#M875833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab where SPKZL = 'TDE2'. 

   *rp-provide-from-last P0770 '003' pnpbegda pnpendda.*

  concatenate 'Pers. No: ' itab-pernr 'Passport No: ' P0770-dlnum
    into body separated by space.
  append body.
  clear body.append body.
 endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where to put the the &lt;STRONG&gt;bold&lt;/STRONG&gt; statement in above code.&lt;/P&gt;&lt;P&gt;I want to get the p0770-dlnum and hence writed this sentence.&lt;/P&gt;&lt;P&gt;But I do not know how it runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 08:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636647#M875833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T08:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: HR Abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636648#M875834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It maybe some macro statement with three parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to double click on rp-provide-from-last, it may navigate to the correponding macro where u can get the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 08:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636648#M875834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T08:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: HR Abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636649#M875835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the bold statement is a macro which is stored in table trmac.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and... actually i do not understand your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 08:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636649#M875835</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-04-16T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: HR Abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636650#M875836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think UR using LDB's and U R declaring 0770 in the infotypes &lt;/P&gt;&lt;P&gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to write this statement after the GET PERNR event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES : 0770.&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;&lt;/P&gt;&lt;P&gt;GET PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;rp-provide-from-last P0770 '0003' pnpbegda pnpendda.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where SPKZL = 'TDE2'. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   concatenate 'Pers. No: ' itab-pernr 'Passport No: ' P0770-dlnum&lt;/P&gt;&lt;P&gt;   into body separated by space.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   append body.&lt;/P&gt;&lt;P&gt;   clear body.&lt;/P&gt;&lt;P&gt;   append body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 09:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636650#M875836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: HR Abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636651#M875837</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;loop at itab where SPKZL = 'TDE2'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;rp-provide-from-last P0770 '003' pnpbegda pnpendda.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  concatenate 'Pers. No: ' itab-pernr 'Passport No: ' P0770-dlnum&lt;/P&gt;&lt;P&gt;    into body separated by space.&lt;/P&gt;&lt;P&gt;  append body.&lt;/P&gt;&lt;P&gt;  clear body.append body.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Macro rp-provide-from-last reads tha table P0770 and if it will find something you will have a value in field P0770-dlnum. You use CONCATENATE to assemble the sentence - this is ok. But BODY is variable from type CHAR or STRING that after CONCATENATE statement has a value &lt;/P&gt;&lt;P&gt;"Pers.No: XXXXXX Passport No: YYYYYYYYYYYY". On the next loop it will be overwritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would write something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of body occurs 10,&lt;/P&gt;&lt;P&gt;sentence(50), " How long can be the sentence&lt;/P&gt;&lt;P&gt;end of body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;other code using LDB *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear body. refresh body.&lt;/P&gt;&lt;P&gt;loop at itab where SPKZL = 'TDE2'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;rp-provide-from-last P0770 '003' pnpbegda pnpendda.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  concatenate 'Pers. No: ' itab-pernr 'Passport No: ' P0770-dlnum&lt;/P&gt;&lt;P&gt;    into body-sentence separated by space.&lt;/P&gt;&lt;P&gt;  append body.&lt;/P&gt;&lt;P&gt;  clear body.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************&lt;/P&gt;&lt;P&gt;So after that you will have an internal table BODY with one field BODY-sentence per each row in table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 09:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-code/m-p/3636651#M875837</guid>
      <dc:creator>vladimir_golovtchiner</dc:creator>
      <dc:date>2008-04-16T09:23:00Z</dc:date>
    </item>
  </channel>
</rss>

