TYPES: BEGIN OF ty_flat2,
orderid type bapi_alm_order_headers_i-orderid, "ORDERID
order_type type bapi_alm_order_headers_i-order_type, "Order Type
priority type bapi_alm_order_headers_i-priority, "Priority
funct_loc_h type bapi_alm_order_headers_i-funct_loc, "Functional Location
techid_h type tidnr, "Technical Object id (MAXIMO equipment
No.).
planplant type bapi_alm_order_headers_i-planplant, "Planning plant
short_text type bapi_alm_order_headers_i-short_text, "Short text
longtext_h type string, "Long Text
plangroup type bapi_alm_order_headers_i-plangroup, "Planner Group
mn_wk_ctr type bapi_alm_order_headers_i-mn_wk_ctr, "Main Work Center
plant type bapi_alm_order_headers_i-plant, "Plant associated with main
work center
estimated_costs type bapi_alm_order_headers_i-estimated_costs, "Costs
pmacttype type bapi_alm_order_headers_i-pmacttype, "PM Act Type
systcond type bapi_alm_order_headers_i-systcond, "System condition
start_date type bapi_alm_order_headers_i-start_date, "Basic start date
finish_date type bapi_alm_order_headers_i-finish_date, "Basic finish date
priority_h type bapi_alm_order_headers_i-priority, "Priority
activity_o type bapi_alm_order_operation-activity, "Operation number
control_key type bapi_alm_order_operation-control_key, "Control key
work_cntr type bapi_alm_order_operation-work_cntr, "Operation Work
Center
plant_o type bapi_alm_order_operation-plant, "Operation Plant
description type bapi_alm_order_operation-description, "Short text
longtext type string, "Long Text
calc_key type bapi_alm_order_operation-calc_key, "Key for calculation
work_activity type bapi_alm_order_operation-work_activity, "Work involved in
the activity
un_work type bapi_alm_order_operation-un_work, "Unit of work
number_of_capacities type bapi_alm_order_operation-number_of_capacities,
"Number of capacities required
duration_normal type bapi_alm_order_operation-duration_normal, "Normal
duration of the activity
duration_normal_unit type bapi_alm_order_operation-duration_normal_unit, "Normal
duration/unit
service type string, "Service Number
fixed_quan type bapi_alm_order_component-fixed_quan, "Quantity
price type bapi_alm_order_component-price, "Price
matl_group type bapi_alm_order_component-matl_group, "Material Group
pur_group type bapi_alm_order_component-pur_group, "Purchasing Group
recepient type string , "Receipient
activity_c TYPE bapi_alm_order_operation-activity , "components item No.
will be taken from maximo as reference
material type bapi_alm_order_component-material, "Material number
requirement_quantity type bapi_alm_order_component-requirement_quantity,
"Requirement quantity of the component
stge_loc type bapi_alm_order_component-stge_loc, "Storage location
activity type bapi_alm_order_component-activity, "Operation number
unload_pt type bapi_alm_order_component-unload_pt, "Unloading point
lead_time_offset_opr type bapi_alm_order_component-lead_time_offset_opr, "Lead-
time offset for operation
lead_time_offset_opr_unit type bapi_alm_order_component-
lead_time_offset_opr_unit,"Unit for lead-time offset for operation
activity_ob TYPE I, "Record to track Object List
techid TYPE tidnr, "Techid of object, MAXIMO equipment No.
funct_loc type bapi_alm_order_objectlist-funct_loc, "Functional location
END OF ty_flat2.
TYPES: BEGIN OF ty_flat,
*----Start-Header Section
orderid type string, "ORDERID
order_type type string, "Order Type
priority type string, "Priority
funct_loc_h type string, "Functional Location
techid_h type string, "Equipment
planplant type string, "Planning plant
short_text type string, "Short text
longtext_h type string, "Long Text
plangroup type string, "Planner Group
mn_wk_ctr type string, "Main Work Center
plant type string, "Plant associated with main work center
estimated_costs type string, "Costs
pmacttype type string, "PM Act Type
systcond type string, "System condition
start_date type string, "Basic start date
finish_date type string, "Basic finish date
priority_h type string, "Priority
activity_o type string, "Operation number
control_key type string, "Control key
work_cntr type string, "Operation workcenter
plant_o type string, "Operation Plant
description type string, "Short text
longtext type string, "Long Text
calc_key type string, "Key for calculation
work_activity type string, "Work involved in the activity
un_work type string, "Unit of work
number_of_capacities type string, "Number of capacities required
duration_normal type string, "Normal duration of the activity
duration_normal_unit type string, "Normal duration/unit
*----End-Operation Data
*----Start- Service related external data .This wll be picked on Control key basis
service type string, "Service Number
fixed_quan type string, "Quantity
price type string, "Price
matl_group type string, "Material Group
pur_group type string, "Purchasing Group
receipient type string, "Receipient
*----End- Service related external data .
*----Start- Component Section
activity_c TYPE string, "component item No.
material type string, "Material number
requirement_quantity type string, "Requirement quantity of the component
stge_loc type string, "Storage location
activity type string, "Operation number
unload_pt type string, "Unloading point
lead_time_offset_opr type string, "Lead-time offset for operation
lead_time_offset_opr_unit type string, "Unit for lead-time offset for operation
*----End-Component Section
*----Start - Object List
activity_ob type string, "record to track object list
techid type string, "technical id for object , MAXIMO's eq. no.
funct_loc type string, "Functional location
*----End - Object List
END OF ty_flat.
TYPES: BEGIN OF ty_status,
srno TYPE bapi_alm_order_headers_i-orderid,
status TYPE string ,
returntype TYPE bapi_mtype,
workorder TYPE bapi_alm_numbers-aufnr_new,
message TYPE bapiret2-message ,
END OF ty_status.