SAP Reports / Programs

/OPT/VIM_TRIGGER_HEADER_WF SAP ABAP Report - LIV Trigger Header level action Workflow







/OPT/VIM_TRIGGER_HEADER_WF 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 /OPT/VIM_TRIGGER_HEADER_WF 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 /OPT/VIM_TRIGGER_HEADER_WF. "Basic submit
SUBMIT /OPT/VIM_TRIGGER_HEADER_WF AND RETURN. "Return to original report after report execution complete
SUBMIT /OPT/VIM_TRIGGER_HEADER_WF VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: DATE = Date of Last Action
Selection Text: INV_DOC = Document No.
Selection Text: INV_YEAR = Fiscal Year
Selection Text: TIME = Time of Last Action
Title: LIV Trigger Header level action Workflow
Text Symbol: 001 = No Header level work flows pending at this time
Text Symbol: 002 = The Header work flow task could not be identified
Text Symbol: 003 = The Invoice Verification Sub Workflow could not be identified
Text Symbol: 004 = Workflow triggered for invoice
Text Symbol: 005 = Update failed


INCLUDES used within this REPORT /OPT/VIM_TRIGGER_HEADER_WF

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:

/PTGWFI/LIX_F_UPDMONITOR CALL FUNCTION '/PTGWFI/LIX_F_UPDMONITOR' EXPORTING lix_monitor = t_lixmtr EXCEPTIONS update_lixmtr_failed = 1 update_lixmwi_failed = 2 OTHERS = 3.

/PTGWFI/CP_READCONSTANT CALL FUNCTION '/PTGWFI/CP_READCONSTANT' EXPORTING constname = 'HEADERLEVELWORKFLOW' productcode = 'LIX' IMPORTING constvalue = headerlevelworkflow EXCEPTIONS constant_not_found = 1 OTHERS = 2.

/PTGWFI/CP_READCONSTANT CALL FUNCTION '/PTGWFI/CP_READCONSTANT' EXPORTING constname = 'INVVERIFYSUBWF' productcode = 'LIX' IMPORTING constvalue = invverifysubworkflow EXCEPTIONS constant_not_found = 1 OTHERS = 2.

SWC_OBJECT_CREATE CALL FUNCTION 'SWC_OBJECT_CREATE' EXPORTING objtype = 'BUS2081' objkey = rbkp_key IMPORTING object = rbkp_object EXCEPTIONS objtype_not_found = 1 logsys_not_found = 2 objtype_not_released = 3 OTHERS = 4.

SWW_WI_START CALL FUNCTION 'SWW_WI_START' EXPORTING creator = creator task = task workitem_type = 'F' created_by_user = sy-uname called_in_background = 'X' IMPORTING wi_id = wi_id TABLES wi_container = wi_container EXCEPTIONS id_not_created = 1 read_failed = 2 immediate_start_not_possible = 3 execution_failed = 4 invalid_status = 5 OTHERS = 6.

/PTGWFI/LIX_F_UPDMONITOR CALL FUNCTION '/PTGWFI/LIX_F_UPDMONITOR' EXPORTING lastworkitem = wi_id lix_monitor = t_lixmtr EXCEPTIONS update_lixmtr_failed = 1 update_lixmwi_failed = 2 OTHERS = 3.



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 /OPT/VIM_TRIGGER_HEADER_WF or its description.