PR Rejection Mystery

Alon Raskin araskin at 3i-consulting.com
Mon Jul 3 13:48:41 EDT 2006


Nat,


I think you are onto something. Thanks!!! I will sniff around this
method some more.


Alon

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Nat 4 Govender
Sent: 03 July 2006 08:32
To: SAP Workflow Users' Group
Cc: SAP Workflow Users' Group; sap-wug-bounces at mit.edu
Subject: Re: PR Rejection Mystery

 

Hi Alon,

If your reject is "DELETE"

this is our code in object Z_BUS2009

begin_method delete changing container. 
CONSTANTS: 
$del_indicator_set LIKE bapieband-delete_ind VALUE 'X'. 
DATA: 
lns TYPE i, 
o_bus2105 TYPE swc_object, 
return LIKE TABLE OF bapireturn WITH HEADER LINE, 
del_items LIKE TABLE OF bapieband WITH HEADER LINE. 
MOVE: object-key-item TO del_items-preq_item, 
$del_indicator_set TO del_items-delete_ind. 
APPEND del_items. 
swc_container call_container. 
swc_set_table call_container 'RequisitionItemsToDe' del_items. 
swc_create_object o_bus2105 'BUS2105' object-key-number. 
swc_call_method o_bus2105 'Delete' call_container. 
swc_get_table call_container 'Return' return. 
DESCRIBE TABLE return LINES lns. 
IF lns NE 0. 
READ TABLE return WITH KEY code = 'ME006'. 
IF sy-subrc EQ 0. 
exit_return 9001 return-message_v1 return-message_v2 space space. 
ELSE. 
READ TABLE return WITH KEY type = 'E'. 
IF sy-subrc EQ 0. 
exit_return 9002 return-message space space space. 
ENDIF. 
ENDIF. 
ENDIF. 
end_method.

Regards

Nat Govender
Toyota South Africa
IT - SAP Workflow Specialist
Internal Ext. : 32645
Direct Line : +27 031 910 2645
Fax : +27 031 902 9633
E-mail : ngovender4 at toyota.co.za

=============================================
Never forget that you are unique, like everyone else. 
=============================================
 "Alon Raskin" <araskin at 3i-consulting.com>



"Alon Raskin" <araskin at 3i-consulting.com> 
Sent by: sap-wug-bounces at mit.edu 

2006/07/03 02:13 PM 

Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>

 

To

 
"SAP Workflow Users' Group" <sap-wug at mit.edu>



cc





Subject


PR Rejection Mystery

 






I have been asking around some fairly knowledgeable people and no one
seems to have the answer to this. 

Therefore I throw down this challenge to the good people of the WUG
(that means you). 

As every school child knows, if you want to release a Purchase
Requisition in the background you call BAPI_REQUISITION_RELEASE_GEN 
But what do you do if you want to REJECT a Purchase Requisition? There
does not seem to be a reject FM anywhere.

Alon

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

This message is a privileged and private communication and may be read,
copied and used only by 
the intended recipient(s). If you are not an intended recipient, please
let us know by return email. 
Please then delete the message and do not disclose its contents to any
person. Neither the sender nor 
Toyota South Africa Motors accepts any liability whatsoever as a result
of the further dissemination 
of this message. Whilst all reasonable steps are taken to avoid
corruption of data or information, 
we do not accept any liability should such corruption occur.
	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/675c6b36/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 105 bytes
Desc: image001.gif
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/675c6b36/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 73 bytes
Desc: image002.gif
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/675c6b36/attachment-0001.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 73 bytes
Desc: image003.gif
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/675c6b36/attachment-0002.gif


More information about the SAP-WUG mailing list