Skip to Content

Workflow sysid in container does not contain the system id

Hello Experts,

I have a problem in the workflow where the sysid in the container contains a wrong value instead of the System ID.&SYSID& is giving the wrong value in the workitem text

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 14, 2017 at 02:28 PM

    Sorry that your workflow doesn't work any more, and OK about the standard code, but I don't know if something has changed between release X-1 and release X. Why don't you try %SYSID% ? If you want to analyze the current situation, please tell us how you initialize the element SYSID in your workflow container ?

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 14, 2017 at 07:25 AM

    &SYSID& is not a special value, it just refers to a custom element of the workflow container, i.e. you need to initialize it with the value you want.

    Instead, you probably want to use the expression %SYSID%.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Sandra,

      I have the right ID getting displayed in the lower environments and the wrong one in the higher environments. this is my workitem text. The value is as desired in the lower environments and in the higher environments it is not right


      The method for this task is using the below code

      SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

      FORM get_witext USING im_language TYPE sylangu
      im_wi_handle TYPE REF TO if_swf_run_wim_internal
      CHANGING ex_witext TYPE string.
      DATA: ls_swwwihead TYPE swwwihead.
      DATA: lv_cnt TYPE REF TO if_swf_cnt_container.
      DATA: l_witext TYPE string.
      DATA: lh_properties TYPE REF TO cl_wapi_system_properties.
      DATA: l_long_title TYPE xfeld.

      lh_properties = cl_wapi_system_properties=>get_instance( ).
      l_long_title = lh_properties->get_property( cl_wapi_system_properties=>c_long_mail_title ).
      IF l_long_title EQ 'X'.

      lv_cnt = im_wi_handle->get_wi_container( ).
      MOVE-CORRESPONDING im_wi_handle->m_sww_wihead TO ls_swwwihead.
      *- we have to ensure that the text will ne regenerated. Therefore the requested language
      *- must be not equal to the current workitem language
      IF ls_swwwihead-wi_lang EQ im_language.
      ls_swwwihead-wi_lang = space.
      CALL METHOD cl_swf_utl_workitem_text=>translate
      im_langu = im_language
      im_cnt_handle = lv_cnt
      ex_witext = l_witext
      ch_workitem = ls_swwwihead.
      IF l_witext IS NOT INITIAL.
      ex_witext = l_witext.
      ex_witext = ls_swwwihead-wi_text.
      CATCH cx_swf_run_wim.
      ex_witext = im_wi_handle->m_sww_wihead-wi_text.
      CALL METHOD im_wi_handle->get_witext
      im_language = im_language
      re_witext = ex_witext.

      ENDFORM. "get_witext


      Also there has been a container operation to set the same in the step above.

      wf.png (22.1 kB)