on 01-08-2015 8:21 AM
Hi,
I'm using FM SAP_WAPI_WORKITEMS_TO_OBJECT in a check function module in order to find eventually other workflows for an object. But deeply in this function module a commit work is executed and this in not allowed in the check function module - thus I get a dump.
Can anyone come up with another way of finding running workflows for an object?
Thanks,
Claus.
You could read the data directly from table SWW_WI2OBJ.
Also, take a look to transaction SWI6. Perhaps you can get an idea.
Actually I am little bit surprised about your problem. I think it is quite normal approach to use that function in check function module (without problems). Refer to this post:
Regards,
Karri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
Yes, I am surprised too. Because I have used this approach several times. And actually the issue is not persistant - sometimes a dump - sometimes not...
As you can see below, reading from my check FM and up the issue occours in the top of the list in FM SWD_CHECK_ACTIVE_VERSION where there is a call to FM DB_COMMIT.
Best regards,
Claus.
21 FUNCTION SAPLSYDB LSYDBU27 7
DB_COMMIT
20 FUNCTION SAPLSWDO_RUNTIME LSWDO_RUNTIMEU01 251
SWD_CHECK_ACTIVE_VERSION
19 FUNCTION SAPLRHWA LRHWAU02 109
RH_GET_WFD_ID
18 FUNCTION SAPLRHWF_RUNTIME LRHWF_RUNTIMEU01 480
RH_TASK_ATTRIBUTES_RUNTIME
17 METHOD CL_SWF_RUN_P_HEAD=============CP CL_SWF_RUN_P_HEAD=============CM00C 13
CL_SWF_RUN_P_HEAD=>GET_TASK_TEXT
16 METHOD CL_SWF_RUN_P_HEAD=============CP CL_SWF_RUN_P_HEAD=============CM003 130
CL_SWF_RUN_P_HEAD=>IF_SWF_REP_HEADER_SELECTION~READ
15 METHOD CL_SWF_REP_MANAGER============CP CL_SWF_REP_MANAGER============CM003 47
CL_SWF_REP_MANAGER=>IF_SWF_REP_WORKITEM_SELECTION~READ
14 METHOD CL_SWF_REP_ITEM2OBJECT========CP CL_SWF_REP_ITEM2OBJECT========CM00M 4
CL_SWF_REP_ITEM2OBJECT=>CONVERT_TO_WI2HDR
13 METHOD CL_SWF_REP_ITEM2OBJECT========CP CL_SWF_REP_ITEM2OBJECT========CM00N 5
CL_SWF_REP_ITEM2OBJECT=>GET_WI2OBJ_WIHDR
12 METHOD CL_SWF_REP_ITEM2OBJECT========CP CL_SWF_REP_ITEM2OBJECT========CM00D 30
CL_SWF_REP_ITEM2OBJECT=>READ
11 FUNCTION SAPLSWRI LSWRIU01 149
SAP_WAPI_WORKITEMS_TO_OBJECT
10 FUNCTION SAPLZSDWF01 LZSDWF01U06 157
Z_SD_WF_CHECK_FM_CREDIT
Perhaps you have something "wrong" in the development (in your workflow template perhaps)? I assume this happens only in development? Isn't SWD_CHECK_ACTIVE_VERSION for checking the active workflow template version? What if you generated a new version for your template?
Debugging could tell you a lot, but I guess it is difficult if the problem doesn't appear always.
Regards,
Karri
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.