Variable Substitution for Filename

Posted on May 03, 2010 at 12.27 PM - Kuala Lumpur, Malaysia

Sometimes we want to set the file name at the target site with certain name. Probably because there is some intelligence behind it. For that purpose, SAP has added the variable substitution concept in SAP file adapter. Below is the way to do it.

1. Create one element at the source XML so that we can store the file name based on what ever logic from the sending system

2. Configure the File Adapter as follows:

2a. Populate field File Name Scheme with %filename%

2b. At the advanced tab, substitute the variable with the payload data

Life is beautiful! Let's make it meaningful and colorful!