SAP Reports / Programs

WF_DOC SAP ABAP Report - Program for Object Type WF_DOC : WF Document







WF_DOC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter WF_DOC into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT WF_DOC. "Basic submit
SUBMIT WF_DOC AND RETURN. "Return to original report after report execution complete
SUBMIT WF_DOC VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Program for Object Type WF_DOC : WF Document
Text Symbol: D01 =
Text Symbol: E01 =
Text Symbol: I01 = Document


INCLUDES used within this REPORT WF_DOC

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SWUO_OPEN_DOCUMENT_API CALL FUNCTION 'SWUO_OPEN_DOCUMENT_API' EXPORTING LOIO_ID = LOIO READONLY = ' ' IMPORTING PROPERTIES = PROPERTIES EXCEPTIONS USER_CANCELLED = 1 OPEN_FAILED = 2 OTHERS = 3.

SWE_WI_GET_FROM_REQUESTER CALL FUNCTION 'SWE_WI_GET_FROM_REQUESTER' IMPORTING REQUESTER_WORKITEMID = workitem.

SWUO_GET_DOCUMENTS_API CALL FUNCTION 'SWUO_GET_DOCUMENTS_API' EXPORTING * WF_ID_DEF = WF_ID_INST = WF_ID_INST WF_STEP = WF_WIID TABLES properties = lt_prop EXCEPTIONS OTHERS = 99.

SWUO_CREATE_DOCUMENT_API CALL FUNCTION 'SWUO_CREATE_DOCUMENT_API' EXPORTING WF_ID_DEF = WF_ID_DEF WF_VERSION = WF_VERSION WF_ID_INST = WF_ID_INST WF_STEP = WF_WIID STARTUP_MACRO = STARTUP_MACRO IMPORTING PROPERTIES = PROPERTIES TABLES LOIO_TEMPLATE = LT_LOIO EXCEPTIONS USER_CANCELLED = 01 OTHERS = 99.

SWUO_OPEN_DOCUMENT_API CALL FUNCTION 'SWUO_OPEN_DOCUMENT_API' EXPORTING loio_id = loio IMPORTING PROPERTIES = properties EXCEPTIONS USER_CANCELLED = 01 OPEN_FAILED = 11 OTHERS = 99.

SWUO_OPEN_DOCUMENT_API CALL FUNCTION 'SWUO_OPEN_DOCUMENT_API' EXPORTING LOIO_ID = LOIO READONLY = 'X' OPEN_INPLACE = inplaced *" EXPORTING *" VALUE(PROPERTIES) LIKE SWUOPROP STRUCTURE SWUOPROP EXCEPTIONS USER_CANCELLED = 1 OPEN_FAILED = 2 OTHERS = 3.

SWUO_GET_PROPERTIES_API CALL FUNCTION 'SWUO_GET_PROPERTIES_API' EXPORTING LOIO_ID = LOIO IMPORTING PROPERTIES = PROPERTIES EXCEPTIONS OBJ_NOT_SPECIFIED = 1 LOAD_FAILED = 2 OTHERS = 3 .

SWUO_PRINT_DOCUMENT_API CALL FUNCTION 'SWUO_PRINT_DOCUMENT_API' EXPORTING LOIO_ID = LOIO PROMPT_USER = PROMPT_USER * IMPORTING * PROPERTIES = EXCEPTIONS OTHERS = 99.

SWUO_DELETE_DOCUMENT_API CALL FUNCTION 'SWUO_DELETE_DOCUMENT_API' EXPORTING OBJECT_ID = LOIO PROMPT_USER = PROMPT_USER EXCEPTIONS CANCELLED = 1 OTHERS = 99.

SWUO_RENAME_DOCUMENT_API CALL FUNCTION 'SWUO_RENAME_DOCUMENT_API' EXPORTING OBJECT_ID = L_LOIO NEW_NAME = L_NEW_NAME IMPORTING PROPERTIES = L_PROPERTIES EXCEPTIONS CANCELLED = 1 OTHERS = 99.

SWUO_GET_DOCUMENT_CONTENT CALL FUNCTION 'SWUO_GET_DOCUMENT_CONTENT' EXPORTING loio_id = loio IMPORTING PROPERTIES = l_properties CONTENT_TAB_SO = lt_content CONTENT_SIZE = l_size EXCEPTIONS OTHERS = 99.

SDOK_FILE_NAME_EXTENSION_GET CALL FUNCTION 'SDOK_FILE_NAME_EXTENSION_GET' EXPORTING MIMETYPE = l_mime IMPORTING EXTENSION = l_ext.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name WF_DOC or its description.