cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically create file name in Passthrough scenario

former_member700001
Discoverer
0 Kudos

Hi All,

I have a requirement where in a pass through file to file scenario (No mapping Involved). We have to generate the file with the following file name

Input fileName:Appcode_DDMMYYYY.xml

Output FileName:AppcodeDDMMYYYY.xml (ie. By removing "_" )

Is there a way I can get the same sender file name in the target without "_" , filename is dynamic .note that we do not have mapping for this scenario .

Any help/pointer will be of great help .

jerryjanda
Community Manager
Community Manager
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment).

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.

Kind regards,

--Jerry

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190293
Active Contributor
0 Kudos

Hi Kanchana!

Sure, you can develop adapter module to get original file name from Dynamic Configuration, change it according to your requirements and put it back to Dynamic Configuration in order to use in receiver File adapter.

Regards, Evgeniy.

former_member190293
Active Contributor
0 Kudos

Hi!

In case you use NFS as file transfer protocol, you could use some script to rename the file at target side and run it using "Run OS Command" functionality of File Adapter.

Regards, Evgeniy.

former_member700001
Discoverer
0 Kudos

Thanks Evgeniy,

Can i get blogs or links regarding "Run OS command".

Is there anyother ways other than Run OS command functionality ?

can it be done through "custom adapter module"?