Previous Topic: Define the Order Details Array

Next Topic: Retrieve the Order Header

Create an EXCEXTFUN to Retrieve the Order Header and Order Details

The function EEF RTV ORDER, EXCEXTFUN type, based over the Order Detail file takes an input parameter of an order number and returns order information as output parameters as follows:

This section describes how to define the EXCEXTFUN to include parameter interface and action diagram business logic, including calls to other functions. After you complete the steps in this section, your Action Diagram should match these example screens:

scenario 6

scenario 7

Important! As a CA 2E developer, you need to understand the architectural distinction between the two mechanisms to manipulate array data, despite the ability to use a common structural definition:

Note: The function EEF RTV ORDER (Order Detail) relies on four other internal functions, as listed in the following table.

Function Name

Function Type

Based over file

RTV ORDER HEADER

RTVOBJ

Order header

RTV ORDER DETAIL

RTVOBJ

*Arrays

CRT ORDER DETAIL

CRTOBJ

*Arrays

LOAD ORDER DETAIL ARRAY

RTVOBJ

Order detail

EEF RTV Order

EXCEXTFUN

Order detail

You need to build the required internal functions and the external function EEF RTV ORDER (Order detail):

Note: The file the functions is based over is shown in parentheses.

Follow these steps:

  1. RTV Order Header (Order Header)
  2. RTV Order Detail (*Arrays)
  3. CRT Order Detail (*Arrays)
  4. Load Order Detail Array (Order detail)
  5. EEF RTV Order (Order detail)