<?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: MIGO Reset implementation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962475#M698939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anji,&lt;/P&gt;&lt;P&gt;don't worry. i have solved my problem.&lt;/P&gt;&lt;P&gt;after displaying the application log popup, i am deleting all the messages with&lt;/P&gt;&lt;P&gt;Function module BAL_LOG_MSG_DELETE_ALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 00:04:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T00:04:34Z</dc:date>
    <item>
      <title>MIGO Reset implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962472#M698936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have implemented BADI MB_MIGO_BADI for MIGO.&lt;/P&gt;&lt;P&gt;in the POST_DOCUMENT method i am displaying some messages with application log. which is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem is : when do MIGO for one purchase order it shows the message in application. and when with out leaving MIGO transaction if i do for another purchase order the application log shows messages as double(including the one for previous purchase orders).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i beleive we also need to implement RESET method, but i don't know what write in this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any inputs on this?&lt;/P&gt;&lt;P&gt;i am already clearing all internal tables related to application log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962472#M698936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO Reset implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962473#M698937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see the sample code of the BADI and do accordingly&lt;/P&gt;&lt;P&gt;BAdI Name: ZMB_CHECK_LINE_BADI (Implementation name) Checking of line items in  MIGO&lt;/P&gt;&lt;P&gt;Definition Name: MB_CHECK_LINE_BADI&lt;/P&gt;&lt;P&gt;Interface Name : IF_EX_MB_CHECK_LINE_BADI&lt;/P&gt;&lt;P&gt;Implementing Class: ZCL_IM_MB_CHECK_LINE_BADI&lt;/P&gt;&lt;P&gt;Method :            CHECK_LINE&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;METHOD if_ex_mb_check_line_badi~check_line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : return  TYPE STANDARD TABLE OF bapiret2 INITIAL SIZE  0 ,&lt;/P&gt;&lt;P&gt;         poitem  TYPE STANDARD TABLE OF bapimepoitem  INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;         poitemx TYPE STANDARD TABLE OF bapimepoitemx  INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;         i_ekbe  TYPE STANDARD TABLE OF ekbe  INITIAL SIZE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : xmkpf1 TYPE  mkpf,&lt;/P&gt;&lt;P&gt;         xmseg1 TYPE  mseg,&lt;/P&gt;&lt;P&gt;         w_ekbe TYPE ekbe,&lt;/P&gt;&lt;P&gt;         w_ekbe1 TYPE ekbe,&lt;/P&gt;&lt;P&gt;         w_ekpo TYPE ekpo,&lt;/P&gt;&lt;P&gt;         poitem1 TYPE  bapimepoitem,&lt;/P&gt;&lt;P&gt;         gv_qty  TYPE menge13,&lt;/P&gt;&lt;P&gt;         poitemx1 TYPE bapimepoitemx.&lt;/P&gt;&lt;P&gt;  IF is_mseg-bwart EQ '105'.&lt;/P&gt;&lt;P&gt;    IF is_mseg-lfbnr NE space.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * INTO  w_ekbe1 FROM ekbe WHERE ebeln = is_mseg-ebeln AND&lt;/P&gt;&lt;P&gt;                                                  ebelp = is_mseg-ebelp AND&lt;/P&gt;&lt;P&gt;                                                  belnr  = is_mseg-lfbnr AND&lt;/P&gt;&lt;P&gt;                                                  buzei = is_mseg-lfpos AND&lt;/P&gt;&lt;P&gt;                                                  gjahr = is_mseg-lfbja.&lt;/P&gt;&lt;P&gt;      IF w_ekbe1-grund NE '0005'.&lt;/P&gt;&lt;P&gt;        MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can take only Accepted Quantity into the stock'&lt;/P&gt;&lt;P&gt;                                                      '.If you want to accept this stock,' 'obtain approval of Purchasing manager'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR w_ekbe1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * INTO TABLE i_ekbe FROM ekbe WHERE ebeln = is_mseg-ebeln AND&lt;/P&gt;&lt;P&gt;                                               ebelp = is_mseg-ebelp AND&lt;/P&gt;&lt;P&gt;                                             ( bwart = '105' OR bwart = '106') .&lt;/P&gt;&lt;P&gt;    LOOP AT i_ekbe INTO w_ekbe.&lt;/P&gt;&lt;P&gt;      IF w_ekbe-bwart EQ '105'.&lt;/P&gt;&lt;P&gt;        gv_qty = gv_qty + w_ekbe-menge.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        gv_qty = gv_qty - w_ekbe-menge.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * INTO w_ekpo   FROM ekpo  WHERE ebeln = is_mseg-ebeln AND&lt;/P&gt;&lt;P&gt;                                                    ebelp = is_mseg-ebelp.&lt;/P&gt;&lt;P&gt;    gv_qty =  w_ekpo-menge - gv_qty.&lt;/P&gt;&lt;P&gt;    IF is_mseg-menge &amp;gt; gv_qty.&lt;/P&gt;&lt;P&gt;      MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You have already reached the PO quantity' .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSEIF  is_mseg-bwart EQ '103' AND is_mseg-grund = '0005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * INTO TABLE i_ekbe FROM ekbe WHERE ebeln = is_mseg-ebeln AND&lt;/P&gt;&lt;P&gt;                                               ebelp = is_mseg-ebelp AND&lt;/P&gt;&lt;P&gt;                                             ( bwart = '103' OR bwart = '104') AND&lt;/P&gt;&lt;P&gt;                                              grund EQ '0005'.&lt;/P&gt;&lt;P&gt;    LOOP AT i_ekbe INTO w_ekbe.&lt;/P&gt;&lt;P&gt;      IF w_ekbe-bwart EQ '103' .&lt;/P&gt;&lt;P&gt;        gv_qty = gv_qty + w_ekbe-wesbs.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        gv_qty = gv_qty - w_ekbe-wesbs.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * INTO w_ekpo   FROM ekpo  WHERE ebeln = is_mseg-ebeln AND&lt;/P&gt;&lt;P&gt;                                                    ebelp = is_mseg-ebelp.&lt;/P&gt;&lt;P&gt;    gv_qty =  w_ekpo-menge - gv_qty.&lt;/P&gt;&lt;P&gt;    IF is_mseg-menge &amp;gt; gv_qty.&lt;/P&gt;&lt;P&gt;      MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cannot exceed the PO quantity' .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR w_ekbe1.&lt;/P&gt;&lt;P&gt;  ELSEIF is_mseg-bwart EQ '104'.&lt;/P&gt;&lt;P&gt;    IF is_mseg-lfbnr NE space.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * INTO  w_ekbe1 FROM ekbe WHERE ebeln = is_mseg-ebeln AND&lt;/P&gt;&lt;P&gt;                                                  ebelp = is_mseg-ebelp AND&lt;/P&gt;&lt;P&gt;                                                  belnr  = is_mseg-lfbnr AND&lt;/P&gt;&lt;P&gt;                                                  buzei = is_mseg-lfpos AND&lt;/P&gt;&lt;P&gt;                                                  gjahr = is_mseg-lfbja.&lt;/P&gt;&lt;P&gt;      IF w_ekbe1-grund &amp;lt;&amp;gt; is_mseg-grund.&lt;/P&gt;&lt;P&gt;        MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can cancel this document only with'&lt;/P&gt;&lt;P&gt;                                                       'Reason code' w_ekbe1-grund.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR w_ekbe1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962473#M698937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO Reset implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962474#M698938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anji,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;but my problem is not how to implement BADI.&lt;/P&gt;&lt;P&gt;my problem was how to clear the buffered values in memory of MIGO transaction.&lt;/P&gt;&lt;P&gt;because if i am continuosly doing MIGO one after the other, all the messages are appending to application log.&lt;/P&gt;&lt;P&gt;and i don't want that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 23:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962474#M698938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T23:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO Reset implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962475#M698939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anji,&lt;/P&gt;&lt;P&gt;don't worry. i have solved my problem.&lt;/P&gt;&lt;P&gt;after displaying the application log popup, i am deleting all the messages with&lt;/P&gt;&lt;P&gt;Function module BAL_LOG_MSG_DELETE_ALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 00:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-reset-implementation/m-p/2962475#M698939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T00:04:34Z</dc:date>
    </item>
  </channel>
</rss>

