<?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: Wage type problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207331#M472387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  u can take the values from the payroll result fn mod,, then loop it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 12:01:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T12:01:46Z</dc:date>
    <item>
      <title>Wage type problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207330#M472386</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;     I have problem for pick the wage type in pa0008&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;   Here i took two fields ,LGART BET01.&lt;/P&gt;&lt;P&gt;    i want particular LGART = 1001,1008 1500.&lt;/P&gt;&lt;P&gt; i am using  do 20 times varying . but thing is what i mention lgart = 1001 .it's pick the data but others also is coming.&lt;/P&gt;&lt;P&gt;here what iam writen code i past it here plz help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZKK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES:0008,0001,0014.&lt;/P&gt;&lt;P&gt;DATA:IT_P0008 LIKE P0008 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:spernr for p0008-pernr.&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;select pernr&lt;/P&gt;&lt;P&gt;       lga01&lt;/P&gt;&lt;P&gt;       bet01&lt;/P&gt;&lt;P&gt;         from pa0008&lt;/P&gt;&lt;P&gt;         into CORRESPONDING FIELDS OF table it_p0008&lt;/P&gt;&lt;P&gt;         where pernr in spernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  message E000(1) WITH 'NO DATA'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:LGART TYPE LGART,&lt;/P&gt;&lt;P&gt;     BETRT TYPE P0008-BET01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 20 TIMES VARYING lgart FROM IT_P0008-lga01 NEXT IT_p0008-lga02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            VARYING betrt FROM IT_p0008-bet01 NEXT IT_p0008-bet02.&lt;/P&gt;&lt;P&gt; case LGART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when '1001'.        " HOURLY RATE.&lt;/P&gt;&lt;P&gt;      write:/ IT_p0008-PERNR,IT_P0008-BET01.&lt;/P&gt;&lt;P&gt;    when '1008'.        " HOURLY RATE.&lt;/P&gt;&lt;P&gt;      write:/ IT_p0008-PERNR,IT_P0008-BET01.&lt;/P&gt;&lt;P&gt;    when '1500'.        " RED CIRCULE HOURLY RATE.&lt;/P&gt;&lt;P&gt;      write:/ it_p0008-PERNR,IT_P0008-BET01.&lt;/P&gt;&lt;P&gt; endcase.&lt;/P&gt;&lt;P&gt; ENDDO.&lt;/P&gt;&lt;P&gt; LOOP AT IT_P0008.&lt;/P&gt;&lt;P&gt;write:/ it_p0008-pernr,it_p0008-lga01,it_p0008-bet01.&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;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 11:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207330#M472386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T11:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wage type problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207331#M472387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  u can take the values from the payroll result fn mod,, then loop it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 12:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207331#M472387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wage type problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207332#M472388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Why you are selecting the first Wage Type fields lga01 bet01 with select statement from PA0008?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following simple code:&lt;/P&gt;&lt;P&gt;REPORT RPABAP06.&lt;/P&gt;&lt;P&gt;TABLES:PERNR.&lt;/P&gt;&lt;P&gt;INFOTYPES: 0008.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WAGETYPES,&lt;/P&gt;&lt;P&gt;LGA LIKE P0008-LGA01,&lt;/P&gt;&lt;P&gt;BET LIKE P0008-BET01,&lt;/P&gt;&lt;P&gt;ANZ LIKE P0008-ANZ01,&lt;/P&gt;&lt;P&gt;EIN LIKE P0008-EIN01,&lt;/P&gt;&lt;P&gt;OPK LIKE P0008-OPK01,&lt;/P&gt;&lt;P&gt;END OF WAGETYPES.&lt;/P&gt;&lt;P&gt;data itab like wagetypes occurs 0 with header line.&lt;/P&gt;&lt;P&gt;GET PERNR.&lt;/P&gt;&lt;P&gt;RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.&lt;/P&gt;&lt;P&gt;DO 20 TIMES VARYING WAGETYPES&lt;/P&gt;&lt;P&gt;FROM P0008-LGA01&lt;/P&gt;&lt;P&gt;NEXT P0008-LGA02.&lt;/P&gt;&lt;P&gt;case WAGETYPES-LGA .&lt;/P&gt;&lt;P&gt;when  '1001'.&lt;/P&gt;&lt;P&gt;  move-corresponding wagetypes to ITAB.&lt;/P&gt;&lt;P&gt;when '1008'.&lt;/P&gt;&lt;P&gt;  move-corresponding wagetypes to ITAB.&lt;/P&gt;&lt;P&gt;when '1500'.&lt;/P&gt;&lt;P&gt;  move-corresponding wagetypes to ITAB.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;    append ITAB.&lt;/P&gt;&lt;P&gt;clear ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display the ITAB as per your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 12:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207332#M472388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T12:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wage type problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207333#M472389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kirshna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First of all use select *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We are using wrong variables for WRITE, inside DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ IT_p0008-PERNR,IT_P0008-BET01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;write:/ lgart, betrt.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Bcos, inside DO, the values come in this field in dynamic fashion)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 13:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-problem/m-p/2207333#M472389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T13:04:34Z</dc:date>
    </item>
  </channel>
</rss>

