SAP Function Modules

OIJB_TICKET_DEFAULTING SAP Function module - Default ticket data (header & item)







OIJB_TICKET_DEFAULTING is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name OIJB_TICKET_DEFAULTING into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIJB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM OIJB_TICKET_DEFAULTING - OIJB TICKET DEFAULTING





CALL FUNCTION 'OIJB_TICKET_DEFAULTING' "Default ticket data (header & item)
* EXPORTING
*   iv_activity =               " tact-actvt    Activity
*   is_ticket_header_old =      " roij_el_ticket_hvb  TSW Universal ticket table Update Structure
*   is_ticket_header =          " roij_el_ticket_hvb  TSW Universal ticket table Update Structure
*   is_ticket_item_old =        " roij_el_ticket_ivb  TSW Universal ticket item table  Update Structure
*   is_ticket_item =            " roij_el_ticket_ivb  TSW Universal ticket item table  Update Structure
*   is_ticket_item_o1 =         " roij_el_tkt_i_o1  TSW Ticket item - Conversion Parameters structure
*   it_ticket_item_old =        " roij_el_ticket_ivb_tt  TSW Universal ticket item table  Update Table
*   it_ticket_item =            " roij_el_ticket_ivb_tt  TSW Universal ticket item table  Update Table
*   it_ticket_item_o1_old =     " roij_el_tkt_i_o1_t  TSW Ticket item - Conversion Parameters Table Type
*   it_ticket_item_o1 =         " roij_el_tkt_i_o1_t  TSW Ticket item - Conversion Parameters Table Type
*   it_ticket_item_o2_old =     " roij_el_tkt_i_o2_t  TSW Ticket item - Additional Quantities Table Type
*   it_ticket_item_o2 =         " roij_el_tkt_i_o2_t  TSW Ticket item - Additional Quantities Table Type
*   is_tkt_qci =                " oij_tkt_qci   QCI Table type
*   it_events_old =             " roijte_t      Ticket Events Update Table Type
*   it_events =                 " roijte_t      Ticket Events Update Table Type
*   it_event_texts =            " oij_txt       TSW: table type to roij_txt
*   it_oijnomh =                " oijnomh_t     Nomination Header Table Type
*   it_oijnomi =                " oijnomi_t     Nomination Item Table Type
*   it_oijnomsubitems =         " oijnomsubitems_t  Nomination sub-items Table type
*   iv_tkt_call =               " char1         Call by IDoc = 'I'
  IMPORTING
    es_ticket_header =          " roij_el_ticket_hvb  TSW Universal ticket table Update Structure
    es_ticket_item =            " roij_el_ticket_ivb  TSW Universal ticket item table  Update Structure
    es_ticket_item_o1 =         " roij_el_tkt_i_o1  TSW Ticket item - Conversion Parameters structure
    et_ticket_item =            " roij_el_ticket_ivb_tt  TSW Universal ticket item table  Update Table
    et_ticket_item_o1 =         " roij_el_tkt_i_o1_t  TSW Ticket item - Conversion Parameters Table Type
    et_ticket_item_o2 =         " roij_el_tkt_i_o2_t  TSW Ticket item - Additional Quantities Table Type
    es_tkt_qci =                " oij_tkt_qci   QCI Table type
    et_events =                 " roijte_t      TSW Ticket Item Events
    et_event_texts =            " oij_txt       TSW: table type to roij_txt
    es_ticket_header_pv =       " oij_el_ticket_h  Universal ticket table
    et_i_pv =                   " oij_el_ticket_i_tt  TSW Ticket item - Additional Quantities Table Type
    et_i_o1_pv =                " oij_el_tkt_i_o1_t  TSW Ticket item - Conversion Parameters Table Type
    et_i_o2_pv =                " oij_el_tkt_i_o2_t  TSW Ticket item - Additional Quantities Table Type
    et_oijnomh =                " oijnomh_t     Nomination Header Table Type
    et_oijnomi =                " oijnomi_t     Nomination Item Table Type
    et_oijnomsubitems =         " oijnomsubitems_t  Nomination sub-items Table Type
    et_ticket_h_evt_pv =        " oijte_tt      OIL-TSW: Ticket Events / table type
    et_ticket_h_evt_txt_pv =    " oij_txt       TSW: table type to roij_txt
    et_ticket_i_evt_pv =        " oijte_tt      OIL-TSW: Ticket Events / table type
    et_ticket_i_evt_txt_pv =    " oij_txt       TSW: table type to roij_txt
  EXCEPTIONS
    DEFAULTING_ERROR = 1        "               General Defaulting Error occured
    NO_RECORDS_PASSED = 2       "               No Records passed to default
    NOMINATION_ITEM_NOT_FOUND = 3  "            No Nomination Item could be determined for Ticket Item
    .  "  OIJB_TICKET_DEFAULTING

ABAP code example for Function Module OIJB_TICKET_DEFAULTING





