IMPZONINV: Importing of the specific/custom fields (hidden or displayed)

This entry point is used to import the hidden or displayed custom/specific fields by loading the [M] class. It is only used for the custom/specific imports and is only actually active for the specific/custom import of shipments (IMPSDHS process).  

It is called in the TRTX3IMP process.

Call context description

After the read of a sequential file record, the specific/custom import runs as follows :

-          Transfer in the class [F] for the fields set up in the import template

-          Transfer of class [F] in class [M] :

o        Call from the generated import process WWIxxxxxx for the action SAIMSK from the specific/custom process

§         In SAIMSK : for each [M] class linked to the [F] class being processed

·         Loading by the import process linked to this screen : only involves the fields that can be entered. However, the field actions for the import screen are carried out.

·         Loading of the hidden fields in the mask

·         Call from the entry point IMPZONINV

Context and operating method

Transaction

There is no transaction in progress.

Log file

The log file is open.

Available variables and masks

The [M] classes are those of the imported object.

Variables

IMPFIC                        Abbreviation for the class [F]currently being loaded in [M]

GW_ABRMSK            Abbreviation of the class [M]

For instance

To update the field defined as specific/custom ZSPE1 in the table SDELIVERY and in the SDH2 mask.

Case IMPFIC

When “ SDH “ *

            Case GW_ABRMSK

                       When "SDH2"

If find ("[F:SDH]ZSPE1(0), [M:AOE2]ZONMSK1)

                                    [M:SDH2]ZSPE1=[F:SDH]ZSPE1

Endif

Endcase

Endcase

 Warning:

For the lines, it is necessary to use nolign to load class [M]

Open tables

The open [F] classes are defined in the OUVRE action of the import process.