<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma, new york, times, serif;font-size:10pt"><DIV></DIV>
<DIV>Florin,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm afraid I have bad news for you - THERE IS NOT SUCH BAPI, METHOD or standard way to perform it.</DIV>
<DIV>FM BAPI_REQUISITION_RESET_REL_GEN suggested does not reject&nbsp;requisition - it simply cancels release of certain release code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I previously fronted the issue and offered the customers the followings:</DIV>
<OL>
<LI>Implement rejection by locking PR items. Such can&nbsp;be easily implemented. The major disadvantage is you will have to build the rejected PR workflow all over again.</LI>
<LI>Write FM that updates EBAN - you need to update the processing state field.</LI></OL>
<P>I strongly suggested on option 1. Since you carry that in background, it should not matter much. It also has the same affect - can't process requisition. </P>
<P>If you'll find standard way to reject it I'll be happy to know about. BTW, batch input will not work with "Enjoy" transactions.</P>
<P>&nbsp;</P>
<P>Good luck,</P>
<P><BR>&nbsp;</P>
<P><FONT face="verdana, helvetica, sans-serif" color=#00007f size=2><STRONG>Regards,<BR>Shai Eyal</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG>SAP Logistics senior consultant<BR>SAP Workflow &amp; BPM specialist</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG><A href="http://www.linkedin.com/in/shaieyal" target=_blank rel=nofollow>http://www.linkedin.com/in/shaieyal</A><BR>Mobile: 972-52-5816633</STRONG></FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> "sap-wug-request@mit.edu" &lt;sap-wug-request@mit.edu&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sap-wug@mit.edu<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, October 29, 2009 14:23:07<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> SAP-WUG Digest, Vol 59, Issue 66<BR></FONT><BR>Send SAP-WUG mailing list submissions to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>&nbsp;&nbsp;&nbsp; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, via email, send a message with subject or body 'help' to<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-request@mit.edu" ymailto="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</A><BR><BR>You can reach the person
 managing the list at<BR>&nbsp;&nbsp;&nbsp; <A href="mailto:sap-wug-owner@mit.edu" ymailto="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</A><BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of SAP-WUG digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp; 1. Reject requisition/order in background (Florin Wach)<BR>&nbsp; 2. RE: Reject requisition/order in background<BR>&nbsp; &nbsp; &nbsp; (<A href="mailto:akshay.bhagwat@wipro.com" ymailto="mailto:akshay.bhagwat@wipro.com">akshay.bhagwat@wipro.com</A>)<BR>&nbsp; 3. Custom material workflow report&nbsp; (Gayathri Shivakumar)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Thu, 29 Oct 2009 10:26:09 +0100<BR>From: "Florin Wach" &lt;<A href="mailto:florin.wach@gmx.net" ymailto="mailto:florin.wach@gmx.net">florin.wach@gmx.net</A>&gt;<BR>Subject: Reject requisition/order in background<BR>To: <A
 href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>Message-ID: &lt;<A href="mailto:20091029092609.286950@gmx.net" ymailto="mailto:20091029092609.286950@gmx.net">20091029092609.286950@gmx.net</A>&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Hi folk,<BR><BR>I'm looking for an ABAP snippet to reject a purchase requisition and purchase order in background.<BR>I have found BAPI's to perform a single release, but none for a rejection. (It's enjoy-Transaktion, so a Batch-Input will not work).<BR><BR>I have tried to use the ABAP OO interfaces for the requisition part, but without effect. When the document is saved/posted, just nothing happends, although no error messages are set:<BR><BR>* Get requisition factory reference:<BR>&nbsp; &nbsp; CALL FUNCTION 'MEREQ_GET_FACTORY'<BR>&nbsp; &nbsp; &nbsp; &nbsp; IMPORTING<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex_factory = lv_factory.<BR><BR>&nbsp; &nbsp;
 CALL METHOD lv_factory-&gt;create_header<BR>&nbsp; &nbsp; &nbsp; EXPORTING<BR>&nbsp; &nbsp; &nbsp; &nbsp; im_tcode&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 'ME54N'<BR>&nbsp; &nbsp; &nbsp; &nbsp; im_document&nbsp; &nbsp; &nbsp; &nbsp; = ls_document<BR>&nbsp; &nbsp; &nbsp; &nbsp; im_protect&nbsp; &nbsp; &nbsp; &nbsp; = 'X'<BR>&nbsp; &nbsp; &nbsp; IMPORTING<BR>&nbsp; &nbsp; &nbsp; &nbsp; ex_instance&nbsp; &nbsp; &nbsp; &nbsp; = lo_req.<BR><BR>&nbsp; CALL METHOD lo_req-&gt;IF_RELEASABLE_MM~REJECT( im_reset = space ).<BR><BR>... and then perform some steps to post the changes:<BR>&nbsp; CALL METHOD lo_req-&gt;check<BR>&nbsp; CALL METHOD lo_req-&gt;post<BR><BR>I have left out some details.<BR><BR>I'm under ECC 6.00.<BR><BR><BR>DOES ANYONE HAVE ANY SUGGESTIONS / EXPERIENCES?<BR><BR><BR>Thank you in advance,<BR>&nbsp; Florin<BR><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Thu, 29 Oct 2009 15:49:00 +0530<BR>From: &lt;<A
 href="mailto:akshay.bhagwat@wipro.com" ymailto="mailto:akshay.bhagwat@wipro.com">akshay.bhagwat@wipro.com</A>&gt;<BR>Subject: RE: Reject requisition/order in background<BR>To: &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:925928EF61EB8142A25835422EC26A8105006CD2@PNE-HJN-MBX01.wipro.com" ymailto="mailto:925928EF61EB8142A25835422EC26A8105006CD2@PNE-HJN-MBX01.wipro.com">925928EF61EB8142A25835422EC26A8105006CD2@PNE-HJN-MBX01.wipro.com</A>&gt;<BR>Content-Type: text/plain;&nbsp;&nbsp;&nbsp; charset="iso-8859-1"<BR><BR>Hi Florin,<BR><BR>I hope you might have already looked at the same, but just wanted to check one point. <BR>Will reset release or cancel release is equivalent to Rejection?<BR><BR>In that case, you can have a look at : BAPI_REQUISITION_RESET_REL_GEN<BR><BR>Regards,<BR><BR>Akshay?Bhagwat<BR><BR>-----Original Message-----<BR>From: <A
 href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A> [mailto:<A href="mailto:sap-wug-bounces@mit.edu" ymailto="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf Of Florin Wach<BR>Sent: Thursday, October 29, 2009 2:56 PM<BR>To: <A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>Subject: Reject requisition/order in background<BR><BR>Hi folk,<BR><BR>I'm looking for an ABAP snippet to reject a purchase requisition and purchase order in background.<BR>I have found BAPI's to perform a single release, but none for a rejection. (It's enjoy-Transaktion, so a Batch-Input will not work).<BR><BR>I have tried to use the ABAP OO interfaces for the requisition part, but without effect. When the document is saved/posted, just nothing happends, although no error messages are set:<BR><BR>* Get requisition factory reference:<BR>&nbsp; &nbsp; CALL FUNCTION
 'MEREQ_GET_FACTORY'<BR>&nbsp; &nbsp; &nbsp; &nbsp; IMPORTING<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex_factory = lv_factory.<BR><BR>&nbsp; &nbsp; CALL METHOD lv_factory-&gt;create_header<BR>&nbsp; &nbsp; &nbsp; EXPORTING<BR>&nbsp; &nbsp; &nbsp; &nbsp; im_tcode&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 'ME54N'<BR>&nbsp; &nbsp; &nbsp; &nbsp; im_document&nbsp; &nbsp; &nbsp; &nbsp; = ls_document<BR>&nbsp; &nbsp; &nbsp; &nbsp; im_protect&nbsp; &nbsp; &nbsp; &nbsp; = 'X'<BR>&nbsp; &nbsp; &nbsp; IMPORTING<BR>&nbsp; &nbsp; &nbsp; &nbsp; ex_instance&nbsp; &nbsp; &nbsp; &nbsp; = lo_req.<BR><BR>&nbsp; CALL METHOD lo_req-&gt;IF_RELEASABLE_MM~REJECT( im_reset = space ).<BR><BR>... and then perform some steps to post the changes:<BR>&nbsp; CALL METHOD lo_req-&gt;check<BR>&nbsp; CALL METHOD lo_req-&gt;post<BR><BR>I have left out some details.<BR><BR>I'm under ECC 6.00.<BR><BR><BR>DOES ANYONE HAVE ANY SUGGESTIONS / EXPERIENCES?<BR><BR><BR>Thank you in
 advance,<BR>&nbsp; Florin<BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>Please do not print this email unless it is absolutely necessary. <BR><BR>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <BR><BR>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The
 company accepts no liability for any damage caused by any virus transmitted by this email. <BR><BR>www.wipro.com<BR><BR><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Thu, 29 Oct 2009 08:22:39 -0400<BR>From: "Gayathri Shivakumar" &lt;<A href="mailto:Gayathri.Shivakumar@us.yazaki.com" ymailto="mailto:Gayathri.Shivakumar@us.yazaki.com">Gayathri.Shivakumar@us.yazaki.com</A>&gt;<BR>Subject: Custom material workflow report <BR>To: &lt;<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:092B2D6C441ED54CAACDCE77A7F547F30358AE9F@CANT-VMSG-002.yazaki.local" ymailto="mailto:092B2D6C441ED54CAACDCE77A7F547F30358AE9F@CANT-VMSG-002.yazaki.local">092B2D6C441ED54CAACDCE77A7F547F30358AE9F@CANT-VMSG-002.yazaki.local</A>&gt;<BR>Content-Type: text/plain; charset="us-ascii"<BR><BR>Hi experts,<BR><BR><BR><BR>I have been tasked with giving information to the ABAP
 team to generate<BR>a report to track workflow for material. I have a custom workflow<BR>developed for material flow. The format for the report is :<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Material Planner Task 1<BR><BR>SAP Part Number<BR><BR>Plant Code<BR><BR>Plant Specific Material Status<BR><BR>Owners<BR><BR>Date/Time Task Received<BR><BR>Date/Time Task Completed<BR><BR>Elapsed Time<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>F0000000002<BR><BR>1112<BR><BR>40<BR><BR>xxxx<BR>xxxx<BR>xxxx<BR><BR>1/1/2009, 2:00pm<BR><BR>1/2/2009, 8:32am<BR><BR>0 Days<BR>18 hours<BR>32 Minutes<BR><BR>F0000000001<BR><BR>1234<BR><BR>20<BR><BR>xxxx<BR>xxxx<BR><BR>1/1/2009, 2:00pm<BR><BR>1/2/2009, 9:32am<BR><BR>0 Days<BR>19 hours<BR>32 Minutes<BR><BR>F0000000001<BR><BR>4567<BR><BR>30<BR><BR>xxxx<BR><BR>1/1/2009, 2:00pm<BR><BR>1/2/2009, 10:32am<BR><BR>0 Days<BR>20 hours<BR>32
 Minutes<BR><BR>F0000000001<BR><BR>3456<BR><BR>10<BR><BR>xxxx<BR>xxxx<BR>xxxx<BR><BR>1/1/2009, 2:00pm<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Ave. Completion Time<BR><BR>0 Days<BR>19 hours<BR>32 Minutes<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>We have looked at standard reports and they do not meet the requirements<BR>of the customer. We are trying to track only one particular task in the<BR>workflow. To get the required data we are looking at workflow tables<BR>SWW_WI2OBJ and function modules SWW_WI_FIND_DEPENDANT_WIS. Since each<BR>material is extended to several plants we are seeing several entries. I<BR>am particularly not able to find the starting workitem id to track down<BR>the rest. <BR><BR><BR><BR>I would like to know if there are other specific tables that I need to<BR>look at. Where are the container variables of the workflow template<BR>stored ? <BR><BR><BR><BR>Thanks and Regards.<BR><BR><BR><BR>Gayathri
 Shivakumar<BR><BR><BR><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20091029/1863a97d/attachment.htm" target=_blank>http://mailman.mit.edu/pipermail/sap-wug/attachments/20091029/1863a97d/attachment.htm</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu" ymailto="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>End of SAP-WUG Digest, Vol 59, Issue 66<BR>***************************************<BR></DIV></DIV></div><br>



      <hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> Get your preferred Email name! </a> <br>
Now you can @ymail.com and @rocketmail.com.</body></html>