<?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: Reverse Multiple Posting No. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253724#M1384049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2009 04:10:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-22T04:10:59Z</dc:date>
    <item>
      <title>Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253723#M1384048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have problem to reverse multiple  posting no. in one time. Eg i have 3 posting no need to revese, when first  n second posting no are reversed but third got error , so this will cosinder fail. so i need recover back the first and second posting no.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to use BAPI to reverse it eg : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       materialdocument    = materialdocument&lt;/P&gt;&lt;P&gt;       matdocumentyear     = matdocumentyear&lt;/P&gt;&lt;P&gt;       goodsmvt_pstng_date = matdocumentdate&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       return              = return_o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when finish reverse all three posting no. without error , then i only go throw "Commit Work" . CAN I ?  the way i doing is correct ?  or any idea to solve this problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 03:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253723#M1384048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T03:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253724#M1384049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 04:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253724#M1384049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T04:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253725#M1384050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;Make changes wherever needed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab into wa.

CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
EXPORTING
materialdocument = wa-mblnr
matdocumentyear = wa-mjahr
goodsmvt_pstng_date = wa-budat
TABLES
return = lt_return.

if lt_return[] is not initial.
append lines of lt_return to lt_messages.
endif.

clear lt_return[].

endloop.


read table lt_messages into wa1 with key type = 'E'.
if sy-subrc = 0.
	"Error Found
else.
	"Commit work
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 05:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253725#M1384050</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-22T05:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253726#M1384051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i do   BAPI more than 1 times witout "commint work" ?  only do the commit work  for the last record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 07:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253726#M1384051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T07:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253727#M1384052</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;just a change in code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put the read statement inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table lt_return into wa1 with key type = 'E'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;	"Error Found&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;	"Commit work&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They way for what your are asking is impossible because bapi accepts only one material document at a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 08:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253727#M1384052</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-22T08:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253728#M1384053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah , thank for your reply . how i going to recover back those reversed  data ? do i need to repost it again and get the new migo no. ?  Bc i need to reverse more than 1 migo no. in one time , and cnt 100% all migo can reverse successfully without.  how i going to prevent this happen ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 08:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253728#M1384053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T08:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Multiple Posting No.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253729#M1384054</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;Once there is no error record found and commit has happened successfully, then there is no need to repost the successfull records,&lt;/P&gt;&lt;P&gt;but when you get error in return table collect all the error records and repost again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 18:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reverse-multiple-posting-no/m-p/6253729#M1384054</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-22T18:07:13Z</dc:date>
    </item>
  </channel>
</rss>

