cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

i am trying to understand the underlying concept in following things:(neednot to say i have searched alot and read sap documentation already).

In event type linkage table say i have an entry for BOR -> AFVC_PM.

As per sap Documentation says all these FM will trigger in following way.

1 Check Function Module (to place any validations/checks)

2 Receiver Type Function Module ()

3 Receiver Function Module.

Thats fine.

This is what documentation says about Receiver Type FM(2nd FM) not Receiver FM(3rd FM).

This FM has 1 export paramter

Export parameters

RECTYPE type SWETYPECOU-RECTYPE Receiver type( Result of the evaluation by the receiver type function module.)

if i am understanding this right, in this FM receiver type will be decided .

i have placed BREAK-POINT in this FM  and passing value WS90000024 (Workflow with simple mail step) in export parameter RECTYPE.

after everything executed successfully why i can't see that mail in my inbox.

Please correct me if i had misunderstood the concept .

0 Likes
View Entire Topic
Former Member
0 Likes

When you built WS90000024, did you define AFVC_PM.RELEASED as a triggering event and did you bind the AFVC_PM instance in the event to the AFVC_PM object in the workflow template?

Please post a screenshot of the workflow template definition (triggering event tab).

Former Member
0 Likes

ok,indeed i was missing this thing.

i got the mails in inbox.

but why i can't see this value WS90000024 of this workflow ()which is going to be triggered ) in parameter RECTYPE.(its empty).

it is empty after the receiver type function module execution is complete.

below is workflow template,

Former Member
0 Likes

RECTYPE is a return parameter. Your custom function module should set the value.

Former Member
0 Likes

exactly, and my custom FM is not setting any value to this parameter.

then where exactly after this event is triggered workflow id is assigned.

i guess you understand what i want to ask.

Former Member
0 Likes

Post a screenshot of your SWETYPV configuration entry. You need to either specify a receiver type (explicit value) or a receiver type function module (dynamic value that is calculated/derived in this receiver type function module).

Former Member
0 Likes

hi abdullah,

i have posted screen-shot of SWE2 entry in the very beginning of this discussion.

See first screen-shot while posting que.

i have not assigned Receiver Type but instead i have mentioned Receiver Function Module.

i wan't to know where workflow id is assigned.

please note all the Z Function modules i  have assigned in this entry are empty(no source code lines except interface of Fm and Break-points).

pokrakam
Active Contributor
0 Likes

Perhaps an obvious question, but have you checked the workflow was actually started by an event? Look at the technical log for the top level item, it should say "Start event received" or something like that.