Fiscal year changes in Object keys

Swami Bala swam_in at hotmail.com
Wed Aug 11 19:38:50 EDT 2004


Thanks Susan for the reply. Since we almost failed miserably last year (
because we did not have the neccessary patch for 46c that time) we did not
want to take a chance this year. So we kind of started this fiscal testing
earlier preparing for the next year.
Our first problem is Deleted event is not getting raised once the old
document's posting date is changed ( which would create another document ).
We are in touch with SAP regarding this issue.
2nd problem is when the posting date is changed when document is Parked and
released status,
it resets the status to Parked. This makes the approvers approve the new
document once again.
Coming back to my earlier problem of not refreshing the object keys at the
time of method execution, I found out that the object keys are infact be
changed during method execution by
using macro swc_set_objectkey though I am not sure if that is a right
choice.
 
Swami Bala
 
 
 
 
 
>From: "Susan R. Keohan" <keohan at ll.mit.edu>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Fiscal year changes in Object keys
>Date: Wed, 11 Aug 2004 14:53:49 -0400
>MIME-Version: 1.0
>Received: from mc10-f4.hotmail.com ([65.54.166.140]) by mc10-s8.hotmail.com
>with Microsoft SMTPSVC(5.0.2195.6824); Wed, 11 Aug 2004 11:55:57 -0700
>Received: from cherry.ease.lsoft.com ([209.119.0.109]) by
>mc10-f4.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Wed, 11 Aug 2004
>11:55:55 -0700
>Received: from vms.dc.lsoft.com (209.119.0.2) by cherry.ease.lsoft.com
>(LSMTP for Digital Unix v1.1b) with SMTP id
><6.00E4433F at cherry.ease.lsoft.com>; Wed, 11 Aug 2004 14:55:54 -0400
>Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release
>1.8e)          with spool id 8140 for SAP-WUG at MITVMA.MIT.EDU; Wed, 11 Aug
>2004          14:54:44 -0400
>Received: from MITVMA (NJE origin SMTP at MITVMA) by MITVMA.MIT.EDU (LMail
>      V1.2d/1.8d) with BSMTP id 6057; Wed, 11 Aug 2004 14:52:56 -0400
>Received: from LLMAIL.LL.MIT.EDU [129.55.12.40] by mitvma.mit.edu (IBM VM
>SMTP          Level 430) via TCP with ESMTP ; Wed, 11 Aug 2004 14:52:55 EDT
>Received: (from smtp at localhost) by ll.mit.edu (8.12.10/8.8.8) id
>i7BIs3BW007042          for <SAP-WUG at MITVMA.MIT.EDU>; Wed, 11 Aug 2004
>14:54:03 -0400 (EDT)
>Received: from UNKNOWN(             ),          claiming to be "ll.mit.edu"
>via SMTP by llpost,          id smtpdAAAzTaimn; Wed Aug 11 14:53:50 2004
>X-Message-Info: A2qyToRgF9RG7DmotztI7hULIn4rONKhqNaLjT/kCEA=
>X-Warning: mitvma.mit.edu: Host LLMAIL.LL.MIT.EDU claimed to be ll.mit.edu
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6)
>    Gecko/20040113 MITLL
>X-Accept-Language: en-us, en
>References: <BAY2-F26SXT8HnFkG3J00033390 at hotmail.com>
>Approved-By:  "Susan R. Keohan" <keohan at LL.MIT.EDU>
>Message-ID:  <411A6B3D.2090908 at ll.mit.edu>
>Organization: MIT Lincoln Laboratory
>In-Reply-To:  <BAY2-F26SXT8HnFkG3J00033390 at hotmail.com>
>Precedence: list
>Return-Path: owner-sap-wug at MITVMA.MIT.EDU
>X-OriginalArrivalTime: 11 Aug 2004 18:55:56.0002 (UTC)
>FILETIME=[D534D420:01C47FD4]
>
>Hi Swami,
>
>We started testing for this issue in January.  I have something that works,
>but I can't claim that
>it is endorsed by SAP.  Our Invoice Approval WFs all have 'wait for event'
>for the event BUS2081
>DELETED.  So we did not want the workflow to terminate if the invoice
>crossed fiscal years and a new
>invoice was created with reference to the old invoice.  In SWEINST, for
>BUS2081 DELETED EVENTITEM, I
>added a check function.  This function will look at the attributes of the
>invoice (this will be the
>old invoice).  If it has &&docnumber&& in the ref doc field (the
>&&docnumber&& will be the invoice
>document number of the new invoice), and is involved in a workflow process
>(using
>SAP_WAPI_WORKITEMS_TO_OBJECT) I then use SWW_OBJKEY_CHANGE_V1 to 'push' the
>new object key into the
>workflow container. Then I end with exception 'NO_EVENT' so that the
>workflow will not terminate.
>The workflow audit trail stays with the new invoice document, and that was
>one of the goals of the
>whole process.
>
>While our fiscal year doesn't begin until October, so I cannot attest to
>how this works in real life
>(for example, could our users enter &&docnumber&& in the ref doc field ?
>Users can be sneaky!) it
>works well in test.
>
>Hope this helps!
>Sue
>
>Swami Bala wrote:
>
>>Hello All,
>>We are simulating testing for the workflow business object BUS2081 for the
>>fiscal year changes.
>>For example the document created in year 2004 needs to be posted in year
>>2005. Since the year is part of the Object key, when the method is
>>executed
>>for object keys (eg) Doc1 year1, the posting date changes the object
>>keys to
>>Doc2 year2. But the method does not get refreshed
>>to fetch these new values until it is executed again from the Inbox.I need
>>to get these new values as part of the Object keys and tried using
>>swc_object_refresh but no use. What is the correct approach to get the new
>>updated object keys within the method itself ?
>>Any suggestions ?
>>
>>Swami Bala
>>
>
>--
>Susan R. Keohan
>SAP Workflow Developer
>MIT Lincoln Laboratory
>244 Wood Street
>LI-200
>Lexington, MA. 02420
>781-981-3561
>keohan at ll.mit.edu
 


More information about the SAP-WUG mailing list