<?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: Maintaining it1007 programmatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-it1007-programmatically/m-p/3533766#M850171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at OSS [Note 648608 - Infotype 1007: Function INSE not allowed|https://service.sap.com/sap/support/notes/648608]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you use VTASK = 'B', Changes are buffered, so you have to call function module RH_UPDATE_DATABASE. (Look at function module documentation)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 14:57:47 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-02-27T14:57:47Z</dc:date>
    <item>
      <title>Maintaining it1007 programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-it1007-programmatically/m-p/3533765#M850170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to develop a program that takes in two position numbers and delimits the vacancy record for the first position and creates a vacancy record for the second position. I am trying to use the SAP standard functions RH_CUT_INFTY and RH_INSERT_INFTY respectively but I seem to keep getting errors when the functions try to run. Is there some reason I can't get these classes to work for it1007.&lt;/P&gt;&lt;P&gt;Here is the main parts of the code that I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RH_READ_INFTY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      plvar                = '01'&lt;/P&gt;&lt;P&gt;      otype                = c_plans&lt;/P&gt;&lt;P&gt;      objid                = plans_filled&lt;/P&gt;&lt;P&gt;      infty                = c_1007&lt;/P&gt;&lt;P&gt;      begda                = effective_date&lt;/P&gt;&lt;P&gt;      endda                = effective_date&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      innnn                = l_p1007_old&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      all_infty_with_subty = 1&lt;/P&gt;&lt;P&gt;      nothing_found        = 2&lt;/P&gt;&lt;P&gt;      no_objects           = 3&lt;/P&gt;&lt;P&gt;      wrong_condition      = 4&lt;/P&gt;&lt;P&gt;      wrong_parameters     = 5&lt;/P&gt;&lt;P&gt;      OTHERS               = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delimit 1007 table:&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RH_CUT_INFTY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      gdate              = effective_date&lt;/P&gt;&lt;P&gt;      histo              = ' '&lt;/P&gt;&lt;P&gt;      vtask              = 'B'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      innnn              = l_p1007_old&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error_during_cut   = 1&lt;/P&gt;&lt;P&gt;      no_authorization   = 2&lt;/P&gt;&lt;P&gt;      gdate_before_begda = 3&lt;/P&gt;&lt;P&gt;      cut_of_timco_one   = 4&lt;/P&gt;&lt;P&gt;      corr_exit          = 5&lt;/P&gt;&lt;P&gt;      OTHERS             = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Create Vacancy&lt;/P&gt;&lt;P&gt;  ls_p1007-vacan  = 'X'.&lt;/P&gt;&lt;P&gt;  ls_p1007-begda  = effective_date.&lt;/P&gt;&lt;P&gt;  ls_p1007-status = '0'.&lt;/P&gt;&lt;P&gt;  ls_p1007-objid  = plans_vacan.&lt;/P&gt;&lt;P&gt;  ls_p1007-otype  = c_plans.&lt;/P&gt;&lt;P&gt;  ls_p1007-plvar  = '01'.&lt;/P&gt;&lt;P&gt;  ls_p1007-istat  = '1'.&lt;/P&gt;&lt;P&gt;  ls_p1007-endda  = '99991231'.&lt;/P&gt;&lt;P&gt;  ls_p1007-infty  = '1007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND ls_p1007 TO l_p1007_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Insert new record&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RH_INSERT_INFTY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      fcode               = 'INSE'&lt;/P&gt;&lt;P&gt;      vtask               = 'B'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      innnn               = l_p1007_new&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_authorization    = 1&lt;/P&gt;&lt;P&gt;      error_during_insert = 2&lt;/P&gt;&lt;P&gt;      repid_form_initial  = 3&lt;/P&gt;&lt;P&gt;      corr_exit           = 4&lt;/P&gt;&lt;P&gt;      begda_greater_endda = 5&lt;/P&gt;&lt;P&gt;      OTHERS              = 6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 14:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-it1007-programmatically/m-p/3533765#M850170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining it1007 programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-it1007-programmatically/m-p/3533766#M850171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at OSS [Note 648608 - Infotype 1007: Function INSE not allowed|https://service.sap.com/sap/support/notes/648608]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you use VTASK = 'B', Changes are buffered, so you have to call function module RH_UPDATE_DATABASE. (Look at function module documentation)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 14:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maintaining-it1007-programmatically/m-p/3533766#M850171</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-02-27T14:57:47Z</dc:date>
    </item>
  </channel>
</rss>

