SAP Reports / Programs | Basis Components | Business Management | SAP Business Workflow(BC-BMT-WFM) SAP BC

MS_WORD SAP ABAP INCLUDE - Program for Object Type MS_WORD: Microsoft Word







MS_WORD is a standard ABAP INCLUDE 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 MS_WORD 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 MS_WORD. "Basic submit
SUBMIT MS_WORD AND RETURN. "Return to original report after report execution complete
SUBMIT MS_WORD 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 MS_WORD: Microsoft Word
Text Symbol: 001 = Template
Text Symbol: 002 = WinFile
Text Symbol: 003 = WF ID
Text Symbol: 004 = WF ID
Text Symbol: 005 = WF task ID


INCLUDES used within this REPORT MS_WORD

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:

SWW_WI_CONTAINER_READ * CALL FUNCTION 'SWW_WI_CONTAINER_READ' * EXPORTING * WI_ID = $WF_ID * TABLES * WI_CONTAINER = WF_CONTAINER * EXCEPTIONS * CONTAINER_DOES_NOT_EXIST = 1 * OTHERS = 2.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING ACT_PLVAR = ACT_PLVAR EXCEPTIONS NO_ACTIVE_PLVAR = 1 OTHERS = 2.

SWO_PROPERTY_GET CALL FUNCTION 'SWO_PROPERTY_GET' EXPORTING OBJECT = CURR_OBJ ATTRIBUTE = $VERBS-VERB CHANGING VALUE = $ATTR_VALUES-VALUE EXCEPTIONS ERROR_CREATE = 1 ERROR_INVOKE = 2 ERROR_CONTAINER = 3 OTHERS = 4.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING CLIENT = SY-MANDT ID = OBJECT-KEY-TEXT_ID LANGUAGE = SY-LANGU NAME = TEXTNAME OBJECT = OBJECT-KEY-TEXTOBJEKT IMPORTING HEADER = HEADER TABLES LINES = TEXT_LINES EXCEPTIONS NOT_FOUND = 01 OTHERS = 02.

ARCHIV_CREATE_TABLE CALL FUNCTION 'ARCHIV_CREATE_TABLE' EXPORTING AR_OBJECT = AR_OBJECT OBJECT_ID = OBJECT_ID SAP_OBJECT = SAP_OBJECT TABLES ARCHIVOBJECT = ARCHIVOBJECT EXCEPTIONS ERROR_ARCHIV = 1 ERROR_COMMUNICATIONTABLE = 2 ERROR_CONNECTIONTABLE = 3 ERROR_KERNEL = 4 ERROR_PARAMETER = 5 OTHERS = 6.

ARCHIV_GET_TABLE CALL FUNCTION 'ARCHIV_GET_TABLE' EXPORTING AR_OBJECT = AR_OBJECT OBJECT_ID = OBJECT_ID SAP_OBJECT = SAP_OBJECT IMPORTING LENGTH = LENGTH TABLES ARCHIVOBJECT = ARCHIVOBJECT EXCEPTIONS ERROR_ARCHIV = 1 ERROR_COMMUNICATIONTABLE = 2 ERROR_CONNECTIONTABLE = 3 ERROR_KERNEL = 4 ERROR_PARAMETER = 5 NOT_UNIQUE = 6 OTHERS = 7.

INIT_TEXT CALL FUNCTION 'INIT_TEXT' EXPORTING ID = TDID LANGUAGE = SY-LANGU NAME = TEXTNAME OBJECT = TDOBJECT IMPORTING HEADER = HEADER TABLES LINES = TEXT_LINES EXCEPTIONS OTHERS = 1.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING HEADER = HEADER IMPORTING NEWHEADER = HEADER TABLES LINES = TEXT_LINES EXCEPTIONS OTHERS = 01.



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