<?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: Update IT0380 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770905#M38254</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;Where are the parameters for validity start and end period and the subtype for this function module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also check V_RET after this function not SY-SUBRC. This contains whether it worked or not. If it is initial then it worked ok otherwise it will contain the message for the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Nov 2004 10:06:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-11-25T10:06:08Z</dc:date>
    <item>
      <title>Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770902#M38251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi People,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to Update employee record in IT0380 based on field PCT01. But I'm having difficulty, since IT0380 can only be updated in &amp;lt;i&amp;gt;Compensation Administration&amp;lt;/i&amp;gt;. How can the updates be forced in this infotype? Is there an available function module for this? I would really appreciate all the help. Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2004 03:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770902#M38251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-25T03:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770903#M38252</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 function HR_INFOTYPE_OPERATION. Action is MOD I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any further help, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2004 09:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770903#M38252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-25T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770904#M38253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yep...  i already tried HR_INFOTYPE_OPERATION earlier. A part of the code is attached: &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         = '0380'&lt;/P&gt;&lt;P&gt;          number        = i0380-pernr&lt;/P&gt;&lt;P&gt;          record        = i0380&lt;/P&gt;&lt;P&gt;          operation     = 'INS'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          return        = v_ret&lt;/P&gt;&lt;P&gt;          key           = v_key.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    WRITE: /'Successfully Updated'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, even if the sy-subrc returns a successful value, the table has not been updated. By the way, I think I must also include the information that i am coding using LSMW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2004 09:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770904#M38253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-25T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770905#M38254</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;Where are the parameters for validity start and end period and the subtype for this function module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also check V_RET after this function not SY-SUBRC. This contains whether it worked or not. If it is initial then it worked ok otherwise it will contain the message for the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2004 10:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770905#M38254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-25T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770906#M38255</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;Here is a small code snippet illustrating the usage of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA ls_data LIKE p0380 .
DATA ls_return LIKE bapireturn1 .

*--Fill "ls_data" as required here
*- Be careful about the checks that will be done during 
* execution of the function module. The checks it will 
*do, will be more or less like when you insert the
*record using the tcode "PA30". e.g. you must fill
*obligatory fields
CALL FUNCTION 'ENQUEUE_EPPRELE'
  EXPORTING
    mode_prel = 'E'
    mandt = sy-mandt
    pernr = ls_data-pernr
    infty = '0380'
    subty = 'SSSS'
    endda = ls_data-endda
    begda = ls_data-begda
    _scope = '1'
  EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
IF sy-subrc NE 0 .
*...
  EXIT.
ENDIF.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'
  EXPORTING
    infty = '0380'
    number = ls_data-pernr
    subtype = ls_data-subty
    validityend = ls_data-endda
    validitybegin = ls_data-begda
    record = ls_data
    operation = 'INS'
    tclas = 'A'
    nocommit = space
  IMPORTING
    return = ls_return .

CALL FUNCTION 'DEQUEUE_EPPRELE'
  EXPORTING
    mode_prel = 'E'
    mandt = sy-mandt
    pernr = ls_data-pernr
    infty = '0380'
    subty = 'SSSS'
    endda = ls_data-endda
    begda = ls_data-begda.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some Basics:&lt;/P&gt;&lt;P&gt;i. You may wonder why I locked the personel but as far as I remember, there is a problem in the FM "HR_INFOTYPE_OPERATION" about this. Locking the personel overcomes the problem. But it may have been solved. So, if you want first try without locking.&lt;/P&gt;&lt;P&gt;ii. The FM calls the dialog module for the program MPXXXX00 (XXXX: Infotype number, here MP038000) of the infotype.&lt;/P&gt;&lt;P&gt;iii. "ls_data" which is passed to the parameter "record" should be type "PXXXX" (here P0380).&lt;/P&gt;&lt;P&gt;iv. If the infotype has subtypes, pass the subtype you want to the parameter "subtype" .&lt;/P&gt;&lt;P&gt;v. You must give the validity period to the parameters "validityend" and "validitybegin".&lt;/P&gt;&lt;P&gt;vi. The operation type to insert a record is "INS". You can see other values from the fixed values of the domain of the parameter "operation".&lt;/P&gt;&lt;P&gt;vii. Since some infotypes are common for both employee an applicants data, you should pass 'A' to the parameter "tclas". This way the record is inserted to the table PAXXXX. In case of 'B', it behaves your record as to be an applicant data.&lt;/P&gt;&lt;P&gt;viii. You have the option to force the FM not to commit at the end.&lt;/P&gt;&lt;P&gt;ix. The exporting parameter "return" of the FM is of type "BAPIRETURN1". That is, it can be used like other BAPI returns. You can analyze the result of the execution from this table. It will consist of messages given during the execution in standard message format (i.e. message type (E,I,A,S,X), message id, message number and message variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this addition helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2004 20:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770906#M38255</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-11-25T20:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770907#M38256</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;Thanks for the replies Colin and Serdar &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as what i've said in the first post, I could not use PA30 for IT0380.  Maintaining it is via Compensation Administration. As much as possible I don't want to force the fields because it was requested that i use a function module. Does that funcion module work even if I'm not using PA30? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2004 02:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770907#M38256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-26T02:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770908#M38257</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;You should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM calls the dialog module for the program MPXXXX00 (XXXX: Infotype number, here &amp;lt;b&amp;gt;MP038000&amp;lt;/b&amp;gt;) of the infotype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program does exist so give it a go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colin &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2004 12:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770908#M38257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-26T12:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Update IT0380</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770909#M38258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Colin mentioned, since the program MP038000 exists (and as I guess the corresponding dialog module exists), the FM can be used. However, one should inspect the program MP038000 (and may be the FM itself) whether there is a restriction to prevent maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, give a try which conveniently applies the FM as described in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2004 22:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-it0380/m-p/770909#M38258</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-11-26T22:13:58Z</dc:date>
    </item>
  </channel>
</rss>

