PS-EPS: Exchanging Network Data 

To exchange data between the R/3 System and external project software, use the following function modules:

How Do the Function Modules Work?

In each function module there is the parameter OBJECT_METHOD with which you specify the actions, so-called object methods, for example, Read, Create, Update, or Delete to be performed on network objects such as activities or relationships. For example, the object method Read is used to export data from the R/3 System. Some of these object methods require you to specify the individual fields which are called "attributes". The attributes for the network objects are exchanged using either ATTRIBUTE_LINES or ATTRIBUTES . The table field REFNUMBER links the object methods in OBJECT_METHOD with the attributes in either ATTRIBUTE_LINES or ATTRIBUTES.

Some external project software requires information on the units and calendars as well as project editing masks for the project numbers used by the networks so that it can read network data. Refer to the user manual or online help of the external project software to find out if your software requires this information.

When you perform object methods, the function modules issue success or error messages to a message log.

PS_SYSTEM_EXPORT

This function module allows you to export data out of the R/3 System using the method Read. You specify the range of objects to be read in SELECT_PARAMETERS .

In R/3 Release 3.1G PS_SYSTEM_EXPORT always reads the data from the database and not from temporary buffers.

The syntax of the function module PS_SYSTEM_EXPORT

CALL FUNCTION ‘PS_SYSTEM_EXPORT’

EXPORTING

SEPARATOR like IFFIELDS-SEPARATOR

PROHIBITOR like IFFIELDS- PROHIBITOR

ATTRIBUTES_LENGTH like IFFIELDS- ATTRBSLENG

UNIT_MODE like IFFIELDS- UNIT_MODE

FILE_IN like RLGRAP-FILENAME

FILE_OUT like RLGRAP-FILENAME

TABLES

SELECT_PARAMETERS structure IFPARAMS

DEFINITIONS structure IFDEFINE

OBJECT_METHODS structure IFOBJMETHD

ATTRIBUTE_LINES structure IFATTRIBS

ATTRIBUTES structure IFATTRIBUT

PS_SYSTEM_IMPORT

To import data to the R/3 System you use the object methods Create or Update. All objects that you want to create cannot already exist in the R/3 System, whereas all objects that you want to update must already exist. In contrast to PS_SYSTEM_EXPORT , you do not have to specify a range of objects, therefore there is no table for selecting parameters.

All modifications of the R/3 System are temporary until you perform object method PsSystem.Save. Once you have performed PsSystem.Save, you must log off and log back on to the R/3 System to perform further object methods.

When an error occurs during import, the R/3 System issues an error message and may even continue processing. However, it will not save the data.

The syntax of the function module PS_SYSTEM_IMPORT

CALL FUNCTION ‘PS_SYSTEM_IMPORT’

EXPORTING

SEPARATOR like IFFIELDS-SEPARATOR

PROHIBITOR like IFFIELDS- PROHIBITOR

ATTRIBUTES_LENGTH like IFFIELDS-ATTRBSLENG

UNIT_MODE like IFFIELDS- UNIT_MODE

FILE_IN like RLGRAP-FILENAME

FILE_OUT like RLGRAP-FILENAME

TABLES

DEFINITIONS structure IFDEFINE

OBJECT_METHODS structure IFOBJMETHD

ATTRIBUTE_LINES structure IFATTRIBS

ATTRIBUTES structure IFATTRIBUT