<?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 function module by which i can change infotype 2002. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571904#M1078793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Please suggest me function module by which i can change infotype 2002.&lt;/P&gt;&lt;P&gt;i have used code below.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NUMBER             =  empid.&lt;/P&gt;&lt;P&gt; WA_P2002-PERNR = empid.&lt;/P&gt;&lt;P&gt;          WA_P2002-INFTY = C_2002.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         WA_P2002-SUBTY = wa_it1-subty.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          WA_P2002-BEGDA = wa_it1-STARTDATE.&lt;/P&gt;&lt;P&gt;          WA_P2002-ENDDA = wa_it1-ENDDATE.&lt;/P&gt;&lt;P&gt;        WA_P2002-BEGUZ = wa_it1-ARRTIME.&lt;/P&gt;&lt;P&gt;          WA_P2002-ENDUZ = wa_it1-DEPTIME.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              INFTY     = C_2002&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             SUBTYPE   = wa_it1-subty&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              NUMBER    = empid&lt;/P&gt;&lt;P&gt;              RECORD    = WA_P2002&lt;/P&gt;&lt;P&gt;              OPERATION = 'INSS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             NOCOMMIT  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              RETURN    = RETURN.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          APPEND wa_it1 TO temp.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;          CLEAR: WA_P2002.&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NUMBER = empid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't wanna change subtype.&lt;/P&gt;&lt;P&gt;i only want to change values of begruz and endruz.&lt;/P&gt;&lt;P&gt;Means only time details of employee.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Purvesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2008 06:05:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-26T06:05:39Z</dc:date>
    <item>
      <title>function module by which i can change infotype 2002.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571904#M1078793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Please suggest me function module by which i can change infotype 2002.&lt;/P&gt;&lt;P&gt;i have used code below.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NUMBER             =  empid.&lt;/P&gt;&lt;P&gt; WA_P2002-PERNR = empid.&lt;/P&gt;&lt;P&gt;          WA_P2002-INFTY = C_2002.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         WA_P2002-SUBTY = wa_it1-subty.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          WA_P2002-BEGDA = wa_it1-STARTDATE.&lt;/P&gt;&lt;P&gt;          WA_P2002-ENDDA = wa_it1-ENDDATE.&lt;/P&gt;&lt;P&gt;        WA_P2002-BEGUZ = wa_it1-ARRTIME.&lt;/P&gt;&lt;P&gt;          WA_P2002-ENDUZ = wa_it1-DEPTIME.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              INFTY     = C_2002&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             SUBTYPE   = wa_it1-subty&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              NUMBER    = empid&lt;/P&gt;&lt;P&gt;              RECORD    = WA_P2002&lt;/P&gt;&lt;P&gt;              OPERATION = 'INSS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             NOCOMMIT  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              RETURN    = RETURN.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          APPEND wa_it1 TO temp.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;          CLEAR: WA_P2002.&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NUMBER = empid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't wanna change subtype.&lt;/P&gt;&lt;P&gt;i only want to change values of begruz and endruz.&lt;/P&gt;&lt;P&gt;Means only time details of employee.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Purvesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 06:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571904#M1078793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module by which i can change infotype 2002.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571905#M1078794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;In the same function module instead of using 'INSS' use 'MOD' for modifieng the corresponding fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 06:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571905#M1078794</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2008-09-26T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: function module by which i can change infotype 2002.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571906#M1078795</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;Use&lt;/P&gt;&lt;P&gt;OPERATION = 'MOD' for Modify record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;OPERATION = 'INSS'.&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;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 06:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571906#M1078795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T06:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: function module by which i can change infotype 2002.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571907#M1078796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have tried 'ins' ,'Mod','INSS' all.&lt;/P&gt;&lt;P&gt;But not working you sugesst me that how can i achieve this.&lt;/P&gt;&lt;P&gt;if possible write sample code.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Purvesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 08:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571907#M1078796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T08:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: function module by which i can change infotype 2002.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571908#M1078797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I use the following and it works.  Maybe just try without using 'DEL'??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              NUMBER = PR_TAB-PERNR&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              RETURN = RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF RETURN-NUMBER NE '000'.    " Employee could not be queued&lt;/P&gt;&lt;P&gt;            PERFORM STORE_ERROR USING PR_TAB-PERNR 'T'.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;                 EXPORTING&lt;/P&gt;&lt;P&gt;                    INFTY         = '2002'&lt;/P&gt;&lt;P&gt;                    SUBTYPE       = PR_TAB-SUBTY&lt;/P&gt;&lt;P&gt;                    NUMBER        = PR_TAB-PERNR&lt;/P&gt;&lt;P&gt;                    OPERATION     = 'DEL'&lt;/P&gt;&lt;P&gt;                    RECORD        = ATT_RECORD&lt;/P&gt;&lt;P&gt;                    VALIDITYBEGIN = PR_TAB-BEGDA&lt;/P&gt;&lt;P&gt;                    VALIDITYEND   = PR_TAB-ENDDA&lt;/P&gt;&lt;P&gt;                    RECORDNUMBER  = PR_TAB-SEQNR&lt;/P&gt;&lt;P&gt;                 IMPORTING&lt;/P&gt;&lt;P&gt;                    RETURN        = RETURN_TB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IF RETURN_TB-NUMBER NE '000'.&lt;/P&gt;&lt;P&gt;                  PERFORM STORE_ERROR USING PR_TAB-PERNR 'T'.&lt;/P&gt;&lt;P&gt;                ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                 NUMBER = PR_TAB-PERNR&lt;/P&gt;&lt;P&gt;               IMPORTING&lt;/P&gt;&lt;P&gt;                 RETURN = RETURN.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 16:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-by-which-i-can-change-infotype-2002/m-p/4571908#M1078797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T16:47:47Z</dc:date>
    </item>
  </channel>
</rss>