The ABAP code below is a full code listing to execute function module OIJB_TICKET_DEFAULTING including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_es_ticket_header  TYPE ROIJ_EL_TICKET_HVB ,
ld_es_ticket_item  TYPE ROIJ_EL_TICKET_IVB ,
ld_es_ticket_item_o1  TYPE ROIJ_EL_TKT_I_O1 ,
ld_et_ticket_item  TYPE ROIJ_EL_TICKET_IVB_TT ,
ld_et_ticket_item_o1  TYPE ROIJ_EL_TKT_I_O1_T ,
ld_et_ticket_item_o2  TYPE ROIJ_EL_TKT_I_O2_T ,
ld_es_tkt_qci  TYPE OIJ_TKT_QCI ,
ld_et_events  TYPE ROIJTE_T ,
ld_et_event_texts  TYPE OIJ_TXT ,
ld_es_ticket_header_pv  TYPE OIJ_EL_TICKET_H ,
ld_et_i_pv  TYPE OIJ_EL_TICKET_I_TT ,
ld_et_i_o1_pv  TYPE OIJ_EL_TKT_I_O1_T ,
ld_et_i_o2_pv  TYPE OIJ_EL_TKT_I_O2_T ,
ld_et_oijnomh  TYPE OIJNOMH_T ,
ld_et_oijnomi  TYPE OIJNOMI_T ,
ld_et_oijnomsubitems  TYPE OIJNOMSUBITEMS_T ,
ld_et_ticket_h_evt_pv  TYPE OIJTE_TT ,
ld_et_ticket_h_evt_txt_pv  TYPE OIJ_TXT ,
ld_et_ticket_i_evt_pv  TYPE OIJTE_TT ,
ld_et_ticket_i_evt_txt_pv  TYPE OIJ_TXT .


SELECT single ACTVT
FROM TACT
INTO @DATA(ld_iv_activity).

