Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Workflow WS20000317 - Problem please help

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question