<?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: Preventive maintenance plan in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/preventive-maintenance-plan/m-p/4743315#M1112680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bartlomiej&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have any solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2014 07:35:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-08-07T07:35:03Z</dc:date>
    <item>
      <title>Preventive maintenance plan</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preventive-maintenance-plan/m-p/4743314#M1112679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want ot update one user filed in operation from order which is created from transaction IP10 (Schedule maintenance plan). For this purpose I tried to use two different user exits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. EXIT_SAPLCOIH_030 -  but here a I problem to find proper table with temporary data for operations. There is no such table in interface of user-exit so I have to copy it to field like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 unassign &amp;lt;fs_it&amp;gt;.
  l_field = '(SAPLCOBT)AFVG_BT[]'.
  assign (l_field) to &amp;lt;fs_it&amp;gt;.
  if &amp;lt;fs_it&amp;gt; is assigned.
    it[] = &amp;lt;fs_it&amp;gt;.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know table with data about operation I will be grateful for hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. EXIT_SAPLCOBT_001 - here I modify proper fields in OPERATION_TABLE table but system doesn't change it later. I don't know why? Maybe I should change some indicator?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if sy-tcode = 'IP10'.

  data wa_it like afvgb.
  types: begin of ls_mptt,
          point like imptt-point,
          pttxt like imptt-pttxt,
          usr00 like afvu-usr00,
          tabin like sy-tabix.
  types: end of ls_mptt.

  data: wa_mptt type ls_mptt.
  data: lt_mptt like standard table of wa_mptt with header line.
  data: cur_point type i,
        cur_usr00 type i.


  data: pttxt(20) type c,
        usr01(20) type c,
        tabin type sy-tabix.

  loop at header_table.

    select distinct imptt~point imptt~pttxt into lt_mptt
      from ( imptt
             inner join iflo
             on imptt~mlang = iflo~spras
             and imptt~mpobj = iflo~objnr )
             where iflo~tplnr = header_table-tplnr.
      append lt_mptt.
    endselect.


    loop at operation_table into wa_it.
      if sy-tabix = 1.
        continue.
      endif.
      tabin = sy-tabix.
      if not ( header_table-tplnr is initial
               or wa_it-slwid is initial
               or wa_it-usr01 is initial )
             and wa_it-usr00 is initial.

         loop at lt_mptt.

           pttxt = lt_mptt-pttxt(20).
           usr01 = wa_it-usr01(20).
           translate usr01 to upper case.
           if pttxt eq usr01.
             wa_it-usr00 = lt_mptt-point.
           endif.

           clear pttxt.
           clear usr01.

         endloop.

         modify operation_table from wa_it index tabin.

       endif.

      clear tabin.
      clear wa_it.

    endloop.

    clear lt_mptt.

  endloop.

endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I return operation_table with data which I want but SAP doesn't fill it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any solution for first or second exit it will be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance&lt;/P&gt;&lt;P&gt;BL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 09:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preventive-maintenance-plan/m-p/4743314#M1112679</guid>
      <dc:creator>bartlomiej_lach</dc:creator>
      <dc:date>2008-11-14T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Preventive maintenance plan</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/preventive-maintenance-plan/m-p/4743315#M1112680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bartlomiej&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have any solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 07:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/preventive-maintenance-plan/m-p/4743315#M1112680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-07T07:35:03Z</dc:date>
    </item>
  </channel>
</rss>

