Creating Arrays

Procedure

You can create an array for an object by choosing the Create Array pushbutton. If you choose the pushbutton, PCo displays the relevant dialog box.

The following types of arrays are possible:

  • Array with predefined size

    You can give the Array Size field a fixed number. PCo then creates a corresponding number of nodes for the selected field.

  • Array with dynamic size

    If you are using enhanced notification processing, you can also define arrays with a dynamic size. The size of the array is then determined by the program logic. In this case, you can specify a letter in the Array Size field, for example, k. PCo then creates a subnode for this indexed variable with the description k. The lower-level variables of the subnode then acquire the name <Variable Name>[<Index Variable>], for example, SFC [k].

  • Two-dimensional arrays

    When you use enhanced notification processing, you can also define two-dimensional arrays.

    Analog to one-dimensional arrays where you define an individual control variable, you define two control variables for two-dimensional arrays. You then call the lower-level variables <Variable Name>[Index Variable 1][Index Variable 2], for example, DESCRIPTION[m][n].

More Information

For more information about arrays, see the Implementation Guide for Enhanced Notification Processing (ENP) (paragraph 5.3.2.) on SAP Service Marketplace under Start of the navigation path/instguides Next navigation step SAP Business Suite Applications Next navigation step SAP Manufacturing Next navigation step Plant Connectivity Next navigation step Plant Connectivity 15.1End of the navigation path.