SAP Reports / Programs

/ORS/0000007_7_DIAG_PROG_UNIT SAP ABAP Report - Opentext: Execute Program Unit







/ORS/0000007_7_DIAG_PROG_UNIT 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 /ORS/0000007_7_DIAG_PROG_UNIT 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 /ORS/0000007_7_DIAG_PROG_UNIT. "Basic submit
SUBMIT /ORS/0000007_7_DIAG_PROG_UNIT AND RETURN. "Return to original report after report execution complete
SUBMIT /ORS/0000007_7_DIAG_PROG_UNIT 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: P_TYPE = Type
Selection Text: P_RECTYP = Name of Receiver Type
Selection Text: P_OBJTYP = Ref. Tran.
Selection Text: P_OBJKEY = Ref. Key
Selection Text: P_FOBJTY = Object Type
Selection Text: P_FOBJKE = Object key
Selection Text: P_EXCEPT = Checkbox
Selection Text: P_EVENT = Event
Selection Text: P_ACTIVE = Active
Title: Opentext: Execute Program Unit
Text Symbol: 024 = Delete Immediately
Text Symbol: 023 = Test Only Mode
Text Symbol: 022 = Number of records deleted:
Text Symbol: 021 = CHOOSE EITHER "TEST MODE" OR "DELETE IMMEDIATELY
Text Symbol: 020 = SELECT OPTION(S)
Text Symbol: 019 = Invoice not found on RBKP
Text Symbol: 018 = Accounting Doc Hdr not found on BKPF
Text Symbol: 017 = Bad call Select 2 to /ors/stack_hdr table
Text Symbol: 016 = No other candidate for deletion available on header table!
Text Symbol: 015 = SY-SUBRC =
Text Symbol: 014 = Bad call Select to /ors/stack_hdr table,
Text Symbol: 013 = NOTIFY TECH SUPPORT
Text Symbol: 012 = PROGRAM TERMINATED - NO SELECTION HAS BEEN MADE
Text Symbol: 011 = No obsolete data on header table!
Text Symbol: 010 = Delete Other Entries
Text Symbol: 009 = Delete Obsolute Entries
Text Symbol: 008 = SELECTIONS MADE
Text Symbol: 007 = JOB STATISTICS
Text Symbol: 006 = OTHER BODY
Text Symbol: 005 = OBSOLETE BODY
Text Symbol: 004 = TOTAL BODY
Text Symbol: 003 = OTHER HEADER
Text Symbol: 002 = OBSOLETE HEADER
Text Symbol: 001 = TOTAL HEADER


INCLUDES used within this REPORT /ORS/0000007_7_DIAG_PROG_UNIT

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:

/ORS/000007_PIR_F_RECEIVERFM * CALL FUNCTION '/ORS/000007_PIR_F_RECEIVERFM' CALL FUNCTION tv_recfb EXPORTING EVENT = p_EVENT RECTYPE = p_rectyp OBJTYPE = p_fOBJTY OBJKEY = p_fOBJke EXCEPTIONS_ALLOWED = 'X' IMPORTING REC_ID = TV_RECID TABLES EVENT_CONTAINER = i_container EXCEPTIONS READ_FAILED = 1 CREATE_FAILED = 2 OTHERS = 3.

SWO_INVOKE CALL FUNCTION 'SWO_INVOKE' EXPORTING ACCESS = 'C' OBJECT = s_object-HANDLE VERB = P_METHOD PERSISTENT = ' ' IMPORTING RETURN = SWO_%RETURN TABLES CONTAINER = i_container.

/ORS/000007_VALIDATE_CODING CALL FUNCTION '/ORS/000007_VALIDATE_CODING' EXPORTING INVOICE_HEADER = s_INVOICE_HEADER TABLES ACCT_DATA = i_acct_data RETURN = I_VALIDATE_MESSAGE[].

/ORS/000007_TAKE_ACTION CALL FUNCTION '/ORS/000007_TAKE_ACTION' EXPORTING ok_code = 'RET_INBOX' invoice_header = S_invoice_hEADER workitem_id = VC_WI_ID save_change = 'X' sent_to_approver = S_APPROVER-approver calling_system = 'SAP' actual_approver = S_APPROVER-APPROVER skip_coding = space release_lock = space * coder = coder TABLES acct_data = i_acct_data return = I_VALIDATE_MESSAGE.



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 /ORS/0000007_7_DIAG_PROG_UNIT or its description.