on 11-23-2009 11:18 AM
Hello Everyone,
I am using "SAP_WAPI_EXECUTE_WORKITEM" BAPI to Execute a Workitem in Webdynpro on Click of a Button. It is throwing the following Exception. I have no idea of why it is throwing this exception. Could you please help me in resolving this issue. I would appreciate your help.
A RAISE statement in the program "CL_GUI_CUSTOM_CONTAINER=======CP" raised the
exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior
program, processing was terminated.
This is the Trace in ST22.
Regards,
Gopal.
HI,
Is this BAPI related to SAPGUI....probably not for WDA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lekha,
Thanks a lot for your reply. How do I know that this BAPI is only for SAP GUI and not for WDA? Because, I have used a similar FM "SAP_WAPI_SET_WORKITEM_COMPLETD" and it is not throwing any exception and works fine.
Regards,
Gopal.
Edited by: Gopal on Nov 23, 2009 11:35 AM
Edited by: Gopal on Nov 23, 2009 11:35 AM
Check the documentation of that BAPI you can find it is for SAPGUI only.
A work item is executed using SAPGUI, which necessitates a (remote) function call with dialog.
The others SAP_WAPI_SET_WORKITEM_STATUS and SAP_WAPI_SET_WORKITEM_COMPLETED are just returning the messages..
Edited by: Lekha on Nov 23, 2009 5:10 PM
>What should I do if I want to Execute a Workitem in WD?
This really depends that what are you trying to achieve. What kind of work item are you trying to execute and how? Can you tell the business object and its method? You should proabably continue this discussion in the workflow forum, in which you have exactly the same question.
Regards,
Karri
SAP_WAPI_EXECUTE_WORKITEM isn't a BAPI. Notice the name doesn't start with BAPI. Not every function module is considered a BAPI, nor safe to call from WDA or other non-SAPGUI frontends. The first line of documentation in this function module states the following:
A work item is executed using SAPGUI, which necessitates a (remote) function call with dialog.
Since it says right in the documentation that this uses the SAPGUI, then it really isn't going to be compatible with Web Dynpro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.