cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement for the FM 'SWW_WI_TO_OBJECT_FIND'

former_member242255
Active Contributor
0 Kudos
CALL FUNCTION 'SWW_WI_TO_OBJECT_FIND'
      EXPORTING
        existence_check_only = ''
        unfinished_wis_only  = ''
        logsys               = ''
        objtype              = 'BUS2009'
        objkey               = objkey
      IMPORTING
        wi_to_object_found   = wi_to_object_found
      TABLES
        workitem_list        = it_workitem_list.

    DESCRIBE TABLE it_workitem_list LINES c_wi_count.

    IF wi_to_object_found = 'X'.
      CLEAR top_wi_status.
      SORT it_workitem_list BY wi_cd wi_ct.
      LOOP AT it_workitem_list.
        IF it_workitem_list-wi_id = it_workitem_list-top_wi_id.
          wi_id = it_workitem_list-wi_id.
          wi_cruser = it_workitem_list-wi_cruser.
          top_wi_status = it_workitem_list-wi_stat.
          EXIT.
        ENDIF.
      ENDLOOP.

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Further more search lead me to ...

SWI_WORKITEMS_OF_OBJECT_GET replaces SWW_WI_TO_OBJECT_FIND; but missing a few additional check such as finding unfinished workitem etc...

Phalani2
Participant
0 Kudos

Hello,

You can use the function "SAP_WAPI_WORKITEMS_TO_OBJECT" as replacement to SWW_WI_TO_OBJECT_FIND. It works in my case.

0 Kudos

Further more search lead me to ...

SWI_WORKITEMS_OF_OBJECT_GET replaces SWW_WI_TO_OBJECT_FIND; but missing a few additional check such as finding unfinished workitem etc...

0 Kudos

Hi Srvan Kumar,

did you find the answer!? I am up against the same question.

Let me know, what did youfind.

Thanks,

Vasava

former_member242255
Active Contributor
0 Kudos

posted in General Forum