SAP Function SIW_STRUCT_OBJECT_PRINT -

Parameter Reference Type Length Default Optional Text
STRUCTOBJECT SDOKOBJECT u 42

Parameter Reference Type Length Text
ACTION SYST-UCOMM C 70 Screens, Function Code Triggered by PAI
ERROR_MSG IWERRORMSG u 224 IWB: Message passing structure

Parameter Reference Length Optional Text
BAD_OBJECTS IWERROBJCT 266 X
CONTEXT SDOKPROPTY 89 SDOK: Object Attribute, Name and Feature
PARTSTRUCT SDOKHIER 54 X SDOK: Book structure

Functionality
This function module compiles the info objects referenced in a structurein an MS Word document in
INCLUDE DESTINATION OBJECT DOKU ID TX
For this purpose it calls the module 'STRUCT_OBJECT_PRINT' locally or inrespective KW system. As result, the last module opens the above-mentioned MS-Word document and user should start printing manuelly.
The dialog for selecting folder for temporal storing file is raised.
The dialog, where parameters for printing should be inserted, is raised.The dialog is varied in dependence on area.

Example
*** prepare structure information
loop at nodes_of_sub_str.
move-corresponding nodes_of_sub_str to contents.
if sy-tabix = 1.
offset = nodes_of_sub_str-node_level - 1.
endif.
contents-node_level = contents-node_level - offset.
append contents.
endloop.
*** print substructure
CALL FUNCTION 'SIW_STRUCT_OBJECT_PRINT'
EXPORTING
STRUCTOBJECT = p_structure_object
IMPORTING
ERR_MSG = error_msg
ACTION = action
TABLES
CONTEXT = p_context
PARTSTRUCT = contents
BAD_OBJECTS = bad_objects.

Notes
If the system asks about breaking links, it is better to perform itthrouth the menu: Edit->Links. Otherwise, when received Word-document iscopied from temporally place (...\iwbprint\) to another one, allgraphics dissapear.
The system can operate only 1 selected node. This node should be astructure, otherwise error message 312(sd): 'No valid entry chosen.'appears.
Function module 'STRUCT_OBJECT_PRINT' operates the following'requested_properties': 'DESCRIPTION', 'DOCUMENT_FORMAT', 'LANGUAGE','IWB_TECH_NAME' to receive KXF-info. This info is necessarily forcreating print-file.
It has parameter 'SUPPRESS_AUTHORITY_CHECK' always with value 'C_NO'.Check is performed for mode 'PRINT' and 'DISPLAY'.
It has parameter 'MASTER_ONLY_ENGLISH' with default value 'X'.
It has parameter 'inplace' always with value 'C_NO', so MS-Word Editorstarts outside of the SAP system.
INCLUDE ACTION OBJECT DOKU ID TX

Description
INCLUDE ACTION OBJECT DOKU ID TX

Description
INCLUDE ERROR_MSG OBJECT DOKU ID TX

Description
INCLUDE BAD_OBJECTS OBJECT DOKU ID TX