cancel
Showing results for 
Search instead for 
Did you mean: 

Query regarding File name

Former Member
0 Kudos

Hi All,

We are currently working in SAP PI 7.3. We have requirement in which we have to create 2 files in the same location with different extension.

We have ASMA being used in our file name creation, hence we will have time stamp in the file name. Since the data in each files are different we have two mapping involved in our scenario.

Since we have two mappings involved, the files are created in different timestamps. But we need the file names to be same. Kindly help us on this.

Regards

Suganya.

Accepted Solutions (0)

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

HI Suganya,

If you have the two mapping in the same operation mapping you can share a variable between them with dynamic configuration (Adarsh Dhingra'blog ). You can get the timestamp machine a to share the same value between the two mappings.

Regards,

Former Member
0 Kudos

Hi Inaki,

Since the structures used in two mappings are totally different we cant take up this approach.

Regards

Suganya.

iaki_vila
Active Contributor
0 Kudos

Hi Suganya,

There is no necessary to have the same structure. If you check the code you can notice that it is using a goblal variable to put and later to get the value. You can retrieve the time machine timestamp in one UDF and put it in this variable in the next mapping you can get this value independently of you XML structure.

Regards.