LoadInstance (Method) 

Definition

Method that loads the data content of a SAPData object from a file.

Remarks

The method is usually called when data flows from the R/3 System to the form and is to be displayed by the form. This is the case, for example, when a work item is executed. The form is then started by the SAPforms Helper and the R3F file is forwarded as a parameter. The existence of a parameter when the form is started ensures that the LoadInstance method is called in the Init() method of the SAPform object. The GetData method is usually called after the LoadInstance method.

Parameter

Description

Path

Complete path designation

Classification 1

LoadInstance

ß SAPData Class

ß SAPforms Data Plug-In for Workflow

Properties

Loads the R/3 workflow information from an R3F file to the SAPData object. The current container element values can be interrogated and manipulated via the SAPData.Value and SAPData.Fields(s).Data properties in particular.

Classification 2

LoadInstance

ß SAPData Class

ß SAPforms Data Plug-In for Function Modules

Properties

Implementation of the SAPData interface for R/3 function modules (BAPIs).

Classification 3

LoadInstance

ß SAPData Class

ß SAPforms Data Plug-In for IDoc

Properties

Loads an IDoc instance from a file.

Builds the segments list from the records in the file. This method will only function correctly if the Templates list containing the entire IDoc meta structure exists. The structure of each segment in the Segments list is derived from the corresponding segment in the Templates list.

Classification 4

LoadInstance

ß SAPData Class

ß SAPforms Data Plug-In for Demo

Properties

The method saves the contents of a field in the FieldValues array. This method requires that the elements be saved in a fixed order. Even though the field name is contained in the file, it is not evaluated.