DATA(ld_is_ticket_header_old) = 'Check type of data required'.
DATA(ld_is_ticket_header) = 'Check type of data required'.
DATA(ld_is_ticket_item_old) = 'Check type of data required'.
DATA(ld_is_ticket_item) = 'Check type of data required'.
DATA(ld_is_ticket_item_o1) = 'Check type of data required'.
DATA(ld_it_ticket_item_old) = 'Check type of data required'.
DATA(ld_it_ticket_item) = 'Check type of data required'.
DATA(ld_it_ticket_item_o1_old) = 'Check type of data required'.
DATA(ld_it_ticket_item_o1) = 'Check type of data required'.
DATA(ld_it_ticket_item_o2_old) = 'Check type of data required'.
DATA(ld_it_ticket_item_o2) = 'Check type of data required'.
DATA(ld_is_tkt_qci) = 'Check type of data required'.
DATA(ld_it_events_old) = 'Check type of data required'.
DATA(ld_it_events) = 'Check type of data required'.
DATA(ld_it_event_texts) = 'Check type of data required'.
DATA(ld_it_oijnomh) = 'Check type of data required'.
DATA(ld_it_oijnomi) = 'Check type of data required'.
DATA(ld_it_oijnomsubitems) = 'Check type of data required'.
DATA(ld_iv_tkt_call) = 'Check type of data required'. . CALL FUNCTION 'OIJB_TICKET_DEFAULTING' * EXPORTING * iv_activity = ld_iv_activity * is_ticket_header_old = ld_is_ticket_header_old * is_ticket_header = ld_is_ticket_header * is_ticket_item_old = ld_is_ticket_item_old * is_ticket_item = ld_is_ticket_item * is_ticket_item_o1 = ld_is_ticket_item_o1 * it_ticket_item_old = ld_it_ticket_item_old * it_ticket_item = ld_it_ticket_item * it_ticket_item_o1_old = ld_it_ticket_item_o1_old * it_ticket_item_o1 = ld_it_ticket_item_o1 * it_ticket_item_o2_old = ld_it_ticket_item_o2_old * it_ticket_item_o2 = ld_it_ticket_item_o2 * is_tkt_qci = ld_is_tkt_qci * it_events_old = ld_it_events_old * it_events = ld_it_events * it_event_texts = ld_it_event_texts * it_oijnomh = ld_it_oijnomh * it_oijnomi = ld_it_oijnomi * it_oijnomsubitems = ld_it_oijnomsubitems * iv_tkt_call = ld_iv_tkt_call IMPORTING es_ticket_header = ld_es_ticket_header es_ticket_item = ld_es_ticket_item es_ticket_item_o1 = ld_es_ticket_item_o1 et_ticket_item = ld_et_ticket_item et_ticket_item_o1 = ld_et_ticket_item_o1 et_ticket_item_o2 = ld_et_ticket_item_o2 es_tkt_qci = ld_es_tkt_qci et_events = ld_et_events et_event_texts = ld_et_event_texts es_ticket_header_pv = ld_es_ticket_header_pv et_i_pv = ld_et_i_pv et_i_o1_pv = ld_et_i_o1_pv et_i_o2_pv = ld_et_i_o2_pv et_oijnomh = ld_et_oijnomh et_oijnomi = ld_et_oijnomi et_oijnomsubitems = ld_et_oijnomsubitems et_ticket_h_evt_pv = ld_et_ticket_h_evt_pv et_ticket_h_evt_txt_pv = ld_et_ticket_h_evt_txt_pv et_ticket_i_evt_pv = ld_et_ticket_i_evt_pv et_ticket_i_evt_txt_pv = ld_et_ticket_i_evt_txt_pv EXCEPTIONS DEFAULTING_ERROR = 1 NO_RECORDS_PASSED = 2 NOMINATION_ITEM_NOT_FOUND = 3 . " OIJB_TICKET_DEFAULTING
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_es_ticket_header  TYPE ROIJ_EL_TICKET_HVB ,
ld_iv_activity  TYPE TACT-ACTVT ,
ld_is_ticket_header_old  TYPE ROIJ_EL_TICKET_HVB ,
ld_es_ticket_item  TYPE ROIJ_EL_TICKET_IVB ,
ld_es_ticket_item_o1  TYPE ROIJ_EL_TKT_I_O1 ,
ld_is_ticket_header  TYPE ROIJ_EL_TICKET_HVB ,
ld_is_ticket_item_old  TYPE ROIJ_EL_TICKET_IVB ,
ld_et_ticket_item  TYPE ROIJ_EL_TICKET_IVB_TT ,
ld_is_ticket_item  TYPE ROIJ_EL_TICKET_IVB ,
ld_et_ticket_item_o1  TYPE ROIJ_EL_TKT_I_O1_T ,
ld_et_ticket_item_o2  TYPE ROIJ_EL_TKT_I_O2_T ,
ld_is_ticket_item_o1  TYPE ROIJ_EL_TKT_I_O1 ,
ld_es_tkt_qci  TYPE OIJ_TKT_QCI ,
ld_it_ticket_item_old  TYPE ROIJ_EL_TICKET_IVB_TT ,
ld_et_events  TYPE ROIJTE_T ,
ld_it_ticket_item  TYPE ROIJ_EL_TICKET_IVB_TT ,
ld_it_ticket_item_o1_old  TYPE ROIJ_EL_TKT_I_O1_T ,
ld_et_event_texts  TYPE OIJ_TXT ,
ld_it_ticket_item_o1  TYPE ROIJ_EL_TKT_I_O1_T ,
ld_es_ticket_header_pv  TYPE OIJ_EL_TICKET_H ,
ld_et_i_pv  TYPE OIJ_EL_TICKET_I_TT ,
ld_it_ticket_item_o2_old  TYPE ROIJ_EL_TKT_I_O2_T ,
ld_it_ticket_item_o2  TYPE ROIJ_EL_TKT_I_O2_T ,
ld_et_i_o1_pv  TYPE OIJ_EL_TKT_I_O1_T ,
ld_is_tkt_qci  TYPE OIJ_TKT_QCI ,
ld_et_i_o2_pv  TYPE OIJ_EL_TKT_I_O2_T ,
ld_et_oijnomh  TYPE OIJNOMH_T ,
ld_it_events_old  TYPE ROIJTE_T ,
ld_et_oijnomi  TYPE OIJNOMI_T ,
ld_it_events  TYPE ROIJTE_T ,
ld_et_oijnomsubitems  TYPE OIJNOMSUBITEMS_T ,
ld_it_event_texts  TYPE OIJ_TXT ,
ld_et_ticket_h_evt_pv  TYPE OIJTE_TT ,
ld_it_oijnomh  TYPE OIJNOMH_T ,
ld_it_oijnomi  TYPE OIJNOMI_T ,
ld_et_ticket_h_evt_txt_pv  TYPE OIJ_TXT ,
ld_et_ticket_i_evt_pv  TYPE OIJTE_TT ,
ld_it_oijnomsubitems  TYPE OIJNOMSUBITEMS_T ,
ld_et_ticket_i_evt_txt_pv  TYPE OIJ_TXT ,
ld_iv_tkt_call  TYPE CHAR1 .


SELECT single ACTVT
FROM TACT
INTO ld_iv_activity.

ld_is_ticket_header_old = 'Check type of data required'.
ld_is_ticket_header = 'Check type of data required'.
ld_is_ticket_item_old = 'Check type of data required'.
ld_is_ticket_item = 'Check type of data required'.
ld_is_ticket_item_o1 = 'Check type of data required'.
ld_it_ticket_item_old = 'Check type of data required'.
ld_it_ticket_item = 'Check type of data required'.
ld_it_ticket_item_o1_old = 'Check type of data required'.
ld_it_ticket_item_o1 = 'Check type of data required'.
ld_it_ticket_item_o2_old = 'Check type of data required'.
ld_it_ticket_item_o2 = 'Check type of data required'.
ld_is_tkt_qci = 'Check type of data required'.
ld_it_events_old = 'Check type of data required'.
ld_it_events = 'Check type of data required'.
ld_it_event_texts = 'Check type of data required'.
ld_it_oijnomh = 'Check type of data required'.
ld_it_oijnomi = 'Check type of data required'.
ld_it_oijnomsubitems = 'Check type of data required'.
ld_iv_tkt_call = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIJB_TICKET_DEFAULTING or its description.