AW: FIPP and WF

Knuth, Bernhard bernhard.knuth at sap.com
Thu Jan 11 00:50:04 EST 2001


Peter, Ignasi, Alan,
 
please have a look at oss notes 87700 and 87768.  It describes a =
standard
function module SWW_OBJKEY_CHANGE_V1 which can change the object key of =
a
started workflow.  You can keep the history since both keys of the FIPP =
will
be kept in the workflow container.  Someone who has approved the FIPP =
in the
old year would not need to do it again.
 
Simply write a small ABAP which takes the old an the new FIPP key to =
call
the function module.  Not much coding to do.  That report should run
immedeately after the conversion of the parked document.  Even for just =
a
few documents it is worth doing it this way instead of manually.
 
Regards,
Bernhard Knuth
BPT Consulting & Integration
SAP Walldorf
 
-----Urspr=FCngliche Nachricht-----
Von: AHans [mailto:shans at sprint.ca]
Gesendet: Mittwoch, 10. Januar 2001 18:21
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: FIPP and WF
 
 
Hi Peter,
I have recently gone through the same issue. If the document was =
created in
year 2000 and was sitting with the first user, moment the first user =
changed
the posting date it deletes the current workflow and starts a new one =
with
new document number, so the first user gets it again and processes it, =
not
too bad, client could live with this scenario.
 
Issues came up when the document was created in the last year required =
three
approvals, it has already gone through two and now in the new year when =
the
final approver tried to approve it, it changed the document number and
deleted the old workflow and started the new one from the very =
beginning.
Audit trail  and attachments lost, also it goes through the approval =
process
again,  not a very good solution for us. What you can do is as follows:
Code the ABAP Function module, it accepts the document number  and =
looks for
the two workflows copies the attachments and brings the new one to same
status where the old one left. There is coding involved in this option =
or if
the number of workflows is low, do not rule out the manual processing
option, see where the effort vs. return is better. We plan to keep the
document number same from next year if we could. We do not have a =
better
solution yet, still looking at some other alternatives.
 
Regards,
Alan Hans
 
-----Original Message-----
From: Aliana Portugal, Ignasi <IAliana at fecsa.es>
To: SAP-WUG at MITVMA.MIT.EDU <SAP-WUG at MITVMA.MIT.EDU>
Date: Wednesday, January 10, 2001 11:03 AM
Subject: Re: FIPP and WF
 
 
Hi Peter,
 
we had the same problem just an year ago and we'll try to explain the
solution we implemented:
 
we created a function module that must be accomplished before launching =
the
workflow. In this function module, we validate that the document is not =
in
table BKPF with the status W. In that case, we do not through the =
workflow.
See the attached code:
 
  SELECT SINGLE VBLNR VGJHR INTO (VBKPF-VBLNR, VBKPF-VGJHR) FROM VBKPF
    WHERE AUSBK =3D NUM_DOC-SOCIEDAD
    AND   BUKRS =3D NUM_DOC-SOCIEDAD
    AND   BELNR =3D NUM_DOC-DOCUMENTO
    AND   GJAHR =3D NUM_DOC-EJERCICIO.
 
  IF SY-SUBRC =3D 0.
     SELECT SINGLE * FROM BKPF
       WHERE BUKRS =3D NUM_DOC-SOCIEDAD
       AND   BELNR =3D VBKPF-VBLNR
       AND   GJAHR =3D VBKPF-VGJHR
       AND   BSTAT =3D 'W'.
     IF SY-SUBRC =3D 0.
                DO NOT THROUGH THE WORKFLOW.
 
 
Hope this helps.
 
Ignasi & Ivan.
 
 
Ignasi Aliana (PWC)  -  SIE2000
Centro de Soporte de WF / CA
ialiana at fecsa.es / 93 6002490
 
 
> -----Mensaje original-----
> De:   Peter van Alphen (ETM) [SMTP:Peter.van.Alphen at etm.ericsson.se]
> Enviado el:   mi=E9rcoles 10 de enero de 2001 12:30
> Para: SAP-WUG at MITVMA.MIT.EDU
> Asunto:       FIPP and WF
>
> Hello WF experts,
>
> I have a question about ParkedDocuments in combination with Workflow.
>
> We have a workflow which is triggered on the moment a Parked Document =
is
> created. The key of a ParkedDocument is COMPANY CODE (4) PDnumber =
(10)
> Fiscal Year (4). The problem we have is that when a parked document =
which
> is created in 2000 have to be booked in 2001 we have to change the =
posting
> date of the document in a date from the year 2001. But if you do this =
the
> key of the ParkedDocument changes (new fiscal year) and the workflow =
is
> triggered again. What happens then is that the 'old' workflow is not =
valid
> anymore and the new workflow starts from the beginning. Does somebody =
know
> how to handle this problem?
>
> Met vriendelijke groet,
> With kind regards,
>
> Peter van Alphen
> Basis Consultant Business Applications
> ERICSSONL
> P.O. Box 209, 5120 AE Rijen
> The Netherlands
>
> Tel.+31 161 246743, Fax. +31 161 242170, GSM. +31 6 22498576
> E-Mail:peter.van.alphen at etm.ericsson.se
 


More information about the SAP-WUG mailing list