SAP IWO_UI_DV_RETRIEVE_ORDER Function Module for Read Order









IWO_UI_DV_RETRIEVE_ORDER is a standard iwo ui dv retrieve order SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Order 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 iwo ui dv retrieve order FM, simply by entering the name IWO_UI_DV_RETRIEVE_ORDER into the relevant SAP transaction such as SE37 or SE38.

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



Function IWO_UI_DV_RETRIEVE_ORDER 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 'IWO_UI_DV_RETRIEVE_ORDER'"Read Order
EXPORTING
IV_ORDERID = "Order Number
IV_ACTIVITYTYPE = "Transaction Type
* IV_INCLUDE_DELETED = "Checkbox

IMPORTING
ES_HEADER = "Dialog Structure for Order Headers and Item
ET_COMPONENT_TEXTS = "Table with Texts for Components
ET_PARTNER = "Table with Partner Information
ET_RELATIONS = "List of Relationships
ET_PROD_RESOURCE_TOOLS = "Table Type for Transfer of Production Resources/Tools
ET_PROD_RESOURCE_TOOL_TEXTS = "Texts for Production Resources/Tools in Orders
ET_CAPACITY_REQUIREMENTS = "Table Type for KBEDD Records
ET_OBJECTLIST = "Internal Table Object List Processing
ET_OBJECTLIST_OPERATION_LINK = "OPROL Table Type
ES_ORDER_CHARACTERISTICS = "Properties of a Maintenance or Service Order
ET_OPER_CHARACTERISTICS = "Properties of Operations
ES_HEADER_EXT = "Order Header Fields That Are Not Included in CAUFVD
ET_COMP_CHARACTERISTICS = "Table Type - Operation Properties for the Maintenance Order
ES_HEADER_TEXTS = "Structure with Texts for Char. Values for Maintenance Order
ES_NOTIFICATION = "Generated Table for View VIQMEL
ET_ORDERCOSTS_DETAILS = "
ES_SERVICEDATA = "PM organizational data for SD documents
ES_RESPONSIBLE_PARTNER = "PM/CS Person Partner Structure
ET_HEADERTEXT = "Lines of ITF
ET_OPERATIONS = "Table of Structure AFVGD
ET_OPERATION_TEXTS = "Table with Operation Long Texts
ET_OPERATION_COST = "
ET_COMPONENTS = "Reservation/Dependent Requirements

EXCEPTIONS
ORDER_DOES_NOT_EXIST = 1 ORDER_IS_LOCKED = 2
.



IMPORTING Parameters details for IWO_UI_DV_RETRIEVE_ORDER

IV_ORDERID - Order Number

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

IV_ACTIVITYTYPE - Transaction Type

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

IV_INCLUDE_DELETED - Checkbox

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

EXPORTING Parameters details for IWO_UI_DV_RETRIEVE_ORDER

ES_HEADER - Dialog Structure for Order Headers and Item

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

ET_COMPONENT_TEXTS - Table with Texts for Components

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

ET_PARTNER - Table with Partner Information

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

ET_RELATIONS - List of Relationships

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

ET_PROD_RESOURCE_TOOLS - Table Type for Transfer of Production Resources/Tools

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

ET_PROD_RESOURCE_TOOL_TEXTS - Texts for Production Resources/Tools in Orders

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

ET_CAPACITY_REQUIREMENTS - Table Type for KBEDD Records

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

ET_OBJECTLIST - Internal Table Object List Processing

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

ET_OBJECTLIST_OPERATION_LINK - OPROL Table Type

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

ES_ORDER_CHARACTERISTICS - Properties of a Maintenance or Service Order

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

ET_OPER_CHARACTERISTICS - Properties of Operations

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

ES_HEADER_EXT - Order Header Fields That Are Not Included in CAUFVD

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

ET_COMP_CHARACTERISTICS - Table Type - Operation Properties for the Maintenance Order

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

ES_HEADER_TEXTS - Structure with Texts for Char. Values for Maintenance Order

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

ES_NOTIFICATION - Generated Table for View VIQMEL

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

ET_ORDERCOSTS_DETAILS -

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

ES_SERVICEDATA - PM organizational data for SD documents

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

ES_RESPONSIBLE_PARTNER - PM/CS Person Partner Structure

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

ET_HEADERTEXT - Lines of ITF

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

ET_OPERATIONS - Table of Structure AFVGD

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

ET_OPERATION_TEXTS - Table with Operation Long Texts

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

ET_OPERATION_COST -

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

ET_COMPONENTS - Reservation/Dependent Requirements

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

EXCEPTIONS details

