<?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/2961842#M698758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 et 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;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;LOCKINDICATOR = 'X'&lt;/P&gt;&lt;P&gt;NOCOMMIT = 'X'&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;BREAK-POINT.&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;Please let me know if i am missing any thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 09:56:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-15T09:56:16Z</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/2961842#M698758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 et 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;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;LOCKINDICATOR = 'X'&lt;/P&gt;&lt;P&gt;NOCOMMIT = 'X'&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;BREAK-POINT.&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;Please let me know if i am missing any thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 09:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961842#M698758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T09:56:16Z</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/2961843#M698759</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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S. Do not duplicate the thread.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 09:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961843#M698759</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-10-15T09:59:45Z</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/2961844#M698760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thing this will be not a good idea to update database directly as its a application document data which might be update no of tables. PLease le me know if there are any other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 10:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-infotype-while-creating-another-infotype/m-p/2961844#M698760</guid>
      <dc:creator>piyush_mathur</dc:creator>
      <dc:date>2007-10-15T10:04:45Z</dc:date>
    </item>
  </channel>
</rss>

