User-Decision COMPLETED buti next step not executed
Hi Gurus,
I have a very strange problem when approving user-decision tasks in my workflow using FM SAP_WAPI_DECISION_COMPLETE.
SOMETIMES, the user-decision step becomes COMPLETED but the result in the workflow logs (SWI1) is blank and does not continue to the next steps of my workflow. I've done my research and checked everything (commit = X, SWU3, Task is General, etc..) but i still have not found any solution yet.
FYI: this does not happen all the time, most of the time the workflow works fine.
Based on SWWWIHEAD, the user ADSUSER(from WebDynpro) is the creator and the last one who updated the workflow instance.
Here's part of my code for your reference: (RFC - called by WebDynpro)
CALL FUNCTION 'SWL_GET_PROCESS_STEPLIST'
EXPORTING
wf_id = wi_id
with_techdetails = space
with_expansion = space
with_errors = space
TABLES
wfm_steplog = lt_wfm_steplog
EXCEPTIONS
workflow_does_not_exist = 1
error_while_reading_wfm_log = 2
OTHERS = 3.
DELETE lt_wfm_steplog WHERE wi_type NE 'W'.
CLEAR: wa_wfm_steplog, li_lines.
DESCRIBE TABLE lt_wfm_steplog LINES li_lines.
READ TABLE lt_wfm_steplog INTO wa_wfm_steplog INDEX li_lines.
IF in_pdf_flag = 'Y'. "Continue
ly_decision_key = '0001'.
ELSE. "Cancel
ly_decision_key = '0002'.
ENDIF.
IF NOT ly_decision_key IS INITIAL .
CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
EXPORTING
WORKITEM_ID = wa_wfm_steplog-wi_id
LANGUAGE = SY-LANGU
USER = SY-UNAME
DECISION_KEY = ly_decision_key
DO_COMMIT = 'X'
IMPORTING
RETURN_CODE = l_subrc.
Thanks in advance.
Regards,
Dexter
Hello Dexter,
Thanks for the reply.
I have tried running the BAPI through Automation Tools which we have. That is Process Runner.
With the help of this I was Approving the WorkFlow. But as i found the issue, so for trouble schooting this i had manually checked in SAP though SE37 t-code.
Below is the code of BAPI 'sap_wapi_decision_complete'
=====================================================================
FUNCTION sap_wapi_decision_complete.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(WORKITEM_ID) TYPE SWR_STRUCT-WORKITEMID
*" VALUE(LANGUAGE) LIKE SWR_STRUCT-WILANGUAGE DEFAULT SY-LANGU
*" VALUE(USER) TYPE SYUNAME DEFAULT SY-UNAME
*" VALUE(DECISION_KEY) TYPE SWR_DECIKEY
*" VALUE(DO_COMMIT) TYPE XFELD DEFAULT 'X'
*" EXPORTING
*" VALUE(RETURN_CODE) LIKE SY-SUBRC
*" VALUE(NEW_STATUS) TYPE SWW_WISTAT
*" TABLES
*" MESSAGE_LINES STRUCTURE SWR_MESSAG OPTIONAL
*" MESSAGE_STRUCT STRUCTURE SWR_MSTRUC OPTIONAL
DATA: lh_msg TYPE REF TO cl_swf_utl_wapi_message,
lv_excp TYPE REF TO cx_swf_ifs_exception,
funcname TYPE funcname VALUE 'SAP_WAPI_DECISION_COMPLETE',
lv_wi_handle TYPE REF TO if_swf_run_wim_internal,
ls_t100msg TYPE swf_t100ms,
lv_handle TYPE sytabix,
lh_wapi TYPE REF TO if_swf_utl_wapi_framework,
ls_swwwihead TYPE swwwihead,
l_nodetype TYPE swd_nodetp,
lt_alternatives TYPE swr_decialts OCCURS 0 WITH HEADER LINE.
DATA: lt_cont TYPE swr_cont OCCURS 0 WITH HEADER LINE.
DATA: lh_params TYPE REF TO if_swf_ifs_parameter_container.
DATA: lh_trc_data TYPE REF TO if_swf_cnt_container.
DATA: lt_message_lines TYPE sapi_msg_lines.
DATA: lt_message_struct TYPE sapi_msg_struc.
*- startup framework
lh_wapi = cl_swf_utl_wapi_framework=>create( im_language = language ).
lh_msg = lh_wapi->get_message_object( ).
lh_params = lh_wapi->get_parameter_container( ).
CALL METHOD lh_wapi->set_commit_control( im_commit = do_commit ).
TRY.
CALL METHOD lh_params->set
EXPORTING
name = lh_wapi->c_workitem_id
value = workitem_id.
CATCH cx_swf_cnt_container .
ENDTRY.
lv_handle = lh_wapi->register_function( im_function = funcname
im_parameters = lh_params ).
*~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
IF lh_wapi->m_trace_handle IS BOUND.
TRY.
lh_trc_data = lh_wapi->get_initial_trace_data( ).
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'WORKITEM_ID'
value = workitem_id.
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'LANGUAGE'
value = language.
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'USER'
value = user.
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'DECISION_KEY'
value = decision_key.
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'DO_COMMIT'
value = do_commit.
CALL METHOD lh_wapi->write_trace
EXPORTING
im_evt = swwtr_api_init
im_data = lh_trc_data.
CATCH cx_swf_ifs_exception. "#EC NO_HANDLER
ENDTRY.
ENDIF.
*~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
TRY.
*- function valid (allowed)
IF lv_handle LE 0.
lv_excp = lh_wapi->get_last_exception( ).
return_code = 900.
RAISE EXCEPTION lv_excp.
ENDIF.
*- get properties
CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
EXPORTING
im_wiid = workitem_id
RECEIVING
re_instance = lv_wi_handle.
* is it a decision at all?
MOVE-CORRESPONDING lv_wi_handle->m_sww_wihead TO ls_swwwihead.
CALL METHOD cl_swf_run_workitem_compatible=>get_def_guid_structure
EXPORTING
im_header = ls_swwwihead
IMPORTING
ex_nodetype = l_nodetype.
IF l_nodetype <> swfco_wd_decision.
return_code = 2.
ls_t100msg-msgid = 'SWR'.
ls_t100msg-msgty = 'E'.
ls_t100msg-msgno = 205.
ls_t100msg-msgv1 = workitem_id.
RAISE EXCEPTION TYPE cx_swf_run_wim
EXPORTING t100_msg = ls_t100msg
wi_id = workitem_id.
ENDIF.
*- get texts
CALL FUNCTION 'SWU_GET_DECISION_TEXT_TITLE'
EXPORTING
language = language
wiid = workitem_id
TABLES
decision_text = lt_alternatives[]
EXCEPTIONS
node_not_found = 1
text_not_found = 2
workflow_not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
return_code = 2.
ls_t100msg-msgid = 'SWR'.
ls_t100msg-msgty = 'E'.
ls_t100msg-msgno = 206.
ls_t100msg-msgv1 = workitem_id.
RAISE EXCEPTION TYPE cx_swf_run_wim
EXPORTING t100_msg = ls_t100msg
wi_id = workitem_id.
ENDIF.
*- check alternative id
READ TABLE lt_alternatives WITH KEY altkey = decision_key.
IF sy-subrc <> 0.
return_code = 3.
ls_t100msg-msgid = 'SWR'.
ls_t100msg-msgty = 'E'.
ls_t100msg-msgno = 207.
ls_t100msg-msgv1 = workitem_id.
ls_t100msg-msgv2 = decision_key.
RAISE EXCEPTION TYPE cx_swf_run_wim
EXPORTING t100_msg = ls_t100msg
wi_id = workitem_id.
ENDIF.
CATCH cx_swf_ifs_exception INTO lv_excp.
IF return_code IS INITIAL.
return_code = 1.
ENDIF.
CALL METHOD lh_msg->set_exception_object( im_excp = lv_excp ).
*- set export
message_lines[] = lh_msg->get_message_lines( ).
message_struct[] = lh_msg->get_message_struct( ).
EXIT.
ENDTRY.
*- unregister to framework
CALL METHOD lh_wapi->unregister( lv_handle ).
*- complete decision item
lt_cont-element = swfco_wi_result_const.
lt_cont-value = decision_key.
APPEND lt_cont.
lt_cont-element = swfco_om_result_const.
lt_cont-value = decision_key.
APPEND lt_cont.
CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE'
EXPORTING
workitem_id = workitem_id
actual_agent = user
language = language
do_commit = do_commit
IMPORTING
return_code = return_code
new_status = new_status
TABLES
simple_container = lt_cont[]
message_lines = message_lines
message_struct = message_struct.
*~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
IF lh_wapi->m_trace_handle IS BOUND.
TRY.
lh_trc_data = lh_wapi->get_initial_trace_data( ).
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'RETURN_CODE'
value = return_code.
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'NEW_STATUS'
value = new_status.
lt_message_lines = message_lines[].
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'MESSAGE_LINES'
value = lt_message_lines.
lt_message_struct = message_struct[].
CALL METHOD lh_trc_data->element_set
EXPORTING
name = 'MESSAGE_STRUCT'
value = lt_message_struct.
CALL METHOD lh_wapi->write_trace
EXPORTING
im_evt = swwtr_api_result
im_data = lh_trc_data.
CATCH cx_swf_ifs_exception. "#EC NO_HANDLER
ENDTRY.
ENDIF.
*~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
ENDFUNCTION.
========================================================================
When I pass all the data through Process Runner Program and check in SAP manually it look like below in SAP
Kindly check the above screen shot and Help me in this regard.
Thanks,
Srikanth
Similar Messages
-
ERROR: Module load completed but symbols could not be loaded for Adobe AIR.dll
Does anyone know what causes this error? The application installed on my machine is using Adobe Air.dll version 2.0.3.13070
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(2b84.2908): Application hang - code cfffffff (first/second chance not available)
eax=00000000 ebx=05105dbc ecx=0c013503 edx=00002b84 esi=77f15b70 edi=00000002
eip=00a68972 esp=0012e03c ebp=00000000 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00040246
Unable to load image c:\Program Files\Common Files\Adobe AIR\Versions\1.0\Adobe AIR.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for Adobe AIR.dll
*** ERROR: Module load completed but symbols could not be loaded for Adobe AIR.dll
Adobe_AIR+0x58972:
00a68972 8bec mov ebp,espHi,
Check weather its right path or not.Even check the call interface,weather you are giving the right one or not.
Regards,
Srikanth -
I have a problem with Family Sharing on iphone 6+ (ios 8.1). Set up was complete but it does not show purchases on my phone or my wife's. Can any help me? Worked on my iPhone 5.
Hello, kinsnite.
Thank you for visiting Apple Support Communities.
Here is an article that I would recommend going through when experiencing this issue.
If you don't see your family's shared content
http://support.apple.com/kb/TS5449
Cheers,
Jason H. -
Hello Experts,
I am facing stage issue with PI Server,when i am executing scenario it showing black/white flag in MONI,my mapping part/development perfect.
but its not giving target pay load.Pipeline steps also not executing.
its new PI 7.1 server,do i need to configure any settings??
any help highly appreciated.
Regards,
JamesIn the border level please use below steps to check if you Integration Engine Configuration is as per requirements
Logon to PI
Use transaction SXMB_ADM
Choose Integration Engine Configuration
Ensure Role of Business System set to 'Integration Server'
Ensure Corresponding Integ. Server set to http://<hostname:<http port>/sap/xi/engine?type=entry
Then, click on 'Configuration' (pencil icon) button
Ensure RUNTIME (Category); IS_URL (Parameter) has currently value set to http://<hostname:<http port>/sap/xi/engine?type=entry
Please check if your INTEGRATION_DIRECTORY_HMI rfc working fine.
Regards
Sekhar -
BPM send step not executed in BPM (after Message split)
Hello everybody,
we use BPM:
We have a paralell Block which should send the rows of a multiline element. In SXMB_BPE_MONI the send step is not executed?
Any idea?
Thanks lot, regards MarioHI,
Go to SXMB_MONI_BPE->and check the workflow log (technical details).and go to SXI_CACHE and check the return code of the Integration Process. It should be zero. If not try to activate the same
If there is no error then go with like this-
Also check the Syntax in Integration Repository with F7. Change the IP and activate it. If there is no syntax errors.
Then reimport the IP into Directory and then test your scenario
Regards,
Moorthy -
Workflow step not executed...
Hi,
In my workflow requirement (for VA01), I want to record the status in a custom table as follows;
Approver id date time status
ABC Submitted for approval
ABC Approved (or) Rejected
So I have created a step called 'update custom status' after the step that sends email to the approver agent whose details stored in another custom table. Then I associated a task with this step which is bound to a custom class / method which has the logic to write the status to the custom table.
The issue is I do not see this step excuted. I checked in the log.
What can be wrong ?
Workflow steps are as follows;
1. Read the document's net value and store in a variable.
2. Read the custom table for agents list to whom the doc has to be sent for approval.
3. Send email for approval.
4. update custom status.
In the graphical view, I can see the update custom status step being called (Green link from previous step to this step) but after that no progress.
Am I missing passing some values ? Or is this step not giving any results ? Whats happening ?
Details on this update custom status step are as follows;
A custom task with terminating event set as _WORKITEM defined. (not synchronous)
A step of type activity defined and bound to the above task with binding done.. (what values should I pass to record the above needed details.)
In other words, how can I record the status in my custom table ?
thnksHi
I think its a background step. If yes, then make it foreground and debug and see what is the problem. Also check for short dumps and turn on the event trace and see the terminating event is getting triggered.
Vinoth -
I send out meeting notices from Ical to nonOutlook and Outlook users. The nonOutlook users respond and I see the green check mark in my Ical Meeting. The Outlook users also respond but I see a gray "?" as if they didn't respond. Has anyone had this issue and if so, is there a fix? I'm currently running OS X 10.10.2 Thank you in advance for any help you can provide.
SteveNo get this: I received a reply from another Mac user using iCal 4.0.4 showing "event accepeted" in the subject. But my iCal 5.0 will NOT recognize his acceptance. What is going on?
-
Archive Complete, but delete job not scheduled. Issue with Archives now
As someone tried at work to schedule archive/delete process, we are finding issues now.
We have job scheduled for Archive but not delete. The job is archiving the messages, Meanwhile because of the growing disk space, folks deleted the archive files.
Now Archive is Complete, but with out Deletion.
So how do we start from scratch again
Also if I understood correctly after deleting the infostructure the session goes into error/red light since we can no longer build the related data from the archives due to the missing infostructures right?Dear friend of XI,
I fully understand the issue; sure you cannot use RSXMB_DELETE_ARCHIVED_MESSAGES as the archive files have been deleted.
Tha paradigma of archving is that once the write phase is complete the deletion phse must complete at any rate. As this is impossible for the deleted archive files there is no way in the standard to erase the incomplete archive runs from management overview in SARA. In case you would like to clear the entries in SARA please open an OSS message such that SAP can take a look into the affected system and evaluate an individual solution for you.
irrespective of whether you clear the management entries in SARA you can simply run another archive session. Please note that the interfaces action (field ITFACTION) reflects the action to be taken for an indivirual message. It does not depict a state, in particular it does not mean that the message has been archived already. The interface action is determined right when the mesage enters the Integration Server. Contrary, the information on whether the message has been archived alteady (or still needs to) is stored in a different statuis field.
Best regards,
Harald Keimer -
I try to sync my nano - says "completed", but songs do not get transferred!
I have done a complete restore and tried to sync - still it says sync completed, but I still don't have any songs!
This Apple knowledge-base article may help address that issue.
Strange iPod behaviour. -
Stationpre​step not executing in stationcal​lback.seq?
Hi,
I did some examples to get more familiar with callbacks.
I'm not sure if there's a setting I'm not aware of or anything, but here's the scenario I have difficulty explaining.
I have a Process Model (PM) with an Entry Point containing one sequence call step calling PreUUT in CurrentFile.
There's also a sequence callback called PreUUT in the PM containing one message pop-up.
In the StationCallback.seq, I have enabled the StationPreStep Callback with a message pop-up in it.
There's also a sequence called PreUUT with one message pop-up.
When I start an execution on the EntryPoint by clicking "Run Start", this happens:
StationPreStepCallback (before SequenceCall)
[Enter PreUUT of StationCallback.seq]
Message pop-up is executed.
[Exit PreUUT of StationCallback.seq]
[Exit Entry Point]
How come there's no StationPreStepCallback executed before the Message pop-up? Shouldn't it be "Before the engine executes each step in any sequence file." like the TS reference manual indicates?
Thank you.
mat-pm is the process model I used
Attachments:
mat-pm.seq 6 KB
StationCallbacks.seq 2 KBHey Mat,
I downloaded the files that you uploaded, and I didn't not any steps in the StationCallbacks.seq. Also, are you making mat-pm.seq your station process model? If not, the PreUUT callback inside StationCallback.seq applies to the current station model instead. StationCallbacks.seq also needs to be located in <TestStand>\Components\User\Callbacks\Station\ folder for it to be called correctly. Lastly, are you using a blank sequence file to call the Start entry point, because calling the entry point from a stationcallback does not give the same behavior as calling the Start entry point from a normal sequence file. I hope this helps!
Best Regards,
Software Engineer
Jett R -
History and Next Step not working in UWL SAP MDM 5.5 SP6 Patch 2
Hi,
Im not able to send a record to other process step with other roles in a WF.
When USER 1 logs on its possible to send the record to the next process step where USER 2 is assigned. When USER 2 logs on, the user is not able to send it anywhere, the iView is empty.
Its the same problem when we press the history button. In the first step of the WF its possible to see history. In the second step the history iView is empty.
Any ideas?
BR
MichaelI've seen issues like this as well. There are a variety of issues that came out of the SP06 Patch 2 upgrade which effect the MDM workflow and Portal UWL. I would recommend checking out the latest hotfix as I think it resolves a lot of these problems. The latest build is 5.5.62.50 (5.5 SP06 Patch 2 Hotfix 4). They released four hotfixes within a month (I think) so my guess is they are aware of the issues with SP06.
-
I have completed the slide show i am making, but not sure what to do now. I want to burn it to a dvd, but not sure if i can do that from iphoto or do i need to export to imovie or idvd? If i need to export, will iphoto save a copy in iphoto? This may be really stupid, but I don't see an obvious way to save my slide show in iphoto. Please Help!
Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar. Select Size = Medium or Large.
Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
Follow this workflow to help assure the best quality video DVD:
Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option. This will separate the encoding process from the burn process.
To check the encoding mount the disk image, launch DVD Player and play it. If it plays OK with DVD Player the encoding is good.
Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality. Always use top quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailer like Amazon.com: ilife 09: Software or eBay.com. Why, because iDVD (and iWeb) was discontinued by Apple over a year ago.
Why iLife 09 instead of 11?
If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides themes from iDVD 5-7. The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them.
Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
This shows the iDVD contents in the iLife 09 disc via Pacifist:
You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
NOTE: If you're running iPhoto 9.5 the export options will be different.
OT -
Hi, I was told I didn't have Flash 7 when trying to see something online (which I am sure was incorrent to begin with) so I followed the provided link to download Flash version 11.5. The download completed without problems but Flash doesn't seem to work at all. I have uninstalled, reinstalled and restarted. I don't know what to try next, any help would be much appreciated!
Start here;
http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-mac.ht ml
Also, never, never follow links for flash, codecs or plug-ins of any kind from websites that throw up these warnings - there's a high chance of the link being to a malware site.
Always go directly to the vendor. -
Users are created but Roles are not Provisioned in the Target System
Hi,
It would be great if somebody would provided solution to my problem. The problem is when I try to create the Users in Identity Managment UI then the Users are created in the Target systems but the Roles are not provisioned to the Users.
In the provisioning job SetABAPRole&ProfileForUser,
It is says In the Error putNextEntry failed storing
Exception from Modify operation:com.sap.idm.ic.ToPassException: User does not exist
MSKEY 58437
Please note the When we create the User, the user is created however the Roles is not provisioned to the user.
Regards,
HakimHello Nits,
since this thread is from 2010 and the OP was logged on last in 2012 (as you can see in the profile), I don't think you'll get an answer here.
Please create a new thread to explain your problem (with version and SP numbers, logs etc). You can add a link to this thread to show, that the problem is similar.
Regards,
Steffi. -
I purchased "Pages" app from iTunes, downloaded it to computer where it shows up as an app, but although I have tried to sync it to my iPad many times, it won't appear as an app on my iPad.
connect your ipad to itunes and click on the ipad and go to its app tab on the list check if pages name is checked or not if not check it and try syncing again it will install the app
Maybe you are looking for
-
Hi Can anyone send me the link or configuration steps for dunning notices by email. Thanks in advance.
-
Adobe flash is installed, but firefox won't use it
I have flash 11.1 installed. It's icon appears in my app list,but firefox' add on list doesn't have it. How do I fix this?
-
VMWare/parallels do I need to buy a copy of Windows XP
Hi I am new to mac, love my mac so far, although some applications I use on my office pc are windows therefore I need to run windows on my mac too, quite like VMWare but I have researched and found I need to buy a copy of Windows XP too (cant use Vis
-
SC data updation in SRM and in the R/3
Hi I have few doubts regarding the updation of the shopping cart data to SRM and from SRM to R/3. 1) when we enter the data in the SC and press the "order" button , i know that the data is atored in the tables CRMD_ORDERADM_H and CRMD_ORDERADM_I (am
-
Lenovo Helix design flaw ?
I saw this device and got very interested, might almost say exited. I decided to take a deeper look, and was very disappointed. I saw that the USB port on the tablet, is on the same side with all other connectors. This means that when I connect the t