PR Rejection Mystery

Nat 4 Govender ngovender4 at toyota.co.za
Mon Jul 3 08:31:49 EDT 2006



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-consu                                            
             lting.com>                                                 To
             Sent by:                  "SAP Workflow Users' Group"        
             sap-wug-bounces at m         <sap-wug at mit.edu>                  
             it.edu                                                     cc
                                                                          
                                                                   Subject
             2006/07/03 02:13          PR Rejection Mystery               
             PM                                                           
                                                                          
                                                                          
             Please respond to                                            
               "SAP Workflow                                              
               Users' Group"                                              
             <sap-wug at mit.edu>                                            
                                                                          
                                                                          




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/ad24d78f/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/ad24d78f/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic10202.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/ad24d78f/attachment-0001.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20060703/ad24d78f/attachment-0002.gif


More information about the SAP-WUG mailing list