<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>RE: *Reject* PO in background?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2>Alon,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2>I used BAPI_PO_GETITEMS to get the line items for the 
PO.&nbsp; I then built an internal table out of the results with the deletion 
indicator set on each line then passed the table into BAPI_PO_CHANGE po_items 
table.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2>To reset the releases I simply used the standard 
ResetRelease method on BUS2012 and pass in the lowest release code.&nbsp; 
Depending on your release procedure configuration the releases may automatically 
reset.&nbsp; We are dealing with header level release.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2>Hope this helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2>Seth</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Alon Raskin<BR><B>Sent:</B> 
Thursday, March 01, 2007 2:09 PM<BR><B>To:</B> SAP Workflow Users' 
Group<BR><B>Subject:</B> RE: *Reject* PO in background?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText87493 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Seth,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Yes I remember you posting it.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Logical Deletion is a good way to go. Since 
Mike is being lazy...can you share some code? </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Alon</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu on behalf of 
Stevens, Seth<BR><B>Sent:</B> Thu 3/1/2007 15:05<BR><B>To:</B> SAP Workflow 
Users' Group<BR><B>Subject:</B> RE: *Reject* PO in 
background?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Alon,<BR><BR>We had the same issue.&nbsp; I also posted the 
question with no luck.<BR><BR>Our finial solution, although not the best, was to 
reset all the<BR>releases and then logically delete all the line items on the 
PO.<BR><BR>Thanks,<BR>Seth<BR><BR>-----Original Message-----<BR>From: 
sap-wug-bounces@mit.edu [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf<BR>Of Mike Pokraka<BR>Sent: Thursday, March 01, 2007 12:20 PM<BR>To: SAP 
Workflow Users' Group<BR>Subject: RE: *Reject* PO in background?<BR><BR>Hi 
Alon,<BR><BR>Oops of course I meant to write *Reject* in the last subject, 
not<BR>release!<BR><BR>Thanks, I think I even found your post &amp; that's what 
it started to look<BR>like when we dug around 
:-(<BR><BR>Cheers,<BR>Mike<BR><BR>On Thu, March 1, 2007 5:54 pm, Alon Raskin 
wrote:<BR>&gt; Mike,<BR>&gt;<BR>&gt; I posted this question quite a while ago 
but no one seemed to have an<BR>&gt; answer. I hope you have better 
luck.<BR>&gt;<BR>&gt; I spent quite a bit of time debugging and then writing my 
own code to<BR>&gt; do the 'rejection'. I ended up giving up as the code that 
SAP provides<BR><BR>&gt; is very difficult to replicate (a lot of the logic is 
mixed in with<BR>&gt; the presentation logic).<BR>&gt;<BR>&gt; 
Alon<BR>&gt;<BR>&gt;<BR>&gt; ________________________________<BR>&gt;<BR>&gt; 
From: sap-wug-bounces@mit.edu on behalf of Mike Pokraka<BR>&gt; Sent: Thu 
3/1/2007 12:47<BR>&gt; To: sap-wug@mit.edu<BR>&gt; Subject: Release PO in 
background?<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; G'Day folks,<BR>&gt;<BR>&gt; Does 
anyone have a shortcut, secret function module or equivalent to<BR>&gt; 
BAPI_PO_RELEASE to *reject* a Purchase Order on 4.7? There's<BR>&gt; 
BAPI_PO_RESETRELEASE, but alas no reject.<BR>&gt;<BR>&gt; I admit I'm being a 
little bit lazy here but<BR>&gt; a) an hour searching/debugging has been 
fruitless<BR>&gt; b) this seems normal enough that someone's come across this 
before,<BR>&gt; and<BR>&gt; c) it's hometime and I'm hoping someone has a simple 
answer :-)<BR>&gt;<BR>&gt; Any input appreciated,<BR>&gt; Mike<BR>&gt;&nbsp; 
(Crossposted to WUG and SDN)<BR>&gt;<BR>&gt; 
_______________________________________________<BR>&gt; SAP-WUG mailing 
list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; <A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt;<BR>&gt;<BR>&gt; 
_______________________________________________<BR>&gt; SAP-WUG mailing 
list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; <A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt;<BR><BR><BR>--<BR>Mike 
Pokraka<BR>Senior Consultant<BR>Workflow Connections<BR>Mobile: +44(0)7786 
910855<BR><BR>_______________________________________________<BR>SAP-WUG mailing 
list<BR>SAP-WUG@mit.edu<BR><A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>-----------------------------------------<BR>*Please 
note my E-Mail Address has changed.&nbsp; Please update your<BR>contact 
list*<BR><BR>Anadarko Confidentiality Notice:&nbsp;<BR>This electronic 
transmission and any attached documents or other<BR>writings are intended only 
for the person or entity to which it is<BR>addressed and may contain information 
that is privileged,<BR>confidential or otherwise protected from 
disclosure.&nbsp; If you have<BR>received this communication in error, please 
immediately notify<BR>sender by return e-mail and destroy the communication. 
Any<BR>disclosure, copying, distribution or the taking of any 
action<BR>concerning the contents of this communication or any attachments 
by<BR>anyone other than the named recipient is strictly 
prohibited.<BR><BR><BR>_______________________________________________<BR>SAP-WUG 
mailing list<BR>SAP-WUG@mit.edu<BR><A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR></FONT></P></DIV></BODY></HTML>


<HTML><BODY>*Please note my E-Mail Address has changed.  Please<br>
update your contact list*<br>
<br><br><br>
<P><hr size=1></P><br>
<P><STRONG><br>
Anadarko Confidentiality Notice:  <br>
This electronic transmission and any attached documents or other<br>
writings are intended only for the person or entity to which it is<br>
addressed and may contain information that is privileged,<br>
confidential or otherwise protected from disclosure.  If you have<br>
received this communication in error, please immediately notify<br>
sender by return e-mail and destroy the communication. Any<br>
disclosure, copying, distribution or the taking of any action<br>
concerning the contents of this communication or any attachments by<br>
anyone other than the named recipient is strictly prohibited.<br>
</STRONG></P></BODY></HTML>