<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ABAP Tutorials &#187; ABAP HR</title>
	<atom:link href="http://www.abap-tutorials.com/category/abap-hr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abap-tutorials.com</link>
	<description>ABAP Tutorials, Guides, Training, Manuals</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>BDC to insert Wage Type in Infotype 0008 (Basic Pay)</title>
		<link>http://www.abap-tutorials.com/2010/05/25/bdc-to-insert-wage-type-in-infotype-0008/</link>
		<comments>http://www.abap-tutorials.com/2010/05/25/bdc-to-insert-wage-type-in-infotype-0008/#comments</comments>
		<pubDate>Tue, 25 May 2010 10:18:24 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[BDC / LSMW]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Upload Download]]></category>
		<category><![CDATA[basic Pay]]></category>
		<category><![CDATA[BDC]]></category>
		<category><![CDATA[HR infotypes]]></category>
		<category><![CDATA[infotype0008]]></category>
		<category><![CDATA[wagetype]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1651</guid>
		<description><![CDATA[Addition of new WageTypes to Infotype 0008 often comes as an urgent requirement. Instead of adding WageTypes to individuals, we can upload it through a BDC. BDC Source Code: *&#38;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* *&#38; Report  ZHR_BDC_0008_INSERT                                         * *&#38;                                                                     * *&#38;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* *&#38; About: the BDC inserts a new Wage Type into the infotype0008 for    * *&#38;        Per.No. provided in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Addition of new WageTypes to Infotype 0008 often comes as an urgent requirement. Instead of adding WageTypes to individuals, we can upload it through a BDC.</p>
<div style="width: 100%; float: left;">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/05/Insert_wage_type_in_infotype_0008.jpg"><img class="aligncenter size-full wp-image-1652" title="Insert Wage Type In Infotype0008" src="http://www.abap-tutorials.com/wp-content/uploads/2010/05/Insert_wage_type_in_infotype_0008.jpg" alt="Insert Wage Type In Infotype0008" width="368" height="267" /></a></p>
</div>
<p><span id="more-1651"></span></p>
<p><strong><span style="color: #3366ff;">BDC Source Code:</span></strong></p>
<p>*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp; Report  ZHR_BDC_0008_INSERT                                         *<br />
*&amp;                                                                     *<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp; About: the BDC inserts a new Wage Type into the infotype0008 for    *<br />
*&amp;        Per.No. provided in flat file.                               *<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp; BDC / Flat File Structure:                                          *<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp; PersonnelNo  BeginDate EndDate WageType  Amount                     *<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</p>
<p>REPORT  ZHR_BDC_0008_INSERT no standard page heading line-size 255.</p>
<p>DATA : BDCTAB LIKE BDCDATA OCCURS 100 WITH HEADER LINE.</p>
<p>DATA BEGIN OF itab1 OCCURS 0.<br />
        INCLUDE STRUCTURE p0001.<br />
DATA END OF itab1.<br />
DATA BEGIN OF itab7 OCCURS 0.<br />
        INCLUDE STRUCTURE p0007.<br />
DATA END OF itab7.<br />
DATA BEGIN OF itab8 OCCURS 0.<br />
        INCLUDE STRUCTURE p0008.<br />
DATA END OF itab8.<br />
DATA BEGIN OF itabn OCCURS 0.<br />
        INCLUDE STRUCTURE pbwla.<br />
DATA END OF itabn.<br />
DATA: pos(2).</p>
<p>SELECTION-SCREEN SKIP 1.<br />
SELECTION-SCREEN BEGIN OF BLOCK K1 WITH FRAME TITLE TEXT-001.<br />
SELECTION-SCREEN SKIP 1.<br />
PARAMETERS : READFILE like rlgrap-filename DEFAULT<br />
             &#8216;c:\textfile.txt&#8217; LOWER CASE.<br />
SELECTION-SCREEN SKIP 1.<br />
SELECTION-SCREEN END OF BLOCK K1.</p>
<p>data: begin of record OCCURS 10,<br />
      pernr like PA0001-pernr,<br />
      begda like PA0001-begda,<br />
      endda like PA0001-endda,<br />
      lgart like PA0008-lga01,<br />
      amount(12),<br />
      end of record.</p>
<p>start-of-selection.</p>
<p>  PERFORM OPEN_GROUP.<br />
  PERFORM UPLOAD.</p>
<p>  if record[] is NOT INITIAL.<br />
*do.<br />
    LOOP AT record.<br />
*read dataset dataset into record.<br />
      if sy-subrc &lt;&gt; 0. exit. endif.<br />
      data: tbegda(10),<br />
            tendda(10).<br />
      write: record-begda to tbegda,<br />
             record-endda to tendda.<br />
      data: wgtype(20),<br />
            amount(20).<br />
* Get Personnel Data<br />
      PERFORM GET_PERS_DATA.<br />
      clear: pos.<br />
      LOOP AT itabn where endda = &#8217;99991231&#8242;.<br />
        pos = pos + 1.<br />
      ENDLOOP.<br />
* Move to new line<br />
      pos = pos + 1.<br />
* Setting position in Table Control<br />
      concatenate &#8216;Q0008-LGART(&#8216; pos &#8216;)&#8217; into wgtype.<br />
      concatenate &#8216;Q0008-BETRG(&#8216; pos &#8216;)&#8217; into amount.<br />
      perform bdc_dynpro      using &#8216;SAPMP50A&#8217; &#8217;1000&#8242;.<br />
      perform bdc_field       using &#8216;BDC_OKCODE&#8217;<br />
                                    &#8216;=COP&#8217;.<br />
      perform bdc_field       using &#8216;RP50G-PERNR&#8217;<br />
*                              &#8217;1341&#8242;.<br />
                                     record-pernr.<br />
*perform bdc_field       using &#8216;RP50G-TIMR6&#8242;<br />
*                              &#8216;X&#8217;.<br />
      perform bdc_field       using &#8216;BDC_CURSOR&#8217;<br />
                                    &#8216;RP50G-CHOIC&#8217;.<br />
      perform bdc_field       using &#8216;RP50G-CHOIC&#8217;<br />
                                    &#8217;8&#8242;.<br />
      perform bdc_dynpro      using &#8216;MP000800&#8242; &#8217;2040&#8242;.<br />
      perform bdc_field       using &#8216;BDC_OKCODE&#8217;<br />
                                    &#8216;/00&#8242;.<br />
      perform bdc_field       using &#8216;P0008-BEGDA&#8217;<br />
*                              &#8217;01.04.2010&#8242;.<br />
                                     tbegda.<br />
      perform bdc_field       using &#8216;P0008-ENDDA&#8217;<br />
*                              &#8217;31.12.9999&#8242;.<br />
                                     tendda.<br />
*perform bdc_field       using &#8216;P0008-TRFAR&#8217;<br />
*                              &#8216;SK&#8217;.<br />
*perform bdc_field       using &#8216;P0008-BSGRD&#8217;<br />
*                              &#8217;100.00&#8242;.<br />
*perform bdc_field       using &#8216;P0008-TRFGB&#8217;<br />
*                              &#8216;SK&#8217;.<br />
*perform bdc_field       using &#8216;P0008-DIVGV&#8217;<br />
*                              &#8217;100.00&#8242;.<br />
*perform bdc_field       using &#8216;P0008-TRFGR&#8217;<br />
*                              &#8216;JT MGR&#8217;.<br />
*perform bdc_field       using &#8216;P0008-TRFST&#8217;<br />
*                              &#8216;GE&#8217;.<br />
*perform bdc_field       using &#8216;P0008-ANCUR&#8217;<br />
*                              &#8216;INR&#8217;.<br />
*perform bdc_field       using &#8216;Q0008-IBBEG&#8217;<br />
*                              &#8217;25.05.2010&#8242;.<br />
*perform bdc_field       using &#8216;P0008-WAERS&#8217;<br />
*                              &#8216;INR&#8217;.<br />
*perform bdc_field       using &#8216;Q0008-LGART(07)&#8217;<br />
*                              &#8217;1MDA&#8217;.<br />
*perform bdc_field       using &#8216;Q0008-LGART(07)&#8217;<br />
*                              &#8217;1MDA&#8217;.<br />
      perform bdc_field       using  wgtype<br />
                                     record-lgart.<br />
*perform bdc_field       using &#8216;Q0008-BETRG(07)&#8217;<br />
*                              &#8216;               500&#8242;.<br />
      perform bdc_field       using  amount<br />
                                     record-amount.<br />
      perform bdc_dynpro      using &#8216;MP000800&#8242; &#8217;2040&#8242;.<br />
      perform bdc_field       using &#8216;BDC_CURSOR&#8217;<br />
                                    &#8216;P0008-BEGDA&#8217;.<br />
      perform bdc_field       using &#8216;BDC_OKCODE&#8217;<br />
                                    &#8216;=UPD&#8217;.<br />
      perform bdc_field       using &#8216;P0008-BEGDA&#8217;<br />
*                              &#8217;01.04.2010&#8242;.<br />
                                     tbegda.<br />
      perform bdc_field       using &#8216;P0008-ENDDA&#8217;<br />
*                              &#8217;31.12.9999&#8242;.<br />
                                     tendda.<br />
*perform bdc_field       using &#8216;P0008-TRFAR&#8217;<br />
*                              &#8216;SK&#8217;.<br />
*perform bdc_field       using &#8216;P0008-BSGRD&#8217;<br />
*                              &#8217;100.00&#8242;.<br />
*perform bdc_field       using &#8216;P0008-TRFGB&#8217;<br />
*                              &#8216;SK&#8217;.<br />
*perform bdc_field       using &#8216;P0008-DIVGV&#8217;<br />
*                              &#8217;100.00&#8242;.<br />
*perform bdc_field       using &#8216;P0008-TRFGR&#8217;<br />
*                              &#8216;JT MGR&#8217;.<br />
*perform bdc_field       using &#8216;P0008-TRFST&#8217;<br />
*                              &#8216;GE&#8217;.<br />
*perform bdc_field       using &#8216;P0008-ANCUR&#8217;<br />
*                              &#8216;INR&#8217;.<br />
*perform bdc_field       using &#8216;Q0008-IBBEG&#8217;<br />
*                              &#8217;25.05.2010&#8242;.<br />
*perform bdc_field       using &#8216;P0008-WAERS&#8217;<br />
*                              &#8216;INR&#8217;.<br />
*perform bdc_transaction using &#8216;PA30&#8242;.<br />
      CALL FUNCTION &#8216;BDC_INSERT&#8217;<br />
          EXPORTING<br />
               TCODE             = &#8216;PA30&#8242;<br />
*         POST_LOCAL       = NOVBLOCAL<br />
*         PRINTING         = NOPRINT<br />
           TABLES<br />
                DYNPROTAB        = BDCTAB<br />
*    EXCEPTIONS<br />
*         INTERNAL_ERROR   = 1<br />
*         NOT_OPEN         = 2<br />
*         QUEUE_ERROR      = 3<br />
*         TCODE_INVALID    = 4<br />
*         PRINTING_INVALID = 5<br />
*         POSTING_INVALID  = 6<br />
*         OTHERS           = 7<br />
                .<br />
      IF SY-SUBRC &lt;&gt; 0.<br />
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO<br />
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.<br />
      ENDIF.<br />
      REFRESH BDCTAB.<br />
    endloop.</p>
<p>    CALL FUNCTION &#8216;BDC_CLOSE_GROUP&#8217;<br />
*    EXCEPTIONS<br />
*         NOT_OPEN    = 1<br />
*         QUEUE_ERROR = 2<br />
*         OTHERS      = 3<br />
              .<br />
    IF SY-SUBRC &lt;&gt; 0.<br />
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO<br />
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.<br />
    ENDIF.<br />
*perform close_group.<br />
*perform close_dataset using dataset.<br />
  endif.<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp;      Form  BDC_DYNPRO<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*       text<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
FORM BDC_DYNPRO USING PROGRAM DYNPRO.<br />
  CLEAR BDCTAB.<br />
  BDCTAB-PROGRAM  = PROGRAM.<br />
  BDCTAB-DYNPRO   = DYNPRO.<br />
  BDCTAB-DYNBEGIN = &#8216;X&#8217;.<br />
  APPEND BDCTAB.</p>
<p>ENDFORM.                    &#8220;BDC_DYNPRO</p>
<p>*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp;      Form  BDC_FIELD<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*       text<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
FORM BDC_FIELD USING FNAM FVAL.<br />
*  IF FVAL &lt;&gt; NODATA.<br />
  CLEAR BDCTAB.<br />
  BDCTAB-FNAM = FNAM.<br />
  BDCTAB-FVAL = FVAL.<br />
  APPEND BDCTAB.<br />
*  ENDIF.<br />
ENDFORM.                    &#8220;BDC_FIELD<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp;      Form  UPLOAD<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*       text<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
FORM UPLOAD .</p>
<p>  CALL FUNCTION &#8216;UPLOAD&#8217;<br />
    EXPORTING<br />
      FILENAME                = READFILE<br />
      FILETYPE                = &#8216;DAT&#8217;<br />
    TABLES<br />
      DATA_TAB                = record<br />
    EXCEPTIONS<br />
      CONVERSION_ERROR        = 1<br />
      FILE_OPEN_ERROR         = 2<br />
      FILE_READ_ERROR         = 3<br />
      INVALID_TYPE            = 4<br />
      NO_BATCH                = 5<br />
      UNKNOWN_ERROR           = 6<br />
      INVALID_TABLE_WIDTH     = 7<br />
      GUI_REFUSE_FILETRANSFER = 8<br />
      CUSTOMER_ERROR          = 9<br />
      OTHERS                  = 10.</p>
<p>ENDFORM.                    &#8221; UPLOAD</p>
<p>*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp;      Form  OPEN_GROUP<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*       text<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
FORM OPEN_GROUP .</p>
<p>  CALL FUNCTION &#8216;BDC_OPEN_GROUP&#8217;<br />
      EXPORTING<br />
           CLIENT              = SY-MANDT<br />
           GROUP               = sy-uname &#8220;&#8216;HR_DELIMT&#8217;<br />
           KEEP                = &#8216;X&#8217;<br />
           USER                = SY-UNAME<br />
      EXCEPTIONS<br />
           CLIENT_INVALID      = 1<br />
           DESTINATION_INVALID = 2<br />
           GROUP_INVALID       = 3<br />
           GROUP_IS_LOCKED     = 4<br />
           HOLDDATE_INVALID    = 5<br />
           INTERNAL_ERROR      = 6<br />
           QUEUE_ERROR         = 7<br />
           RUNNING             = 8<br />
           SYSTEM_LOCK_ERROR   = 9<br />
           USER_INVALID        = 10<br />
           OTHERS              = 11<br />
            .</p>
<p>ENDFORM.                    &#8221; OPEN_GROUP<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp;      Form  GET_PERS_DATA<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*       text<br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
FORM GET_PERS_DATA .<br />
  CLEAR : itab1,itab7,itab8,itabn.<br />
  REFRESH : itab1,itab7,itab8,itabn.</p>
<p>  CALL FUNCTION &#8216;RP_FILL_WAGE_TYPE_TABLE_EXT&#8217;<br />
    EXPORTING<br />
      begda                        = record-begda &#8220;i0008-begda<br />
      endda                        = &#8217;99991231&#8242;<br />
      infty                        = &#8217;0008&#8242;<br />
      tclas                        = &#8216;A&#8217;<br />
      pernr                        = record-pernr &#8220;i0008-pernr<br />
    TABLES<br />
      pp0001                       = itab1<br />
      pp0007                       = itab7<br />
      pp0008                       = itab8<br />
      ppbwla                       = itabn<br />
    EXCEPTIONS<br />
      error_at_indirect_evaluation = 1<br />
      OTHERS                       = 2.</p>
<p>ENDFORM.                    &#8221; GET_PERS_DATA</p>
<p style="text-align: justify;"><strong><span style="color: #3366ff;">Note:</span></strong> The WageTypes should be updated one at a time (i.e., run BDC for all employee for a specific Wage Type. Execute it from SM35. Now repeat the process for another WageType).</p>
<p style="text-align: justify;">BDC Source Code: <a href="http://www.abap-tutorials.com/wp-content/uploads/2010/05/BDC_INSERT_0008.txt" target="_blank">BDC Insert WageType in Infotype 0008</a></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/12/11/abap-hr-program-to-download-employee-data/' rel='bookmark' title='ABAP HR program to download Employee data'>ABAP HR program to download Employee data</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/20/macros-in-abap-hr-programming-i/' rel='bookmark' title='Macros in ABAP-HR Programming &#8211; I'>Macros in ABAP-HR Programming &#8211; I</a></li>
<li><a href='http://www.abap-tutorials.com/2010/07/31/mm02-bdc/' rel='bookmark' title='MM02 BDC &#8211; Select Specific Material Master View'>MM02 BDC &#8211; Select Specific Material Master View</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2010/05/25/bdc-to-insert-wage-type-in-infotype-0008/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Custom HR Infotypes Creation</title>
		<link>http://www.abap-tutorials.com/2010/03/21/hr-infotypes-creation/</link>
		<comments>http://www.abap-tutorials.com/2010/03/21/hr-infotypes-creation/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 14:32:16 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Module Pool]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[HR infotypes]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1406</guid>
		<description><![CDATA[There are requirements for an ABAP-HR programmer for creating custom HR infotypes. The following PDF shows a walk-through of the steps required to set up custom Infotype from scratch. The steps include creating new Infotype from PM01, to defining structure for it, to defining attributes, till dialog module assignment.     Download link: ABAP HR Infotype [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There are requirements for an ABAP-HR programmer for creating custom HR infotypes.</p>
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/03/wizard.jpg"><img class="aligncenter size-full wp-image-1407" title="Create Infotype" src="http://www.abap-tutorials.com/wp-content/uploads/2010/03/wizard.jpg" alt="" width="157" height="206" /></a>The following PDF shows a walk-through of the steps required to set up custom Infotype from scratch.</p>
<p style="text-align: justify;">The steps include creating new Infotype from PM01, to defining structure for it, to defining attributes, till dialog module assignment.</p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Download link: <a href="http://www.abap-tutorials.com/wp-content/uploads/pdfs/Infotype_creation.pdf" target="_blank">ABAP HR Infotype Creation</a></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/11/18/abap-hr-program-to-list-maintained-infotypes-in-sap/' rel='bookmark' title='ABAP HR Program to list maintained Infotypes in SAP'>ABAP HR Program to list maintained Infotypes in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/20/abap-editor-create-custom-pattern/' rel='bookmark' title='ABAP Editor: Create custom Pattern'>ABAP Editor: Create custom Pattern</a></li>
<li><a href='http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/' rel='bookmark' title='Programmer&#8217;s Guide to ABAP HR'>Programmer&#8217;s Guide to ABAP HR</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2010/03/21/hr-infotypes-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmer&#8217;s Guide to ABAP HR</title>
		<link>http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/</link>
		<comments>http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 15:21:14 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Clusters]]></category>
		<category><![CDATA[HR infotypes]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1279</guid>
		<description><![CDATA[The following PDF file is a Programmer&#8217;s Guide to ABAP HR.      It covers following points in ABAP HR :   Brief description of modules in SAP-HR  Concept of Infotypes  Infotype Structures  Creation of infotype  Enhancement of infotype  HR Macros  Use of Provide statement  Cluster reading for [...]]]></description>
			<content:encoded><![CDATA[<p>The following PDF file is a Programmer&#8217;s Guide to ABAP HR. </p>
<p style="text-align: center;">
<div style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></a></div>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></a> </p>
<div><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></a></div>
<p><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg"></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1283" title="SAP ABAP HR" src="http://www.abap-tutorials.com/wp-content/uploads/2010/01/sap-abap-jobs-3-300x200.jpg" alt="" width="300" height="200" /></div>
<p> </p>
<p></a>It covers following points in ABAP HR : </p>
<div id="_mcePaste">
<ul>
<li> Brief description of modules in SAP-HR</li>
<li> Concept of Infotypes</li>
<li> Infotype Structures</li>
<li> Creation of infotype</li>
<li> Enhancement of infotype</li>
<li> HR Macros</li>
<li> Use of Provide statement</li>
<li> Cluster reading for Payroll results</li>
<li> Example of PA letters infotype (Customer defined)</li>
</ul>
</div>
<p><span id="more-1279"></span> </p>
<p>Link : <a href="http://www.abap-tutorials.com/wp-content/uploads/pdfs/ABAP_HR_PROGRAMING.pdf" target="_blank">Programmer&#8217;s Guide to ABAP HR</a></p>
<pre><span style="color: #888888;">
<address style="text-align: justify;"><span style="color: #888888;">*Source: http://abaphr.com</span></address>

</span></pre>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/11/18/abap-vs-abap-hr/' rel='bookmark' title='ABAP Vs. ABAP HR'>ABAP Vs. ABAP HR</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/20/macros-in-abap-hr-programming-i/' rel='bookmark' title='Macros in ABAP-HR Programming &#8211; I'>Macros in ABAP-HR Programming &#8211; I</a></li>
<li><a href='http://www.abap-tutorials.com/2010/08/16/upgrade-guide-from-sap-r3-4-6-to-ecc-6-0-for-abap-developers/' rel='bookmark' title='Upgrade Guide from SAP R/3 4.6 to ECC 6.0 for ABAP Developers'>Upgrade Guide from SAP R/3 4.6 to ECC 6.0 for ABAP Developers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2010/01/14/programmers-guide-to-abap-hr/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ABAP HR &#8211; Linking Personnel no to SAP User-id</title>
		<link>http://www.abap-tutorials.com/2009/12/22/abap-hr-linking-personnel-no-to-sap-user-id/</link>
		<comments>http://www.abap-tutorials.com/2009/12/22/abap-hr-linking-personnel-no-to-sap-user-id/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 08:39:08 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Enhancement/Modification]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Personnel No]]></category>
		<category><![CDATA[SAP User-id]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1230</guid>
		<description><![CDATA[  The linking between Personnel No and the SAP Userid is available in the infotype 0105. This information can be maintained as shown below:  Go to transaction PA30.    Enter the infotype 0105 in the “Direct selection” and 0001 in the subtype.     Click on Create.  Following screen appears:     Enter the start date and [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">The linking between Personnel No and the SAP Userid is available in the infotype 0105. This information can be maintained as shown below: </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">Go to transaction PA30.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">  </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">Enter the infotype 0105 in the “Direct selection” and 0001 in the subtype. </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">  </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">Click on Create. </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">Following screen appears: </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">  </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">Enter the start date and the end date as required. Also enter the SAP User-id to which this personnel number has to be mapped. </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; text-align: justify;">Click on Save to update your records </div>
<p style="text-align: justify;"><span style="border-collapse: collapse; font-family: Arial; line-height: normal; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">The linking between Personnel No and the SAP Userid is pretty useful when we are required to map both of these ( as in case of SAP Employee Self Service). The mapping is available in the infotype 0105. This information can be maintained as shown below: </span></p>
<p style="text-align: justify;"><span style="border-collapse: collapse; font-family: Arial; line-height: normal; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">1. Go to transaction PA30. Enter the infotype 0105 in the “Direct selection” and 0001 in the subtype. Click on Create.</span></p>
<p style="text-align: center;"><span style="border-collapse: collapse; font-family: Arial; line-height: normal; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"> </span></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1235" title="link01" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/link011.jpg" alt="link01" width="614" height="445" /></div>
<p> </p>
<p style="text-align: center;"> </p>
<p style="text-align: left;"><span id="more-1230"></span></p>
<p style="text-align: justify;">2. Following screen appears: </p>
<p style="text-align: center; "> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1236" title="link02" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/link021.jpg" alt="link02" width="614" height="445" /></div>
<p> </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Enter the start date and the end date as required. Also enter the SAP User-id to which this personnel number has to be mapped. </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Click on Save to update your records.</p>
<p style="text-align: justify;"><span style="border-collapse: collapse; font-family: Arial; line-height: normal; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br />
</span></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/11/20/macros-in-abap-hr-programming-i/' rel='bookmark' title='Macros in ABAP-HR Programming &#8211; I'>Macros in ABAP-HR Programming &#8211; I</a></li>
<li><a href='http://www.abap-tutorials.com/2009/12/21/hiding-fields-in-an-infotype-abap-hr/' rel='bookmark' title='Hiding fields in an Infotype &#8211; ABAP HR'>Hiding fields in an Infotype &#8211; ABAP HR</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/19/logical-database-in-sap-a-must-for-abap-hr-programmer/' rel='bookmark' title='Logical Database in SAP &#8211; a must for ABAP HR programmer'>Logical Database in SAP &#8211; a must for ABAP HR programmer</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/12/22/abap-hr-linking-personnel-no-to-sap-user-id/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hiding fields in an Infotype &#8211; ABAP HR</title>
		<link>http://www.abap-tutorials.com/2009/12/21/hiding-fields-in-an-infotype-abap-hr/</link>
		<comments>http://www.abap-tutorials.com/2009/12/21/hiding-fields-in-an-infotype-abap-hr/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:57:05 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Enhancement/Modification]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[Infotype]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1208</guid>
		<description><![CDATA[  It is sometimes required to customize the screen fields in the HR Infotypes. This can be done using the view V_T588M.     1. If we see in PA30, the standard screen for 0023 (Other/Previous Employers) is:       2. Let us hide the field “Work Contract” &#38; “Job” from the standard Infotype [...]]]></description>
			<content:encoded><![CDATA[<p> <br />
It is sometimes required to customize the screen fields in the HR Infotypes. This can be done using the view V_T588M.</p>
<div style="width: 100%; float: left;"> <img class="aligncenter size-full wp-image-1209" title="hide_fields0" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields0.jpg" alt="hide_fields0" width="615" height="480" /></div>
<p> <br />
<span id="more-1208"></span></p>
<p>1. If we see in PA30, the standard screen for 0023 (Other/Previous Employers) is:</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1211" title="hide_fields1" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields1.jpg" alt="hide_fields1" width="614" height="445" /></div>
<p> </p>
<p> </p>
<p>2. Let us hide the field “Work Contract” &amp; “Job” from the standard Infotype screen.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1212" title="hide_fields2" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields2.jpg" alt="hide_fields2" width="614" height="445" /></div>
<p> </p>
<p> </p>
<p>Go to SM30 &amp; enter view name as “V_T588M”. Click on “Maintain”.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1213" title="hide_fields3" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields3.jpg" alt="hide_fields3" width="614" height="445" /></div>
<p> </p>
<p> </p>
<p>3. Enter the module pool program &amp; click Ok. In our case it is MP002300.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1214" title="hide_fields4" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields4.jpg" alt="hide_fields4" width="523" height="132" /></div>
<p> </p>
<p> </p>
<p>4. Now click on &#8216;New Entries&#8217; button.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1215" title="hide_fields5" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields5.jpg" alt="hide_fields5" width="614" height="445" /></div>
<p> </p>
<p> </p>
<p>5. Now enter the “Module Pool” (mandatory) “Standard screen” (mandatory).Press “Enter”.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1216" title="hide_fields6" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields6.jpg" alt="hide_fields6" width="614" height="445" /></div>
<p> </p>
<p>6. After we press “Enter”, all the screen fields of the Infotype are shown along with their attributes.</p>
<p> </p>
<p>7. Now, we can change the attributes according to our requirements by selecting the desired radio button. After that press Save.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1217" title="hide_fields7" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields7.jpg" alt="hide_fields7" width="614" height="445" /></div>
<p> </p>
<p> </p>
<p>8. Then Go to PA30  and check the changes done to the standard Infotype (here Infotype 0023). The fields we chose to hide gets hidden.</p>
<p style="text-align: center;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1218" title="hide_fields8" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/hide_fields8.jpg" alt="hide_fields8" width="614" height="445" /></div>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/12/22/abap-hr-linking-personnel-no-to-sap-user-id/' rel='bookmark' title='ABAP HR &#8211; Linking Personnel no to SAP User-id'>ABAP HR &#8211; Linking Personnel no to SAP User-id</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/18/abap-vs-abap-hr/' rel='bookmark' title='ABAP Vs. ABAP HR'>ABAP Vs. ABAP HR</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/29/display-oaer-pictures-on-screen/' rel='bookmark' title='ABAP Program to Display OAER pictures on Screen'>ABAP Program to Display OAER pictures on Screen</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/12/21/hiding-fields-in-an-infotype-abap-hr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

