10-13-2007 7:38 AM
Hi Sapgurus,
I am currently working on Workflow WS20000317, basically my requirement is that when the notification is created i have to intimate the user that a notification has been generated , but i don't know how to configure this workflow.
Could anybody please help me out so that i can complete my scenario.
Well i am starting a workflow also tha ti have created tru the user exit but it is giving me this dumb.
IF lh_transaction IS NOT BOUND.
lh_transaction = cl_swf_utl_transaction=>create( im_commit_work_control = l_do_c
l_transaction_created = 'X'.
ENDIF.
IF do_commit EQ 'W'.
CALL METHOD lh_transaction->set_trfc_executed( ).
ENDIF.
l_enqueue_owner = l_fbname.
CALL METHOD cl_swf_run_transaction_manager=>get_instance
EXPORTING
im_transaction = lh_transaction
im_enqueue_owner = l_enqueue_owner
RECEIVING
re_instance = lh_txmgr.
CALL METHOD cl_swf_run_wim_factory=>create_via_api
EXPORTING
im_context = l_crt_ctx
im_parameter = ls_wi_create
im_tx = lh_txmgr
im_language = language
RECEIVING
re_wi_handle = lh_wi_handle.
CALL METHOD lh_txmgr->save( ).
IF l_do_commit EQ 'X'.
COMMIT WORK.
ENDIF.
CATCH cx_swf_run_wim INTO l_excp.
IF l_transaction_created EQ 'X'.
CALL METHOD lh_transaction->remove( ).
ENDIF.
lh_alm_context = cl_swf_alm_factory=>create_context(
im_category = cl_swf_alm_factory=>c_cat_wi_create
im_system_type = cl_swf_alm_factory=>c_system_webflow ).
CALL METHOD lh_alm_context->raise_exception( l_excp ).
MESSAGE ID l_excp->t100_msg-msgid
TYPE l_excp->t100_msg-msgty
NUMBER l_excp->t100_msg-msgno
WITH l_excp->t100_msg-msgv1 l_excp->t100_msg-msgv2
l_excp->t100_msg-msgv3 l_excp->t100_msg-msgv4
RAISING id_not_created.
ENDTRY.
Thanks and Regards,
Rachti khanna
Message was edited by:
Rachit Khanna
10-13-2007 7:41 AM
Hi,
Set the <b>priority one</b> to that particular step.
So when the Notification is sent the Pop-up message will Intimate to the User.
Thanks.
10-13-2007 9:41 AM
Hi ,
How could i set the priority of a particular step , and there are two container elements
&Maint. Notification.Outstanding Task(s)& or
&Maint. Notification.Outstanding Task(s)&
These are used in condition step now how can i set its value because i m not able to see them when i execute my workflow.
Thanks and Regards,
Rachit Khanna
10-13-2007 9:50 AM
Hi,
Go to miscellaneous Tab in your step type. Here you can change the priority as 1.
Thanks.
10-13-2007 10:24 AM
Hi,
What about the container element values how can i set it the one i have told you .
I m not able to understand how to configure it i m totally confused please guide me.
I tried to run the workflow from my user exit using SWW_WI_START_SIMPLE but it is giving me this dumb
ENDIF.
*- create transaction and force commit work
lh_transaction = cl_swf_utl_transaction=>get( ).
IF lh_transaction IS NOT BOUND.
lh_transaction = cl_swf_utl_transaction=>create( im_commit_work_control = l_do_commi
l_transaction_created = 'X'.
ENDIF.
IF do_commit EQ 'W'.
CALL METHOD lh_transaction->set_trfc_executed( ).
ENDIF.
l_enqueue_owner = l_fbname.
CALL METHOD cl_swf_run_transaction_manager=>get_instance
EXPORTING
im_transaction = lh_transaction
im_enqueue_owner = l_enqueue_owner
RECEIVING
re_instance = lh_txmgr.
CALL METHOD cl_swf_run_wim_factory=>create_via_api
EXPORTING
im_context = l_crt_ctx
im_parameter = ls_wi_create
im_tx = lh_txmgr
im_language = language
RECEIVING
re_wi_handle = lh_wi_handle.
CALL METHOD lh_txmgr->save( ).
IF l_do_commit EQ 'X'.
COMMIT WORK.
ENDIF.
CATCH cx_swf_run_wim INTO l_excp.
IF l_transaction_created EQ 'X'.
CALL METHOD lh_transaction->remove( ).
ENDIF.
lh_alm_context = cl_swf_alm_factory=>create_context(
im_category = cl_swf_alm_factory=>c_cat_wi_create
im_system_type = cl_swf_alm_factory=>c_system_webflow ).
CALL METHOD lh_alm_context->raise_exception( l_excp ).
MESSAGE ID l_excp->t100_msg-msgid
TYPE l_excp->t100_msg-msgty
NUMBER l_excp->t100_msg-msgno
WITH l_excp->t100_msg-msgv1 l_excp->t100_msg-msgv2
l_excp->t10
RAISING id_not_created.
ENDTRY.
-
Could you please tell me what is the mistake here
Thanks for your reply.
Message was edited by:
Rachit Khanna