<html><body>
<p>Hi Alon,<br>
<br>
If your reject is &quot;DELETE&quot;<br>
<br>
this is our code in object Z_BUS2009<br>
<br>
begin_method delete changing container.                                <br>
CONSTANTS:                                                             <br>
      $del_indicator_set LIKE bapieband-delete_ind VALUE 'X'.          <br>
DATA:                                                                  <br>
      lns       TYPE i,                                                <br>
      o_bus2105 TYPE swc_object,                                       <br>
      return    LIKE TABLE OF bapireturn WITH HEADER LINE,             <br>
      del_items LIKE TABLE OF bapieband  WITH HEADER LINE.             <br>
MOVE: object-key-item    TO del_items-preq_item,                       <br>
      $del_indicator_set TO del_items-delete_ind.                      <br>
APPEND del_items.                                                      <br>
swc_container call_container.                                          <br>
swc_set_table call_container 'RequisitionItemsToDe' del_items.         <br>
swc_create_object o_bus2105  'BUS2105'              object-key-number. <br>
swc_call_method   o_bus2105  'Delete'               call_container.    <br>
swc_get_table call_container 'Return'               return.            <br>
DESCRIBE TABLE return LINES lns.                                       <br>
IF lns NE 0.                                                           <br>
  READ TABLE return WITH KEY code = 'ME006'.                           <br>
  IF sy-subrc EQ 0.                                                    <br>
    exit_return 9001 return-message_v1 return-message_v2 space space.  <br>
  ELSE.                                                                <br>
    READ TABLE return WITH KEY type = 'E'.                             <br>
    IF sy-subrc EQ 0.                                                  <br>
      exit_return 9002 return-message space space space.               <br>
    ENDIF.                                                             <br>
  ENDIF.                                                               <br>
ENDIF.                                                                 <br>
end_method.<br>
<br>
Regards<br>
<br>
Nat Govender<br>
Toyota South Africa<br>
IT - SAP Workflow Specialist<br>
Internal Ext.  : 32645<br>
Direct Line    : +27 031 910 2645<br>
Fax                 : +27 031 902 9633<br>
E-mail            : ngovender4@toyota.co.za<br>
<br>
=============================================<br>
 Never forget that you are unique, like everyone else. <br>
=============================================<br>
<img src="cid:10__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" width="16" height="16" alt="Inactive hide details for &quot;Alon Raskin&quot; &lt;araskin@3i-consulting.com&gt;">&quot;Alon Raskin&quot; &lt;araskin@3i-consulting.com&gt;<br>
<br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:20__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za); background-repeat: no-repeat; " width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">&quot;Alon Raskin&quot; &lt;araskin@3i-consulting.com&gt;</font></b><font size="2"> </font><br>
<font size="2">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size="2">2006/07/03 02:13 PM</font>
<table border="1">
<tr valign="top"><td width="168" bgcolor="#FFFFFF"><div align="center"><font size="2">Please respond to<br>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></div></td></tr>
</table>
</ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="58" alt=""><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="1" alt=""><br>
<font size="2">&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="58" alt=""><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="1" alt=""><br>
</td></tr>

<tr valign="top"><td width="1%"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="58" alt=""><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="1" alt=""><br>
<font size="2">PR Rejection Mystery</font></td></tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="1" alt=""></td><td width="336"><img src="cid:30__=CDBBFB33DFD729818f9e8a93df9@toyota.co.za" border="0" height="1" width="1" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<font color="#000080" face="Arial">I have been asking around some fairly knowledgeable people and no one seems to have the answer to this. </font><br>
<font color="#000080" face="Arial"> </font><br>
<font color="#000080" face="Arial">Therefore I throw down this challenge to the good people of the WUG (that means you). </font><br>
<font color="#000080" face="Arial"> </font><br>
<font color="#000080" face="Arial">As every school child knows, if you want to release a Purchase Requisition </font><b><font color="#000080" face="Arial">in the background</font></b><font color="#000080" face="Arial"> you call BAPI_REQUISITION_RELEASE_GEN </font><br>
<font color="#000080" face="Arial">But what do you do if you want to REJECT a Purchase Requisition? There does not seem to be a reject FM anywhere.</font><br>
<font color="#000080" face="Arial"> </font><br>
<font color="#000080" face="Arial">Alon</font><br>
<font color="#000080" face="Arial"> </font><br>
<font color="#000080" face="Arial"> </font><tt>_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
</tt><tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></tt><tt><br>
</tt><br>
</body></html>

<table><tr><td bgcolor=#ffffff><font color=#000000>This message is a privileged and private communication and may be read, copied and used only by <br>
the intended recipient(s). If you are not an intended recipient, please let us know by return email. <br>
Please then delete the message and do not disclose its contents to any person. Neither the sender nor <br>
Toyota South Africa Motors accepts any liability whatsoever as a result of the further dissemination <br>
of this message. Whilst all reasonable steps are taken to avoid corruption of data or information, <br>
we do not accept any liability should such corruption occur.<br>
</font></td></tr></table>