SAP Function Modules

BAPI_ALM_ORDER_GET_DETAIL SAP Function module - Reading of Detail Data for an Order







BAPI_ALM_ORDER_GET_DETAIL 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 BAPI_ALM_ORDER_GET_DETAIL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: IBAPI_ALM_ORDER
Released Date: 24.04.2002
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_ALM_ORDER_GET_DETAIL - BAPI ALM ORDER GET DETAIL





CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' "Reading of Detail Data for an Order
  EXPORTING
    number =                    " bapi_alm_order_header_e-orderid  Order Number
  IMPORTING
    es_header =                 " bapi_alm_order_header_e  Export Structure for ALM Order Header
    es_srvdata =                " bapi_alm_order_srvdat_e  ALM Order BAPIs: Service-Specific Data, External Structure
    es_reforder_item =          " bapi_reforder_item  BAPI: Header Component for Refurbishment Order
  TABLES
*   et_partner =                " bapi_alm_order_partner  ALM Order BAPIs: Partner Data
*   et_operations =             " bapi_alm_order_operation_e  Export Structure for PM/CS BAPIs Operations
*   et_components =             " bapi_alm_order_component_e  PM/CS BAPI Order Components
*   et_relations =              " bapi_alm_order_relation_export  BAPI Structure for ALM Order Relationships
*   et_srules =                 " bapi_alm_order_srule_e  Export Structure for PM/CS BAPIs Settlement Rule
*   et_olist =                  " bapi_alm_order_objectlist  Export Structure BAPI PM/CS: Object List
*   et_oprol =                  " bapi_alm_olist_relation  BAPI Structure for OPROL - Relation Operation Object List
*   et_texts =                  " bapi_alm_text  Text Header for ALM Order BAPIs
*   et_text_lines =             " bapi_alm_text_lines  Text Lines for ALM BAPIs
*   et_prts =                   " bapi_alm_order_prt_e  ALM Order BAPIs: Structure for Production Resources/Tools
*   et_costs_sum =              " bapi_alm_order_costs_sum_e  ALM Order BAPIs: Structure for Order Costs Sum
*   et_costs_details =          " bapi_alm_order_costs_detail_e  ALM Order BAPIs: Structure for Order Costs Detail
    return =                    " bapiret2
*   extension_in =              " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   extension_out =             " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   et_reforder_serno_olist =   " bapi_reforder_serno_olist  BAPI: Structure for Serial Number Object List
*   et_serviceoutline =         " bapi_alm_srv_outline
*   et_servicelines =           " bapi_alm_srv_service_line
*   et_servicelimit =           " bapi_alm_srv_limit_data
*   et_servicecontractlimits =   " bapi_alm_srv_contract_limits
*   et_permit =                 " bapi_alm_order_permit_read  Permits
*   et_permit_issue =           " bapi_alm_order_per_issue_r  Issued Permits
    .  "  BAPI_ALM_ORDER_GET_DETAIL

ABAP code example for Function Module BAPI_ALM_ORDER_GET_DETAIL





The ABAP code below is a full code listing to execute function module BAPI_ALM_ORDER_GET_DETAIL 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_header  TYPE BAPI_ALM_ORDER_HEADER_E ,
ld_es_srvdata  TYPE BAPI_ALM_ORDER_SRVDAT_E ,
ld_es_reforder_item  TYPE BAPI_REFORDER_ITEM ,
it_et_partner  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PARTNER,"TABLES PARAM
wa_et_partner  LIKE LINE OF it_et_partner ,
it_et_operations  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_OPERATION_E,"TABLES PARAM
wa_et_operations  LIKE LINE OF it_et_operations ,
it_et_components  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_COMPONENT_E,"TABLES PARAM
wa_et_components  LIKE LINE OF it_et_components ,
it_et_relations  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_RELATION_EXPORT,"TABLES PARAM
wa_et_relations  LIKE LINE OF it_et_relations ,
it_et_srules  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_SRULE_E,"TABLES PARAM
wa_et_srules  LIKE LINE OF it_et_srules ,
it_et_olist  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_OBJECTLIST,"TABLES PARAM
wa_et_olist  LIKE LINE OF it_et_olist ,
it_et_oprol  TYPE STANDARD TABLE OF BAPI_ALM_OLIST_RELATION,"TABLES PARAM
wa_et_oprol  LIKE LINE OF it_et_oprol ,
it_et_texts  TYPE STANDARD TABLE OF BAPI_ALM_TEXT,"TABLES PARAM
wa_et_texts  LIKE LINE OF it_et_texts ,
it_et_text_lines  TYPE STANDARD TABLE OF BAPI_ALM_TEXT_LINES,"TABLES PARAM
wa_et_text_lines  LIKE LINE OF it_et_text_lines ,
it_et_prts  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PRT_E,"TABLES PARAM
wa_et_prts  LIKE LINE OF it_et_prts ,
it_et_costs_sum  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_COSTS_SUM_E,"TABLES PARAM
wa_et_costs_sum  LIKE LINE OF it_et_costs_sum ,
it_et_costs_details  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_COSTS_DETAIL_E,"TABLES PARAM
wa_et_costs_details  LIKE LINE OF it_et_costs_details ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_extension_in  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extension_in  LIKE LINE OF it_extension_in ,
it_extension_out  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extension_out  LIKE LINE OF it_extension_out ,
it_et_reforder_serno_olist  TYPE STANDARD TABLE OF BAPI_REFORDER_SERNO_OLIST,"TABLES PARAM
wa_et_reforder_serno_olist  LIKE LINE OF it_et_reforder_serno_olist ,
it_et_serviceoutline  TYPE STANDARD TABLE OF BAPI_ALM_SRV_OUTLINE,"TABLES PARAM
wa_et_serviceoutline  LIKE LINE OF it_et_serviceoutline ,
it_et_servicelines  TYPE STANDARD TABLE OF BAPI_ALM_SRV_SERVICE_LINE,"TABLES PARAM
wa_et_servicelines  LIKE LINE OF it_et_servicelines ,
it_et_servicelimit  TYPE STANDARD TABLE OF BAPI_ALM_SRV_LIMIT_DATA,"TABLES PARAM
wa_et_servicelimit  LIKE LINE OF it_et_servicelimit ,
it_et_servicecontractlimits  TYPE STANDARD TABLE OF BAPI_ALM_SRV_CONTRACT_LIMITS,"TABLES PARAM
wa_et_servicecontractlimits  LIKE LINE OF it_et_servicecontractlimits ,
it_et_permit  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PERMIT_READ,"TABLES PARAM
wa_et_permit  LIKE LINE OF it_et_permit ,
it_et_permit_issue  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PER_ISSUE_R,"TABLES PARAM
wa_et_permit_issue  LIKE LINE OF it_et_permit_issue .


