on 04-18-2017 2:35 PM
Hi,
am working on requirement where I have to update few things in SAP, when a mail is sent from Outlook to a SAP email-id (Inbound).
I happened to get a blog on 'Offline Approval' which does somewhat similar thing.
But in this blog to read workitem id 'after creation' for a decision step which is handled thru a Program exit where there is a code as below:
CALL METHOD wi_context->get_workitem_id RECEIVING re_workitem = l_wi_id.
But when I use this, I get an exception where I do not see the workitem id being captured in 'l_wi_id'.
Error that I get CX_SY_REF_IS_INITIAL for CX_SY_NO_HANDLER.
My question is what must have gone wrong in this code or is there any other way to get workitem id.
Thanks
Aditya V
Hi,
is there a way that I could debug the exit-code, like whenever I run the WF, it should go to the code.
I know if I run WF, it addresses WF-BATCH which is a SYSTEM user and break-point that I set is from DIALOG user.
Thanks,
Aditya V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A infinite loop , after that you can debug the session from sm50.
Thanks,Pavan
hi
anyone tried to capture 'workitem id' of a workflow step thru a program-exit?
I tried using 'get_workitem_id' method but it isnt capturing any workitem. any inputs highly appreciated.
Thanks,
Aditya V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi AV,
I hope you already did the below checks
Thanks, Pavan
Hi PB,
Point-1, yes included in WF definition.
Point-2, yes wi_context referring to type IF_WAPI_WORKITEM_CONTEXT.
Point-3, status is in READY
Point-4, tried the CL_SWF too, no luck.
Point-5, can you elaborate please, do you mean I should use this attribute inside the method 'after_wi_creation' that am using?
Thanks,
Aditya V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.