cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic configuration with a target ZIP file

Former Member
0 Kudos

Hi,

I have an scenario file to file. Source is a ZIP file, so CC is a FILE NFS Binary.

XI acts as a FTP mover and there aren't message mapping nor Integration directory definition .

Target and source filename it's the same.

But target directory must be defined dinamically.

For example.

Source file : filename_x1234.zip

Target file : directory x1234, filename filename_x1234.zip

Is that possible?

Thanks, in advance

Carme

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

With Java mapping, files arrive without content

Former Member
0 Kudos

Hey

In your case its not possible since you dont have any message mapping involved.

if you do have a message mapping then you can go as per help.sap documents posted by Henrique

Thanx

Aamir

Former Member
0 Kudos

Thanks, friends for your interest.

I know it's possible dynamic configuration with a message mapping.

But my problem is that source file is a ZIP containing several files.

So...It's possible to do a message mapping with a source FILE BINARY CC without content conversion?

It's possible dynamic configuration in this case?

Thanks,

Carme

stefan_grube
Active Contributor
0 Kudos

There are some work arounds:

- Use enhanced receiver determination. Here the mapping needs only provide the receiver of the system, but you can set dynamic header fields as well

- Use Java Mapping. You can copy input to output as byte array

- Use adapter modul: You can handle the dynamic headers without influencing the payload.

Regards

Stefan

Former Member
0 Kudos

Thanks,

I've solved with a external java mapping.

It's working now.

REgards,

Carme

Former Member
0 Kudos

Hi, Stefan,

In my last reply, i was too much optimistic.

My scenario is not running well, so dynamic configuration is ok but files arrive without content.

¿How can i copy input to output stream as byte array ?

I have tryed also enhanced receiver determination, but I get next error:

a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser

Thanks, in advance,

Carme

Former Member
0 Kudos

Hi,

It is not possible to specify the directories dynamically.

Thanks,

Indira D

henrique_pinto
Active Contributor
0 Kudos

>

> Hi,

>

> It is not possible to specify the directories dynamically.

>

> Thanks,

> Indira D

Of course it is!

For the target directory, at least.

Just use Dynamic Configuration (as for the filename) and fill the proper value in the mapping (UDF, f.ex.) or custom module. The technical name is "Directory" and the namespace is "http://sap.com/xi/XI/System/File", as described in http://help.sap.com/saphelp_nw70/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm.

Regards,

Henrique.