check function module in 40B

de Valensart Schoenmaeckers, Patrick deValensartSchoenmaeckers.Patrick at pmintl.ch
Wed Mar 13 03:54:49 EST 2002


I think that this occurs because the database "commit" for the creation of
the PR in EBAN is not yet done at the moment the check FM is called (I have
already seen that problem with a create event for an invoice). If I remember
well, the problem was raised on this list by one of my colleagues, and the
solution was to put some kind of "wait" statement in the check FM before the
selection on BKPF (sorry that I cannot be more explicit, I am not an ABAP
expert and did not apply the solution myself). In your case the same
statement should be inserted before the selection on EBAN.
 
I hope this will help.
 
Kind regards,
 
---------------------------------------------------------
Patrick de Valensart
Information Services
Philip Morris S.p.A.
Via Salandra, 18, 00187 Roma, Italy
---------------------------------------------------------
 
 
-----Original Message-----
From: Almeida Viraj [mailto:Viraj.Almeida at sisl.co.in]
Sent: Wednesday, March 13, 2002 9:21 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: check function module in 40B
 
 
Hi friends,
I use a check FM for a workflow.
After event "PR created" is triggered, I check document type of PR.
For certain Doc Type of PR  Workflow should be started.
 
the event container gives Pr number.I use the number to find PR doc type
from EBAN.
But doc type is not returned...it gives me empty string.
 
wot could be wrong?
 
Alttough it works fine during Explicit Generate Event tool..
 
thanks in Advance,
 
Viraj
 


More information about the SAP-WUG mailing list