<?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: Insert record in infotype 0581 using function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509213#M1654721</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;check function module  HR_INFOTYPE_OPERATION directly in se37 with operation 'INS' ,infotype 581 and pernr, it create record or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 12:42:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-17T12:42:18Z</dc:date>
    <item>
      <title>Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509204#M1654712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module HR_INFOTYPE_OPERATION to insert a record in infotype 0581, but its giving exception CX_HRPA_INVALID_INFOTYPE. This infotype is time constraint 1.So how can i handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply will be really helpful &amp;lt;&lt;EM&gt;removed by moderator&amp;gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: S Harshit on Feb 17, 2012 6:49 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 17, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 05:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509204#M1654712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T05:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509205#M1654713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a very confusing issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link out. It might give you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please don't post just link(s) without explaining the relevance.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 17, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 06:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509205#M1654713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T06:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509206#M1654714</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;Refer below link for your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please don't post just link(s) without explaining the relevance.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 17, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 09:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509206#M1654714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T09:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509207#M1654715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Yes.. Infotype 0581 is Time constraint 1, You can't maintain overlap or gaps records in this, check the input record and existing record dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM which you are using is correct to maintain IT0581, Check the dates properly, still you get same error, Please post the code, I can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mallikarjuna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509207#M1654715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509208#M1654716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your link has provided me that I am unable to pass the rent amount RTAMT, can you help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509208#M1654716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T10:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509209#M1654717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mallikarjuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to pass the rent amount, but unable to, here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF IT_P0581.
INCLUDE STRUCTURE P0581.
TYPES END OF IT_P0581.
DATA: INFTYKEY LIKE BAPIPAKEY,
RETURN LIKE BAPIRETURN1.
DATA: P0581_TAB TYPE TABLE OF IT_P0581 WITH HEADER LINE.
P0581_TAB-PERNR = 01400038.
P0581_TAB-INFTY = '0581'.
P0581_TAB-BEGDA = '20111010'.
P0581_TAB-ENDDA = '99991231'.
P0581_TAB-RTAMT = 3000 .



append P0581_TAB.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = P0581_TAB-INFTY
NUMBER = P0581_TAB-PERNR
SUBTYPE = ''
VALIDITYEND = P0581_TAB-ENDDA
VALIDITYBEGIN = P0581_TAB-BEGDA
RECORD = P0581_TAB
OPERATION = 'INS'
NOCOMMIT = ''
RECORDNUMBER = '000'
DIALOG_MODE = '2'
IMPORTING
RETURN = RETURN
KEY = INFTYKEY
EXCEPTIONS
OTHERS = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509209#M1654717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509210#M1654718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any records in IT0581 for this employee...?, If yes check the dates, else let me know what you are trying to do exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mallikarjuna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509210#M1654718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509211#M1654719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mallikarjuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting records in my table but its not inserting. For this pernr there is no record exists in DB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Harshit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509211#M1654719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T10:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509212#M1654720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the amount to 3000.00, and also check the amount format in PA0581 table try to pass the same format, and also check the all mandatory fields, Pass the value to all mandatory fields, I feel there could be an subtype for IT0581, If subtype is exits pass the subtype also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 11:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509212#M1654720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T11:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Insert record in infotype 0581 using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509213#M1654721</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;check function module  HR_INFOTYPE_OPERATION directly in se37 with operation 'INS' ,infotype 581 and pernr, it create record or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-record-in-infotype-0581-using-function-module/m-p/8509213#M1654721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T12:42:18Z</dc:date>
    </item>
  </channel>
</rss>

