SAP OIJ_TKT_OUTPUT_HEADER Function Module for TSW Ticket Header Output determination









OIJ_TKT_OUTPUT_HEADER is a standard oij tkt output header SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TSW Ticket Header Output determination processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for oij tkt output header FM, simply by entering the name OIJ_TKT_OUTPUT_HEADER into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIJFN
Program Name: SAPLOIJFN
Main Program: SAPLOIJFN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OIJ_TKT_OUTPUT_HEADER pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'OIJ_TKT_OUTPUT_HEADER'"TSW Ticket Header Output determination
EXPORTING
IS_TKT_HEADER = "TSW Universal ticket table Update Structure
* IT_TKT_ITEMS = "TSW ticket item table Communication Table Type
IV_TRTYP = "Transaction type

IMPORTING
EV_OBJKEY = "Object key
EV_OUT_PROCEDURE = "Procedure (pricing, output control, acct. det., costing,...)
ET_TKT_PARTNER = "Nomination Partner role data table for output determination
ET_OUT_PARTNER = "Table type for output doc partner functions
ET_RETURN = "Return parameter table

EXCEPTIONS
TKT_TYP_NOT_FOUND = 1 PARTNER_NOT_FOUND = 2
.



IMPORTING Parameters details for OIJ_TKT_OUTPUT_HEADER

IS_TKT_HEADER - TSW Universal ticket table Update Structure

Data type: ROIJ_EL_TICKET_HVB
Optional: No
Call by Reference: Yes

IT_TKT_ITEMS - TSW ticket item table Communication Table Type

Data type: ROIJ_EL_TICKET_I_IO_T
Optional: Yes
Call by Reference: Yes

IV_TRTYP - Transaction type

Data type: TRTYP
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for OIJ_TKT_OUTPUT_HEADER

EV_OBJKEY - Object key

Data type: NA_OBJKEY
Optional: No
Call by Reference: Yes

EV_OUT_PROCEDURE - Procedure (pricing, output control, acct. det., costing,...)

Data type: T683-KALSM
Optional: No
Call by Reference: Yes

ET_TKT_PARTNER - Nomination Partner role data table for output determination

Data type: ROIJNOMPOD_T
Optional: No
Call by Reference: Yes

ET_OUT_PARTNER - Table type for output doc partner functions

Data type: OIRA_MSGPA
Optional: No
Call by Reference: Yes

ET_RETURN - Return parameter table

Data type: BAPIRET2_T
Optional: No
Call by Reference: Yes

EXCEPTIONS details

TKT_TYP_NOT_FOUND - Ticket Type not found

Data type:
Optional: No
Call by Reference: Yes

PARTNER_NOT_FOUND - Partner not found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIJ_TKT_OUTPUT_HEADER Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_ev_objkey  TYPE NA_OBJKEY, "   
lv_is_tkt_header  TYPE ROIJ_EL_TICKET_HVB, "   
lv_tkt_typ_not_found  TYPE ROIJ_EL_TICKET_HVB, "   
lv_it_tkt_items  TYPE ROIJ_EL_TICKET_I_IO_T, "   
lv_ev_out_procedure  TYPE T683-KALSM, "   
lv_partner_not_found  TYPE T683, "   
lv_iv_trtyp  TYPE TRTYP, "   
lv_et_tkt_partner  TYPE ROIJNOMPOD_T, "   
lv_et_out_partner  TYPE OIRA_MSGPA, "   
lv_et_return  TYPE BAPIRET2_T. "   

  CALL FUNCTION 'OIJ_TKT_OUTPUT_HEADER'  "TSW Ticket Header Output determination
    EXPORTING
         IS_TKT_HEADER = lv_is_tkt_header
         IT_TKT_ITEMS = lv_it_tkt_items
         IV_TRTYP = lv_iv_trtyp
    IMPORTING
         EV_OBJKEY = lv_ev_objkey
         EV_OUT_PROCEDURE = lv_ev_out_procedure
         ET_TKT_PARTNER = lv_et_tkt_partner
         ET_OUT_PARTNER = lv_et_out_partner
         ET_RETURN = lv_et_return
    EXCEPTIONS
        TKT_TYP_NOT_FOUND = 1
        PARTNER_NOT_FOUND = 2
. " OIJ_TKT_OUTPUT_HEADER




ABAP code using 7.40 inline data declarations to call FM OIJ_TKT_OUTPUT_HEADER

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
"SELECT single KALSM FROM T683 INTO @DATA(ld_ev_out_procedure).
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!