<!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> </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. 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> </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.
Depending on your release procedure configuration the releases may automatically
reset. 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> </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> </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> </DIV>
<DIV dir=ltr align=left><SPAN class=359591120-01032007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </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> </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> </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> </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. 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 & 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>> Mike,<BR>><BR>> I posted this question quite a while ago
but no one seemed to have an<BR>> answer. I hope you have better
luck.<BR>><BR>> I spent quite a bit of time debugging and then writing my
own code to<BR>> do the 'rejection'. I ended up giving up as the code that
SAP provides<BR><BR>> is very difficult to replicate (a lot of the logic is
mixed in with<BR>> the presentation logic).<BR>><BR>>
Alon<BR>><BR>><BR>> ________________________________<BR>><BR>>
From: sap-wug-bounces@mit.edu on behalf of Mike Pokraka<BR>> Sent: Thu
3/1/2007 12:47<BR>> To: sap-wug@mit.edu<BR>> Subject: Release PO in
background?<BR>><BR>><BR>><BR>> G'Day folks,<BR>><BR>> Does
anyone have a shortcut, secret function module or equivalent to<BR>>
BAPI_PO_RELEASE to *reject* a Purchase Order on 4.7? There's<BR>>
BAPI_PO_RESETRELEASE, but alas no reject.<BR>><BR>> I admit I'm being a
little bit lazy here but<BR>> a) an hour searching/debugging has been
fruitless<BR>> b) this seems normal enough that someone's come across this
before,<BR>> and<BR>> c) it's hometime and I'm hoping someone has a simple
answer :-)<BR>><BR>> Any input appreciated,<BR>> Mike<BR>>
(Crossposted to WUG and SDN)<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>>
_______________________________________________<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><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. Please update your<BR>contact
list*<BR><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><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>