cancel
Showing results for 
Search instead for 
Did you mean: 

Append IDoc number to Filename in HCI

ramu_g4
Participant
0 Kudos

Hi Experts,

Our scenario is IDoc --> File. We need to append IDoc number from control record of sender IDoc and generate the filename and post it to SFTP server using SAP HCI. Please guide me to achieve this in HCI.

Thanks,

Ramu.

Accepted Solutions (0)

Answers (3)

Answers (3)

ramu_g4
Participant
0 Kudos

Hi Shivaram,

Can you please help me to resolve this since above configuration is not working for me.

Thanks,

Ramu.

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Ramu,

Please find the below blog which will help you to achieve the same.

https://blogs.sap.com/2016/07/10/sap-hcp-is-sap-hci-dynamic-configuration-for-sftp-adapter/

Regards,

Sriprasad Shivaram Bhat

ramu_g4
Participant
0 Kudos

Hi Shivaram,

Thanks for your blog, but I did not see sample payload here. My sample payload is something like below screen shot:

I maintained the below properties in "Content Modifier" step but no file is generated in target directory.

In the SFTP receiver channel I did not maintain "Directory" and "File Name".Kindly help me to resolve this.

Thanks,

Ramu.

apu_das2
Active Contributor
0 Kudos

Use file:name expression if you want to maintain directory along with file name and its extension.

Thanks,

Apu

ramu_g4
Participant
0 Kudos

Hi Apu,

Thanks for your answer.Can you please elucidate on how to use file:name .

-Ramu.

AlexanderApel
Participant
0 Kudos

Hi Ramu,

u can use Dynamic COnfiguration in your Message Mapping (https://blogs.sap.com/2015/08/26/dynamic-configuration-usages-in-sap-pi/).

ESR: In your Mapping, set key "idocNum"

IntegrationEngine: in Receiver Channel -> Advanced Tap -> aktivate "Use Adapterspecific Message-Attributes" and fill "Filename Attribute Name" with "idocNum"

Regards,

Alex

ramu_g4
Participant
0 Kudos

Hi Alex,

Thank you for your time. We are working on SAP HCI not SAP PI, need help on Content modifier properties.

Thanks,

Ramu.