SAP Function Modules

TMS_DOCFLOW_UI SAP Function module - Display TM Document FLow







TMS_DOCFLOW_UI 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 TMS_DOCFLOW_UI into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TMS_DOCFLOW_UI
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TMS_DOCFLOW_UI - TMS DOCFLOW UI





CALL FUNCTION 'TMS_DOCFLOW_UI' "Display TM Document FLow
  EXPORTING
    iv_doc_type =               " tms_doc_type  Document Type
    iv_doc_nr =                 " tms_doc_nr    TM-ERP-Integration: Document Number
*   iv_item =                   " tms_doc_item  TM-ERP-Integration: Document Item
*   it_docflow_data =           " tms_t_doc_flow_scr  TM-ERP-Integration: Document flow hierarchy on the UI
    .  "  TMS_DOCFLOW_UI

ABAP code example for Function Module TMS_DOCFLOW_UI





The ABAP code below is a full code listing to execute function module TMS_DOCFLOW_UI 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_iv_doc_type) = 'Check type of data required'.
DATA(ld_iv_doc_nr) = 'Check type of data required'.
DATA(ld_iv_item) = 'Check type of data required'.
DATA(ld_it_docflow_data) = 'Check type of data required'. . CALL FUNCTION 'TMS_DOCFLOW_UI' EXPORTING iv_doc_type = ld_iv_doc_type iv_doc_nr = ld_iv_doc_nr * iv_item = ld_iv_item * it_docflow_data = ld_it_docflow_data . " TMS_DOCFLOW_UI
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_iv_doc_type  TYPE TMS_DOC_TYPE ,
ld_iv_doc_nr  TYPE TMS_DOC_NR ,
ld_iv_item  TYPE TMS_DOC_ITEM ,
ld_it_docflow_data  TYPE TMS_T_DOC_FLOW_SCR .

ld_iv_doc_type = 'Check type of data required'.
ld_iv_doc_nr = 'Check type of data required'.
ld_iv_item = 'Check type of data required'.
ld_it_docflow_data = 'Check type of data required'.

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 TMS_DOCFLOW_UI or its description.