Skip to Content
0

Append IDoc number to Filename in HCI

Jul 24, 2017 at 07:28 AM

107

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Jul 24, 2017 at 07:42 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Alex,

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

Thanks,

Ramu.

0
Sriprasad Shivaram Bhat Jul 24, 2017 at 09:16 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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.

snip.jpg (56.7 kB)
0
Former Member
Ramu G

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

Thanks,

Apu

0

Hi Apu,

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

-Ramu.

0
Ramu G Jul 24, 2017 at 01:22 PM
0

Hi Shivaram,

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

Thanks,

Ramu.

Share
10 |10000 characters needed characters left characters exceeded