cancel
Showing results for 
Search instead for 
Did you mean: 

Create a file in SAP CPI

Mari_Ma
Explorer
0 Kudos

Hey,

Is it possible to create a file within SAP CPI and add it to resources with groovy script ? 

I found this blog that get file from ressources is it possible to do the opposite and add file to ressources ? 

 

GregorSchuetz
Explorer
0 Kudos
Hello Mari_Ma

Accepted Solutions (0)

Answers (1)

Answers (1)

GregorSchuetz
Explorer
0 Kudos

Hello Mari_Ma

You can create a file with a groovy step and it will automatically appear in the references/resources tab:

Step 1: Create groovy script step:

GregorSchuetz_0-1715543700303.png

Step 2: Create new groovy script draft:

GregorSchuetz_1-1715543775545.png

Step 3: Create groovy script (will automatically appear in the references/resources tab):

GregorSchuetz_2-1715543839041.pngGregorSchuetz_3-1715543886069.png

You can't name the files unless you upload them from your system:

GregorSchuetz_4-1715543960030.png

GregorSchuetz_5-1715543977400.png

Generally anything you create or upload is automatically shown in the references/resources tab. E.g. Java Scripts, XSD Schemas, XSLT Mappings, Message Mappings etc. For some types you can add them inside of the resources but with scripts you apparently can only upload files there:

GregorSchuetz_0-1715545086432.png

Kind regards,
Gregor

Mari_Ma
Explorer
0 Kudos

Hey Gregor ;

Thank you for your response but i want to generate a file with groovy script and add it to ressources. I found out that in integration suite we can't manipulate files within iFlows