<?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: Determine Reverse Good Movement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404190#M1547181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod Kumar,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. But it's difficult if there are multi PGI and reversal PGI document.&lt;/P&gt;&lt;P&gt;Is there any flag determine 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, 02 Nov 2010 07:17:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-02T07:17:59Z</dc:date>
    <item>
      <title>Determine Reverse Good Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404188#M1547179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;Where can we determine an outbound delivery has reversed or not? Which table and field?&lt;/P&gt;&lt;P&gt;Help me pls,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Quanglv,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 04:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404188#M1547179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-02T04:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Reverse Good Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404189#M1547180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the table VBFA, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;where VBELV = &amp;lt;delivery Number&amp;gt; 
and VBTYP_V = 'J' 
and  VBTYP_N = 'h'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If any records exist in VBFA with above WHERE condition, then the delivery is reversed with the Reverse document number VBFA-VBELN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 05:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404189#M1547180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-02T05:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Reverse Good Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404190#M1547181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod Kumar,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. But it's difficult if there are multi PGI and reversal PGI document.&lt;/P&gt;&lt;P&gt;Is there any flag determine 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, 02 Nov 2010 07:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404190#M1547181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-02T07:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Reverse Good Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404191#M1547182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is any flag to identify the state of delivery (PGI Created or Reversed).  In the scenario mentioned by you, compare the number of entries in VBFA related to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;where VBELV = &amp;lt;Delivery Number&amp;gt; 
and  VBTYP_V = 'J'
and  VBTYP_N = 'R'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;where VBELV = &amp;lt;Delivery Number&amp;gt; 
and  VBTYP_V = 'J'
and  VBTYP_N = 'h'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the count of records in 1st and 2nd are same( and &amp;gt; 0) , PGI is created &amp;amp; Cancelled. Otherwise (count of 1 &amp;gt; count of 2), PGI is not reveresed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this logic will be helpful for your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 07:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404191#M1547182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-02T07:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Reverse Good Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404192#M1547183</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;The fields SJAHR, SMBLN and SMBLP of MSEG return the key of the item reversed, so if the document A it means you need to select a record frim MSEG having the fields above with the key of A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT * FROM MSEG WHERE  SJAHR = &amp;lt;A&amp;gt;-MJAHR
                                           AND SMBLN = &amp;lt;A&amp;gt;-MBLNR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that means you need to check all items of A were reversed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 07:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-reverse-good-movement/m-p/7404192#M1547183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-02T07:46:23Z</dc:date>
    </item>
  </channel>
</rss>