ORDER_DOES_NOT_EXIST - Order Does Not Exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ORDER_IS_LOCKED - Order is locked

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for IWO_UI_DV_RETRIEVE_ORDER 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_es_header  TYPE CAUFVD, "   
lv_iv_orderid  TYPE AUFNR, "   
lv_order_does_not_exist  TYPE AUFNR, "   
lv_et_component_texts  TYPE IWOTT_COMPONENT_TEXT, "   
lv_et_partner  TYPE IWOTT_PARTNER, "   
lv_et_relations  TYPE IWOTT_RELATIONS, "   
lv_et_prod_resource_tools  TYPE IWOTT_PROD_RESOURCE_TOOLS, "   
lv_et_prod_resource_tool_texts  TYPE IWOTT_PROD_RESOURCE_TOOL_TEXTS, "   
lv_et_capacity_requirements  TYPE IWOTT_CAPACITY_REQUIREMENTS, "   
lv_et_objectlist  TYPE IWOTT_OBJECTLIST, "   
lv_et_objectlist_operation_link  TYPE IWOTT_OBJECTLIST_OPERATION_LNK, "   
lv_es_order_characteristics  TYPE IWOS_ORDER_CHARACTERISTICS, "   
lv_et_oper_characteristics  TYPE IWOTT_OPER_CHARACTERISTICS, "   
lv_es_header_ext  TYPE IWOS_HEADER_EXT, "   
lv_iv_activitytype  TYPE TRTYP, "   
lv_order_is_locked  TYPE TRTYP, "   
lv_et_comp_characteristics  TYPE IWOTT_COMP_CHARACTERISTICS, "   
lv_es_header_texts  TYPE IWOS_ORDER_UI_TEXTS, "   
lv_es_notification  TYPE VIQMEL, "   
lv_et_ordercosts_details  TYPE IWOTT_ORDERCOSTS_DETAILS, "   
lv_es_servicedata  TYPE PMSDO, "   
lv_iv_include_deleted  TYPE XFELD, "   
lv_es_responsible_partner  TYPE IWOS_RESPONSIBLE_PARTNER, "   
lv_et_headertext  TYPE TLINETAB, "   
lv_et_operations  TYPE IWOTT_OPERATIONS, "   
lv_et_operation_texts  TYPE IWOTT_OPERATION_TEXT, "   
lv_et_operation_cost  TYPE IWOTT_OPER_COST, "   
lv_et_components  TYPE RESBD_TAB. "   

  CALL FUNCTION 'IWO_UI_DV_RETRIEVE_ORDER'  "Read Order
    EXPORTING
         IV_ORDERID = lv_iv_orderid
         IV_ACTIVITYTYPE = lv_iv_activitytype
         IV_INCLUDE_DELETED = lv_iv_include_deleted
    IMPORTING
         ES_HEADER = lv_es_header
         ET_COMPONENT_TEXTS = lv_et_component_texts
         ET_PARTNER = lv_et_partner
         ET_RELATIONS = lv_et_relations
         ET_PROD_RESOURCE_TOOLS = lv_et_prod_resource_tools
         ET_PROD_RESOURCE_TOOL_TEXTS = lv_et_prod_resource_tool_texts
         ET_CAPACITY_REQUIREMENTS = lv_et_capacity_requirements
         ET_OBJECTLIST = lv_et_objectlist
         ET_OBJECTLIST_OPERATION_LINK = lv_et_objectlist_operation_link
         ES_ORDER_CHARACTERISTICS = lv_es_order_characteristics
         ET_OPER_CHARACTERISTICS = lv_et_oper_characteristics
         ES_HEADER_EXT = lv_es_header_ext
         ET_COMP_CHARACTERISTICS = lv_et_comp_characteristics
         ES_HEADER_TEXTS = lv_es_header_texts
         ES_NOTIFICATION = lv_es_notification
         ET_ORDERCOSTS_DETAILS = lv_et_ordercosts_details
         ES_SERVICEDATA = lv_es_servicedata
         ES_RESPONSIBLE_PARTNER = lv_es_responsible_partner
         ET_HEADERTEXT = lv_et_headertext
         ET_OPERATIONS = lv_et_operations
         ET_OPERATION_TEXTS = lv_et_operation_texts
         ET_OPERATION_COST = lv_et_operation_cost
         ET_COMPONENTS = lv_et_components
    EXCEPTIONS
        ORDER_DOES_NOT_EXIST = 1
        ORDER_IS_LOCKED = 2
. " IWO_UI_DV_RETRIEVE_ORDER




ABAP code using 7.40 inline data declarations to call FM IWO_UI_DV_RETRIEVE_ORDER

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



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!