Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Global variables in Java Mapping

Hi,

I have a java mapping function in PI 7.1 that transforms an XML document to a legacy data structure which eventually is written to a flat file. The file name is required to be sequenced for each mapping run. For example,

1. The first message generates FILE_001.dat

2. the second message generates FILE_002.dat

3. the counter resets to 001 after 999.

Due to the complexity of the mapping, I have to use a Java class to map this.

What is the best way possible to achieve this? I wonder this can be achieved using the GlobalContainer, but I am not sure whether I can access this class from within AbstractTransformation class.

Any pointers?

Thanks and best regards,

Kapila

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question