SAP Function Modules

CHECK_OBJECT_IN_DISCONTINUE_WF SAP Function module







CHECK_OBJECT_IN_DISCONTINUE_WF is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CHECK_OBJECT_IN_DISCONTINUE_WF into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: WSO7
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM CHECK_OBJECT_IN_DISCONTINUE_WF - CHECK OBJECT IN DISCONTINUE WF





CALL FUNCTION 'CHECK_OBJECT_IN_DISCONTINUE_WF' "
  EXPORTING
    pi_matnr =                  " mara-matnr
*   pi_werks =                  " marc-werks
*   pi_infnr =                  " eina-infnr
*   pi_ekorg =                  " eine-ekorg
    pi_objsys =                 " sww_contob-logsys
*   unfinished_wis_only = 'X'   " swwcommit-delayflag
  IMPORTING
    pe_workflow_found =         " wsol_matnr-kzkorrekt
    pe_glob_workflow =          " wsol_matnr-kzkorrekt
* TABLES
*   wis_using_object =          " swwwihead
*   container_wi_ids =          " sww_contob
    .  "  CHECK_OBJECT_IN_DISCONTINUE_WF

ABAP code example for Function Module CHECK_OBJECT_IN_DISCONTINUE_WF





The ABAP code below is a full code listing to execute function module CHECK_OBJECT_IN_DISCONTINUE_WF including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_pe_workflow_found  TYPE WSOL_MATNR-KZKORREKT ,
ld_pe_glob_workflow  TYPE WSOL_MATNR-KZKORREKT ,
it_wis_using_object  TYPE STANDARD TABLE OF SWWWIHEAD,"TABLES PARAM
wa_wis_using_object  LIKE LINE OF it_wis_using_object ,
it_container_wi_ids  TYPE STANDARD TABLE OF SWW_CONTOB,"TABLES PARAM
wa_container_wi_ids  LIKE LINE OF it_container_wi_ids .


SELECT single MATNR
FROM MARA
INTO @DATA(ld_pi_matnr).


SELECT single WERKS
FROM MARC
INTO @DATA(ld_pi_werks).


SELECT single INFNR
FROM EINA
INTO @DATA(ld_pi_infnr).


SELECT single EKORG
FROM EINE
INTO @DATA(ld_pi_ekorg).


SELECT single LOGSYS
FROM SWW_CONTOB
INTO @DATA(ld_pi_objsys).


DATA(ld_unfinished_wis_only) = some text here

"populate fields of struture and append to itab
append wa_wis_using_object to it_wis_using_object.

"populate fields of struture and append to itab
append wa_container_wi_ids to it_container_wi_ids. . CALL FUNCTION 'CHECK_OBJECT_IN_DISCONTINUE_WF' EXPORTING pi_matnr = ld_pi_matnr * pi_werks = ld_pi_werks * pi_infnr = ld_pi_infnr * pi_ekorg = ld_pi_ekorg pi_objsys = ld_pi_objsys * unfinished_wis_only = ld_unfinished_wis_only IMPORTING pe_workflow_found = ld_pe_workflow_found pe_glob_workflow = ld_pe_glob_workflow * TABLES * wis_using_object = it_wis_using_object * container_wi_ids = it_container_wi_ids . " CHECK_OBJECT_IN_DISCONTINUE_WF
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pe_workflow_found  TYPE WSOL_MATNR-KZKORREKT ,
ld_pi_matnr  TYPE MARA-MATNR ,
it_wis_using_object  TYPE STANDARD TABLE OF SWWWIHEAD ,
wa_wis_using_object  LIKE LINE OF it_wis_using_object,
ld_pe_glob_workflow  TYPE WSOL_MATNR-KZKORREKT ,
ld_pi_werks  TYPE MARC-WERKS ,
it_container_wi_ids  TYPE STANDARD TABLE OF SWW_CONTOB ,
wa_container_wi_ids  LIKE LINE OF it_container_wi_ids,
ld_pi_infnr  TYPE EINA-INFNR ,
ld_pi_ekorg  TYPE EINE-EKORG ,
ld_pi_objsys  TYPE SWW_CONTOB-LOGSYS ,
ld_unfinished_wis_only  TYPE SWWCOMMIT-DELAYFLAG .


SELECT single MATNR
FROM MARA
INTO ld_pi_matnr.


"populate fields of struture and append to itab
append wa_wis_using_object to it_wis_using_object.

SELECT single WERKS
FROM MARC
INTO ld_pi_werks.


"populate fields of struture and append to itab
append wa_container_wi_ids to it_container_wi_ids.

SELECT single INFNR
FROM EINA
INTO ld_pi_infnr.


SELECT single EKORG
FROM EINE
INTO ld_pi_ekorg.


SELECT single LOGSYS
FROM SWW_CONTOB
INTO ld_pi_objsys.


ld_unfinished_wis_only = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CHECK_OBJECT_IN_DISCONTINUE_WF or its description.