<?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: Infotype MOD operation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852145#M926032</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;The FM is correct but you can't change the end date with MOD. &lt;/P&gt;&lt;P&gt;You can create a new record with INS. The end date of the previous record is the changed to the startdate of the new record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 07:04:34 GMT</pubDate>
    <dc:creator>b_deterd2</dc:creator>
    <dc:date>2008-05-16T07:04:34Z</dc:date>
    <item>
      <title>Infotype MOD operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852142#M926029</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;I am using HR_INFOTYPE_OPERATION to delimit the record in my infotype.. I want to modify the ENDDA = sy-datum - 1 in the existing record... But that FM is itself is not working.... is there any alternative to this FM?? Please reply me.. Its very urgent..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code..&lt;/P&gt;&lt;P&gt;    l_enddate = sy-datum - 1.&lt;/P&gt;&lt;P&gt;    wa_read_pernr-endda = l_enddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR ls_return.&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         = '9035'&lt;/P&gt;&lt;P&gt;        number        = wa_read_pernr-pernr&lt;/P&gt;&lt;P&gt;        subtype       = wa_read_pernr-subty&lt;/P&gt;&lt;P&gt;        objectid      = wa_read_pernr-objps&lt;/P&gt;&lt;P&gt;        lockindicator = wa_read_pernr-sprps&lt;/P&gt;&lt;P&gt;        validityend   = enddate&lt;/P&gt;&lt;P&gt;        validitybegin = wa_read_pernr-begda&lt;/P&gt;&lt;P&gt;        recordnumber  = wa_read_pernr-seqnr&lt;/P&gt;&lt;P&gt;        record        = wa_read_pernr&lt;/P&gt;&lt;P&gt;        operation     = 'MOD'&lt;/P&gt;&lt;P&gt;        tclas         = 'A'&lt;/P&gt;&lt;P&gt;        dialog_mode   = dialog_mode&lt;/P&gt;&lt;P&gt;        nocommit      = space&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return        = ls_return&lt;/P&gt;&lt;P&gt;        key           = wa_key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 06:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852142#M926029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype MOD operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852143#M926030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When calling the FM, in the parameter enddate,&lt;/P&gt;&lt;P&gt;    make sure you are passing the OLD/EXISTING value&lt;/P&gt;&lt;P&gt;    (which is there in the PA table)&lt;/P&gt;&lt;P&gt;    for the ENDDA field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I also assume you are locking the employee before&lt;/P&gt;&lt;P&gt;   calling this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one sample code as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Report abc.



*----------------- Data
DATA : P0015 LIKE P0015.
DATA : RETURN LIKE BAPIRETURN1.
DATA : KEY LIKE BAPIPAKEY.
DATA : RETURNE LIKE BAPIRETURN1 .

*------------- Values (Change as per Requirement)

P0015-PERNR = '1'.
P0015-BEGDA = '2061101'.
P0015-ENDDA = '2061101'.
P0015-LGART = '3075'.
P0015-PREAS = '01'.
P0015-WAERS = 'INR'.
P0015-BETRG = '2500'.


*----- First Enqu

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = p0015-pernr
IMPORTING
RETURN = RETURNE.


*------------- Update

CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = P0015-PERNR
SUBTYPE = P0015-SUBTY
OBJECTID = P0015-OBJPS
LOCKINDICATOR = P0015-SPRPS
VALIDITYEND = P0015-ENDDA
VALIDITYBEGIN = P0015-BEGDA
RECORDNUMBER = P0015-SEQNR
RECORD = P0015
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.

IF RETURN IS NOT INITIAL.
WRITE :/ 'Error Occurred'.
ENDIF.

*--------- Dequeue
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = P0015-PERNR
.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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, 16 May 2008 06:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852143#M926030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype MOD operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852144#M926031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanku for ur reply.&lt;/P&gt;&lt;P&gt;Ya. I am locking the PERNR. &lt;/P&gt;&lt;P&gt;I checked for the existing value(validity begin) in the Infotype.&lt;/P&gt;&lt;P&gt;Every thing i have cheked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program i am using READ_INFOTYPE  func Mod. here i can retrieve the data into one itab.. but when i go to debug mode inside HR_INFOTYPE_OPERATION, standard READ_INFOTYPE is not retreiving my data.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. The parameter SELTAB (debug mode inside that FM).. is not filled. I dont know why?  Please help me to come out of this problem.. its very urgent.. give u full points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error message like.. No data updated to Table for the selected period range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 06:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852144#M926031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype MOD operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852145#M926032</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;The FM is correct but you can't change the end date with MOD. &lt;/P&gt;&lt;P&gt;You can create a new record with INS. The end date of the previous record is the changed to the startdate of the new record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852145#M926032</guid>
      <dc:creator>b_deterd2</dc:creator>
      <dc:date>2008-05-16T07:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Infotype MOD operation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852146#M926033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The reason why the infotype is not able&lt;/P&gt;&lt;P&gt;  to read the existing record is bcos (probably)&lt;/P&gt;&lt;P&gt;  the values which we have supplied to the FM&lt;/P&gt;&lt;P&gt;   as export parameters, do not match &lt;/P&gt;&lt;P&gt;   with the values in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Make sure, ALL VALUES are as per existing record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infty = '9035'&lt;/P&gt;&lt;P&gt;number = wa_read_pernr-pernr&lt;/P&gt;&lt;P&gt;subtype = wa_read_pernr-subty&lt;/P&gt;&lt;P&gt;objectid = wa_read_pernr-objps&lt;/P&gt;&lt;P&gt;lockindicator = wa_read_pernr-sprps&lt;/P&gt;&lt;P&gt;validityend = enddate  &amp;lt;----&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;validitybegin = wa_read_pernr-begda&lt;/P&gt;&lt;P&gt;recordnumber = wa_read_pernr-seqnr&lt;/P&gt;&lt;P&gt;record = wa_read_pernr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Can u tell which error you are getting.&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, 16 May 2008 07:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infotype-mod-operation/m-p/3852146#M926033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:10:41Z</dc:date>
    </item>
  </channel>
</rss>

