<?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: IT 2002 &amp; IT 2003 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076029#M1179037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is inside a loop, and it creates +- 80000 records of either 2002/2003 records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 04:44:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-02T04:44:30Z</dc:date>
    <item>
      <title>IT 2002 &amp; IT 2003</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076026#M1179034</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 am in serious need of help, I am currently working on performance tuning a piece of legacy code, the thing is I have done everything that I can: but the report still runs for like 12hours and counting, it was 14hours. The client is currently using infotypes 2002 aand 2003 to capture actual working times this gets done on a weekly basis, the report is an interface program that reads a text file, then updates the above mentioned infotypes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The major problem at the moment is that it uses the HR_INFOTYPE_OPERATION function to update the infotypes. This is how I have it now: &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         = '2003'&lt;/P&gt;&lt;P&gt;              number        = s_empdata-pernr&lt;/P&gt;&lt;P&gt;              validityend   = s_empdata-endda&lt;/P&gt;&lt;P&gt;              validitybegin = s_empdata-begda&lt;/P&gt;&lt;P&gt;              record        = s_empdata&lt;/P&gt;&lt;P&gt;              operation     = 'INS'&lt;/P&gt;&lt;P&gt;              dialog_mode   = '0'&lt;/P&gt;&lt;P&gt;              nocommit      = 'X'&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              return        = return&lt;/P&gt;&lt;P&gt;              key           = personaldatakey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some code here...&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         = '2002'&lt;/P&gt;&lt;P&gt;              number        = s_infotype2002-pernr&lt;/P&gt;&lt;P&gt;              subtype       = '2700'&lt;/P&gt;&lt;P&gt;              validityend   = s_infotype2002-endda&lt;/P&gt;&lt;P&gt;              validitybegin = s_infotype2002-begda&lt;/P&gt;&lt;P&gt;              record        = s_infotype2002&lt;/P&gt;&lt;P&gt;              operation     = 'INS'&lt;/P&gt;&lt;P&gt;              dialog_mode   = '0'&lt;/P&gt;&lt;P&gt;              nocommit      = 'X'&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              return        = return&lt;/P&gt;&lt;P&gt;              key           = personaldatakey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way that I can update these infotypes without using the HR_INFOTYPE_OPERATION function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please please help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 05:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076026#M1179034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-31T05:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: IT 2002 &amp; IT 2003</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076027#M1179035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can feed up infotype tables directly with provided data. Anyhow it is not recommended as you would have to be highly sure about data consistency which is almost impossible. Other way is to create a BDC session without processing it in the program. Instead you can create a session seen in SM35 and later someone can manually run it. &lt;/P&gt;&lt;P&gt;You can also use LSMW for this, especialy when data file is a flat file. Of course if the requirement is doing it with a report you can't do too much on it, except for my first suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 08:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076027#M1179035</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-01-31T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: IT 2002 &amp; IT 2003</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076028#M1179036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this code in a loop? How many records are being updated at a time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2009 01:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076028#M1179036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-01T01:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: IT 2002 &amp; IT 2003</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076029#M1179037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is inside a loop, and it creates +- 80000 records of either 2002/2003 records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 04:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076029#M1179037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T04:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: IT 2002 &amp; IT 2003</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076030#M1179038</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 this FM..you can update all the record at once&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RH_INSERT_INFTY'
      EXPORTING
        fcode               = 'INSE'
        vtask               = 'D' 
        commit_flg          = l_commit_flg
      TABLES
        innnn               = p_innnn
      EXCEPTIONS
        no_authorization    = 1
        error_during_insert = 2
        repid_form_initial  = 3
        corr_exit           = 4
        begda_greater_endda = 5
        OTHERS              = 6.

CALL FUNCTION 'RH_UPDATE_DATABASE'
        EXPORTING
          vtask     = 'D'
        EXCEPTIONS
          corr_exit = 1
          OTHERS    = 2.
      IF sy-subrc = 0.
        COMMIT WORK.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 04:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076030#M1179038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T04:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: IT 2002 &amp; IT 2003</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076031#M1179039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found the problem, it was pointed out to me by Mubeen who is also a member of this forum, since I am new to ABAP development I forgot to initialize the buffer every time I updated the infotypes, I implemented this initialization and it cut my run time down by 80 percent, then another guy Shafiq, told me that there are classes that implement the infotypes and this cuts out all the dynamic-ness of the FM HR_INOFOTYPE_OPERATION. Oh yes and as for the classes that implement infotypes they can only be used as from ECC 6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 05:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/it-2002-it-2003/m-p/5076031#M1179039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T05:53:18Z</dc:date>
    </item>
  </channel>
</rss>

