Skip to Content
author's profile photo Former Member
Former Member

File to File Bypass -- Dynamic directory and file naming..!!

Hi All,

I am doing File to File Bypass scenario from SAP to NonSAP.

I need to pick the file from application server directory and post the same in receiver server.

The problem is, i have different Directories and the file names with clusters names like below

Dir : /zdata/glb/<b><cluster></b>/GLBSAP001/

File name : <b><Cluster></b>.GLBSAP001.csv

Clusters names will be like 0100,0500,0852,0489,...

Ex :

Dir : /zdata/glb/<b>0100</b>/GLBSAP001/

File Name : <b>0100</b>.GLBSAP001.csv

whenever the file comes into those directories i need to pick the file from there and place then in the below reciver servers dynamically.

Rx Dir : F:Data/ <Cluster>.

Rx File Name : <Cluster>.RCV.csv

Ex:

Dir : F: Data/0100

File name : 0100.RCV.csv.

How can i acheive this ??

whats the configuration i need to in communication channels to pick/place them dynamically??

Please sugget me and do the needful.

Thanks.

Regards

Seema.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Sep 19, 2007 at 02:15 PM

    Since you don't have mapping (and creating one for this wouldn't be a good approach) you need to use a custom module adapter to handle these changes.

    It can be placed in the receiver CC, before the CallSapAdapter module, in the module processor.

    Check this blog for reference: /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules

    Regards,

    Henrique.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2007 at 02:41 PM

    you can select the adapter specific attributes function in Sender CC, once you get the filename and directory from which it is picked, you can write the UDF to read this Dynamic configuration values and depending on this you can decide the which directory should be recievr

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 06:54 AM

    >>>File to File <b>Bypass</b>

    What do you mean by Bypass here?

    If you want to avoid mapping here (recommended for such scenarios) you cant use UDF. You have to do this inside an adapter module as explained by Henrique.

    Regards,

    Jai Shankar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 02:04 AM

    Done

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.