<?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 How to create infotype while creating another infotype in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961617#M698710</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 below requirement...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Whenever user create infotype 0008, infotype 0014 should be created for the wages available in a  Z table.&lt;/P&gt;&lt;P&gt;I created a dynamic action and call function HR_INFOTYPE_OPERATION. When i debug the routine function successfully executed with sy-subrc eq 0. But when i check the database table, there will be no data for infotype 0014. I am writing the below piece of code, i put the hard code value for testing purpose...if you  have any idea please let me know &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_P0014-PERNR = '1000005'.&lt;/P&gt;&lt;P&gt;IT_P0014-ENDDA = '99991231'.&lt;/P&gt;&lt;P&gt;IT_P0014-BEGDA = '20071111'.&lt;/P&gt;&lt;P&gt;IT_P0014-LGART = '1003'.&lt;/P&gt;&lt;P&gt;IT_P0014-BETRG = 1003.&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 = '1000005'&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;CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INFTY = '0014'&lt;/P&gt;&lt;P&gt;NUMBER = '1000005'&lt;/P&gt;&lt;P&gt;VALIDITYEND = '99991231'&lt;/P&gt;&lt;P&gt;VALIDITYBEGIN = '20071111'&lt;/P&gt;&lt;P&gt;RECORD = IT_P0014&lt;/P&gt;&lt;P&gt;OPERATION = 'INS'&lt;/P&gt;&lt;P&gt;TCLAS = 'A'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = RETURN&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&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 = '1000005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if i am missing any thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 09:53:24 GMT</pubDate>
    <dc:creator>piyush_mathur</dc:creator>
    <dc:date>2007-10-15T09:53:24Z</dc:date>
    <item>
      <title>How to create infotype while creating another infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961617#M698710</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 below requirement...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Whenever user create infotype 0008, infotype 0014 should be created for the wages available in a  Z table.&lt;/P&gt;&lt;P&gt;I created a dynamic action and call function HR_INFOTYPE_OPERATION. When i debug the routine function successfully executed with sy-subrc eq 0. But when i check the database table, there will be no data for infotype 0014. I am writing the below piece of code, i put the hard code value for testing purpose...if you  have any idea please let me know &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_P0014-PERNR = '1000005'.&lt;/P&gt;&lt;P&gt;IT_P0014-ENDDA = '99991231'.&lt;/P&gt;&lt;P&gt;IT_P0014-BEGDA = '20071111'.&lt;/P&gt;&lt;P&gt;IT_P0014-LGART = '1003'.&lt;/P&gt;&lt;P&gt;IT_P0014-BETRG = 1003.&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 = '1000005'&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;CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INFTY = '0014'&lt;/P&gt;&lt;P&gt;NUMBER = '1000005'&lt;/P&gt;&lt;P&gt;VALIDITYEND = '99991231'&lt;/P&gt;&lt;P&gt;VALIDITYBEGIN = '20071111'&lt;/P&gt;&lt;P&gt;RECORD = IT_P0014&lt;/P&gt;&lt;P&gt;OPERATION = 'INS'&lt;/P&gt;&lt;P&gt;TCLAS = 'A'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = RETURN&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&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 = '1000005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if i am missing any thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 09:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961617#M698710</guid>
      <dc:creator>piyush_mathur</dc:creator>
      <dc:date>2007-10-15T09:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create infotype while creating another infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961618#M698711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use INSERT command instead of HR_INFOTYPE_OPERATION.It has some issues while calling from Dynamic Actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 09:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961618#M698711</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-10-15T09:54:49Z</dc:date>
    </item>
  </channel>
</rss>