DATA(ld_number) = some text here

"populate fields of struture and append to itab
append wa_et_partner to it_et_partner.

"populate fields of struture and append to itab
append wa_et_operations to it_et_operations.

"populate fields of struture and append to itab
append wa_et_components to it_et_components.

"populate fields of struture and append to itab
append wa_et_relations to it_et_relations.

"populate fields of struture and append to itab
append wa_et_srules to it_et_srules.

"populate fields of struture and append to itab
append wa_et_olist to it_et_olist.

"populate fields of struture and append to itab
append wa_et_oprol to it_et_oprol.

"populate fields of struture and append to itab
append wa_et_texts to it_et_texts.

"populate fields of struture and append to itab
append wa_et_text_lines to it_et_text_lines.

"populate fields of struture and append to itab
append wa_et_prts to it_et_prts.

"populate fields of struture and append to itab
append wa_et_costs_sum to it_et_costs_sum.

"populate fields of struture and append to itab
append wa_et_costs_details to it_et_costs_details.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_extension_out to it_extension_out.

"populate fields of struture and append to itab
append wa_et_reforder_serno_olist to it_et_reforder_serno_olist.

"populate fields of struture and append to itab
append wa_et_serviceoutline to it_et_serviceoutline.

"populate fields of struture and append to itab
append wa_et_servicelines to it_et_servicelines.

"populate fields of struture and append to itab
append wa_et_servicelimit to it_et_servicelimit.

"populate fields of struture and append to itab
append wa_et_servicecontractlimits to it_et_servicecontractlimits.

"populate fields of struture and append to itab
append wa_et_permit to it_et_permit.

