SAP OIJ_GET_TOTAL_TICKET_QTY Function Module for gets total actual qty. for nom. items in a pegid
OIJ_GET_TOTAL_TICKET_QTY is a standard oij get total ticket qty SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for gets total actual qty. for nom. items in a pegid 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 get total ticket qty FM, simply by entering the name OIJ_GET_TOTAL_TICKET_QTY into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIJ_LDSCHED
Program Name: SAPLOIJ_LDSCHED
Main Program: SAPLOIJ_LDSCHED
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIJ_GET_TOTAL_TICKET_QTY 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_GET_TOTAL_TICKET_QTY'"gets total actual qty. for nom. items in a pegid.
EXPORTING
IT_NOMI = "Nomination Item Key Table Type
* IV_TICKET_UOM = "Unit of measurement
IMPORTING
ET_TICKET_ACTQTY = "used in interface of FM cal. total ticket act. qty per pegid
ET_TICKET_ITEMS = "TSW ticket item table Communication Table Type
TABLES
* ET_TICKET_HEADERS = "TSW Universal ticket table Update Structure
EXCEPTIONS
NO_INPUT_DATA = 1 NO_TICKET_DATA = 2 NO_PEGGING_DATA = 3 NO_TICKETS_FOR_UOM = 4
IMPORTING Parameters details for OIJ_GET_TOTAL_TICKET_QTY
IT_NOMI - Nomination Item Key Table Type
Data type: ROIJNOMI_KEY_TOptional: No
Call by Reference: No ( called with pass by value option)
IV_TICKET_UOM - Unit of measurement
Data type: MSEHIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OIJ_GET_TOTAL_TICKET_QTY
ET_TICKET_ACTQTY - used in interface of FM cal. total ticket act. qty per pegid
Data type: ROIJ_TICKET_ACTQTY_TOptional: No
Call by Reference: Yes
ET_TICKET_ITEMS - TSW ticket item table Communication Table Type
Data type: ROIJ_EL_TICKET_I_IO_TOptional: No
Call by Reference: Yes
TABLES Parameters details for OIJ_GET_TOTAL_TICKET_QTY
ET_TICKET_HEADERS - TSW Universal ticket table Update Structure
Data type: ROIJ_EL_TICKET_HVBOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_INPUT_DATA -
Data type:Optional: No
Call by Reference: Yes
NO_TICKET_DATA -
Data type:Optional: No
Call by Reference: Yes
NO_PEGGING_DATA -
Data type:Optional: No
Call by Reference: Yes
NO_TICKETS_FOR_UOM -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIJ_GET_TOTAL_TICKET_QTY 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_it_nomi | TYPE ROIJNOMI_KEY_T, " | |||
| lv_no_input_data | TYPE ROIJNOMI_KEY_T, " | |||
| lv_et_ticket_actqty | TYPE ROIJ_TICKET_ACTQTY_T, " | |||
| lt_et_ticket_headers | TYPE STANDARD TABLE OF ROIJ_EL_TICKET_HVB, " | |||
| lv_iv_ticket_uom | TYPE MSEHI, " | |||
| lv_no_ticket_data | TYPE MSEHI, " | |||
| lv_et_ticket_items | TYPE ROIJ_EL_TICKET_I_IO_T, " | |||
| lv_no_pegging_data | TYPE ROIJ_EL_TICKET_I_IO_T, " | |||
| lv_no_tickets_for_uom | TYPE ROIJ_EL_TICKET_I_IO_T. " |
|   CALL FUNCTION 'OIJ_GET_TOTAL_TICKET_QTY' "gets total actual qty. for nom. items in a pegid |
| EXPORTING | ||
| IT_NOMI | = lv_it_nomi | |
| IV_TICKET_UOM | = lv_iv_ticket_uom | |
| IMPORTING | ||
| ET_TICKET_ACTQTY | = lv_et_ticket_actqty | |
| ET_TICKET_ITEMS | = lv_et_ticket_items | |
| TABLES | ||
| ET_TICKET_HEADERS | = lt_et_ticket_headers | |
| EXCEPTIONS | ||
| NO_INPUT_DATA = 1 | ||
| NO_TICKET_DATA = 2 | ||
| NO_PEGGING_DATA = 3 | ||
| NO_TICKETS_FOR_UOM = 4 | ||
| . " OIJ_GET_TOTAL_TICKET_QTY | ||
ABAP code using 7.40 inline data declarations to call FM OIJ_GET_TOTAL_TICKET_QTY
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.Search for further information about these or an SAP related objects