Skip to Content
avatar image
Former Member

Dynamically creating target folder based on file-name

Hi,

My Scenario is as follows:

It is a File-to-File Logical Bypass(Where no mapping is included) Scenario.I just need to pick the file from the SAP Application server and place it in folder WIN2K server.Here the file-name comes as RAW.<Company-code>.<Time>.csv. Here the <Company-code> in the file-name is not fixed, it varies.Now the task is to create a folder dynamically for each <Company-code> and place the file in that folder.That is when a file comes with a particular <Company-code> it has to be placed in that particular <Company-code> folder only.Here XI has to dynamically choose the target folder based on the <Company-code> in the file-name.

Any suggestions on this?

Thanks and Regards,

Bhargav

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 04, 2007 at 05:02 AM

    Hi,

    I think this can be done using variable substitution.

    Check this link.

    http://help.sap.com/saphelp_nw70/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

    Regards,

    Sudheer.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 04, 2007 at 05:10 AM

    Hi,

    This can be done by variable substitution if there is mapping involved.But here as this a Bypass scenario there is no mapping to be done and we have to do it that way only.Is there any other alternative where it can be done.

    thanks and Regards,

    Bhargav

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 04, 2007 at 05:15 AM

    Hi Bhargav,

    This can be done using the variable substution method but the difficulty in this is you have to extract the companycode from the filename and have it in the payload so that with using the variable substution method the target folder can be determined.

    <a href="/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12 to the problem encountered using Variable Substitution with XI-SP12</a> By Sravya Talanki

    Regards

    San

    <a href=" to set the thread to solved when you have received a solution</a>

    Where There is a blogwww.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog> there is a Way.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I am really sorry to tell you that i have no idea how they are developed. It depends on which OS the target system is running on.

      Regards,

      Sudheer.