"populate fields of struture and append to itab
append wa_et_permit_issue to it_et_permit_issue. . CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' EXPORTING number = ld_number IMPORTING es_header = ld_es_header es_srvdata = ld_es_srvdata es_reforder_item = ld_es_reforder_item TABLES * et_partner = it_et_partner * et_operations = it_et_operations * et_components = it_et_components * et_relations = it_et_relations * et_srules = it_et_srules * et_olist = it_et_olist * et_oprol = it_et_oprol * et_texts = it_et_texts * et_text_lines = it_et_text_lines * et_prts = it_et_prts * et_costs_sum = it_et_costs_sum * et_costs_details = it_et_costs_details return = it_return * extension_in = it_extension_in * extension_out = it_extension_out * et_reforder_serno_olist = it_et_reforder_serno_olist * et_serviceoutline = it_et_serviceoutline * et_servicelines = it_et_servicelines * et_servicelimit = it_et_servicelimit * et_servicecontractlimits = it_et_servicecontractlimits * et_permit = it_et_permit * et_permit_issue = it_et_permit_issue . " BAPI_ALM_ORDER_GET_DETAIL
IF SY-SUBRC EQ 0. "All OK 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_header  TYPE BAPI_ALM_ORDER_HEADER_E ,
ld_number  TYPE BAPI_ALM_ORDER_HEADER_E-ORDERID ,
it_et_partner  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PARTNER ,
wa_et_partner  LIKE LINE OF it_et_partner,
ld_es_srvdata  TYPE BAPI_ALM_ORDER_SRVDAT_E ,
it_et_operations  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_OPERATION_E ,
wa_et_operations  LIKE LINE OF it_et_operations,
ld_es_reforder_item  TYPE BAPI_REFORDER_ITEM ,
it_et_components  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_COMPONENT_E ,
wa_et_components  LIKE LINE OF it_et_components,
it_et_relations  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_RELATION_EXPORT ,
wa_et_relations  LIKE LINE OF it_et_relations,
it_et_srules  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_SRULE_E ,
wa_et_srules  LIKE LINE OF it_et_srules,
it_et_olist  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_OBJECTLIST ,
wa_et_olist  LIKE LINE OF it_et_olist,
it_et_oprol  TYPE STANDARD TABLE OF BAPI_ALM_OLIST_RELATION ,
wa_et_oprol  LIKE LINE OF it_et_oprol,
it_et_texts  TYPE STANDARD TABLE OF BAPI_ALM_TEXT ,
wa_et_texts  LIKE LINE OF it_et_texts,
it_et_text_lines  TYPE STANDARD TABLE OF BAPI_ALM_TEXT_LINES ,
wa_et_text_lines  LIKE LINE OF it_et_text_lines,
it_et_prts  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PRT_E ,
wa_et_prts  LIKE LINE OF it_et_prts,
it_et_costs_sum  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_COSTS_SUM_E ,
wa_et_costs_sum  LIKE LINE OF it_et_costs_sum,
it_et_costs_details  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_COSTS_DETAIL_E ,
wa_et_costs_details  LIKE LINE OF it_et_costs_details,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
it_extension_in  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extension_in  LIKE LINE OF it_extension_in,
it_extension_out  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extension_out  LIKE LINE OF it_extension_out,
it_et_reforder_serno_olist  TYPE STANDARD TABLE OF BAPI_REFORDER_SERNO_OLIST ,
wa_et_reforder_serno_olist  LIKE LINE OF it_et_reforder_serno_olist,
it_et_serviceoutline  TYPE STANDARD TABLE OF BAPI_ALM_SRV_OUTLINE ,
wa_et_serviceoutline  LIKE LINE OF it_et_serviceoutline,
it_et_servicelines  TYPE STANDARD TABLE OF BAPI_ALM_SRV_SERVICE_LINE ,
wa_et_servicelines  LIKE LINE OF it_et_servicelines,
it_et_servicelimit  TYPE STANDARD TABLE OF BAPI_ALM_SRV_LIMIT_DATA ,
wa_et_servicelimit  LIKE LINE OF it_et_servicelimit,
it_et_servicecontractlimits  TYPE STANDARD TABLE OF BAPI_ALM_SRV_CONTRACT_LIMITS ,
wa_et_servicecontractlimits  LIKE LINE OF it_et_servicecontractlimits,
it_et_permit  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PERMIT_READ ,
wa_et_permit  LIKE LINE OF it_et_permit,
it_et_permit_issue  TYPE STANDARD TABLE OF BAPI_ALM_ORDER_PER_ISSUE_R ,
wa_et_permit_issue  LIKE LINE OF it_et_permit_issue.


ld_number = some text here

"populate fields of struture and append to itab
append wa_et_partner to it_et_partner.

"populate fields of struture and append to itab
append wa_et_operations to it_et_operations.

"populate fields of struture and append to itab
append wa_et_components to it_et_components.

"populate fields of struture and append to itab
append wa_et_relations to it_et_relations.

"populate fields of struture and append to itab
append wa_et_srules to it_et_srules.

"populate fields of struture and append to itab
append wa_et_olist to it_et_olist.

"populate fields of struture and append to itab
append wa_et_oprol to it_et_oprol.

"populate fields of struture and append to itab
append wa_et_texts to it_et_texts.

"populate fields of struture and append to itab
append wa_et_text_lines to it_et_text_lines.

"populate fields of struture and append to itab
append wa_et_prts to it_et_prts.

"populate fields of struture and append to itab
append wa_et_costs_sum to it_et_costs_sum.

"populate fields of struture and append to itab
append wa_et_costs_details to it_et_costs_details.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_extension_out to it_extension_out.

"populate fields of struture and append to itab
append wa_et_reforder_serno_olist to it_et_reforder_serno_olist.

"populate fields of struture and append to itab
append wa_et_serviceoutline to it_et_serviceoutline.

"populate fields of struture and append to itab
append wa_et_servicelines to it_et_servicelines.

"populate fields of struture and append to itab
append wa_et_servicelimit to it_et_servicelimit.

"populate fields of struture and append to itab
append wa_et_servicecontractlimits to it_et_servicecontractlimits.

"populate fields of struture and append to itab
append wa_et_permit to it_et_permit.

"populate fields of struture and append to itab
append wa_et_permit_issue to it_et_permit_issue.

SAP Documentation for FM BAPI_ALM_ORDER_GET_DETAIL


This method reads the order data for an order

EXAMPLE ...See here for full SAP fm documentation









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 BAPI_ALM_ORDER_GET_DETAIL or its description.