Dynamically naming a file using a send operation in B2B

Hello,
I am using a send operation in B2b adapter which drops a file in a particular location.
Right now its dropping a file as default naming standard by B2B.
I just wanted to know that is there any way where we can do this dynamically?
for eg- fetching a value from the file and concatenating it to the file name pattern that is set in B2B?
need a solution.
Thanks!
Regards,
Shreya.

Shreya,
As indicated by Nitesh, use the "preserve filename" in File/FTP/SFTP channel and set the filename from the middleware using ACTION NAME B2B header. If you are passing message to B2B using AQ/JMS then use action name as -
ACTION_NAME=contentType:application/octet-stream;filename:abc.xml
If you are passing message to B2B using fabric (default) then set below headers -
b2b.contentType
b2b.fileName
Setting Content Type is optional.
You may refer -
http://docs.oracle.com/cd/E23943_01/user.1111/e10229/b2b_tps.htm#BABBCDHI
Regards,
Anuj

Similar Messages

  • I have sent several files using Adobe Send.  My recepients are not receiving them.  Is Adobe Send working?

    I have sent several files using Adobe Send.  My recepients are not receiving them.  Is Adobe Send working?

    Hi ASPA,
    I checked your account,you have cancelled Adobe SendNow Plus subscription.
    Kindly contact our chat support:http://helpx.adobe.com/x-productkb/global/service-b.html
    Regards,
    Florence

  • Dynamically generating flat file using OWB10gr2

    Hi,
    I am trying to generated an XML file using OWB10gR2.
    It is achievable to create a predefined file ie with static name or add sysdate into the file name,but can we name the file depending on the Request Id which can be provided as an Input to the mapping.
    Any suggestions will be helpful.
    Regards,
    PHD.

    You can define expressions which you might be able to be creative with;
    http://blogs.oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html
    Cheers
    David

  • How to dynamically include jsp files using jsf el in include tag ?

    Hi,
    I'm trying to get the jsp file name from my backing bean to use it in an include tag but I can't make it work
    When using this piece of code I can get the generated path
             <h:outputText value="/_partial/#{myBean.jspName}.jsp"/>whereas in this code the jsf el is not replaced by this value.
            <%@ include file="/_partial/#{myBean.jspName}.jsp" %> Have you any idea of how to solve this ? I'm currently developing for J2EE 1.4 platform.     
    Thanks for your help,
    Regards.

    If you're using JSF 1.2 and JSTL 1.2 at a JSP 2.1 environment, then you can just use <jsp:include> with unified EL.
    If you're using JSF 1.1, then you may find this article useful [http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html]

  • Read a FIle using a Sender Adapter

    Hi Experts,
    Is there any way to read a file at the external FTP Server without deleting or archiving it. I would not like to use the "Test Mode" processing Mode in the production System(  ) and also i need to schedule this adapter for 3 hours to read the file whenever it is generated  in every morning. This should be done only once ie.. one message to be created.
    We are not using any content conversion.
    In this case , we are not using any mappings but only retrieving the file from the external system.
    -Reynold

    The scheduling of your channels would always help. Use Planning Availability Times to activate the channel at 3 AM and deactivating at 6 AM.
    With the test mode, if you are sure that one file should be picked only once, then keep the poll interval as more that 180 minutes. This would ensure that between 3-6 AM, the file would be picked only once. After that the channel will get deactivated. Next day, refreshed polling will be started.
    Regards,
    Prateek

  • Getting dynamically a specific file in FTP sender adapter

    Hi all,
    I'm getting an idoc in a BPM and there's a field with a file name, which is the one I have to read in the following step.
    I'm not sure this is possible, but I'd like to hear from the PI community...
    The problem is that in the usual FTP sender comm channel, I have to specify in configuration time the folder and the pattern of the file names to be read. And in my scenario I only know that in execution time (that's possible when the FTP channel is receiver though).
    Thanks

    Oops!! I misunderstood it
    At sender, neither of them would work. In fact, there is no other direct options at sender. You have to specify the filename. As Udo suggested, you have to create multiple channels.
    Still if you could explain your BPM configuration, some solution may turn up. You said you are receiving Idoc in BPM and a file too?
    Regards,
    Prateek

  • Multiple Input Files using File adapter

    hey Experts,
    Wanted to know how i could pick up two different XML files using the Sender file adapter, which i want to process in my scenario, need ur suggestions, i dont want to use BPM. Thanks

    When you use the "additional file" feature, you have to keep in mind that the additional file enters the Integration Engine as attachment of the primary file.
    Modifying this attachment (or merging the two files) is difficult, as you can't use graphical mapping. Accessing the attachment with the other mapping techniques is often cumbersome as well.
    With a BPM, you could use two sender communication channels and correlation, but this alternative seems to be no option for you.
    Could you please tell us
    1. whether or not the two files have the same message type,
    2. which processing has to be performed afterwards and
    3. where does it go to when it leaves the XI?
    That would greatly help us.
    Kind regards,
    Dennis

  • Firefox 3.0- no problems uploading files to You Send It- now with 3.6 I get error message. Cannot upload files. Please fix this glitch.

    I was really really happy with firefox 3.0. But 2 days ago I had to upgrade to 3.6.12 in order to use Constant Contact.. I am really really really upset. I tried to send an mp4 file using You Send It and I keep getting an error message. I tried to upload a file I sent 3 days ago using firefox 3.0 and it uploaded and sent with ease. Now I cannot send any files and I am really angry as I use You Send It for my clients. I will probably have to start using a different browser if you cannot fix this problem.

    Exactly what was the error message you received?
    Have you tried using YouSendIt support? <br />
    http://www.yousendit.com/support <br />
    More than likely it is a problem that is easily fixed within that application, and not directly a Firefox issue.

  • Vaildating File name with the data in the file using sender file adapter

    Hi,
    Below is the scenario
    1)       Pick up files from a FTP server, the file name is dynamic, how do I put dynamic name in sender file adapter?
    2)       Determine if the user correctly named the file based on data in the file.
    a.       File naming structure that we will be concerned with is <company_code><accounting_time_period>.<extension>
    b.      The company code and the time period in the file name have to match the data in the file.
    i.      For example.  If the file name is 1001_200712.csv and the data in the file is for company code 1005, time period 200712, the file is incorrectly named.  Both values must be correct.
    How do we do this?

    Hi Sachin,
                    As Rightly said by Krishna, You can not put Dynamic name in sender File Adapter .You have to provide the name of the file like "*.txt" in Sender Adapter and at runtime you can access this file name by using following UDF:
    DynamicConfiguration conf  = (DynamicConfiguration) container
      .getTransformationParameters()
      .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String valueOld = conf.get(key);
    return (valueOld);
    As now you have picked up the file name at runtime.
    Now concatenate source file fields Company_code and Accounting_timeperiod using "_" as delimiter in properties.Also concat the extension .Now you have required file name.
    So using EQUALS standard function ,compare it with File Name fetched at runtime using above given UDF, and pass result as you desire to process further or not or to raise Alert to resend the file.
    Thanks & Regards,
    Anurag Garg
    You can validate this file name in Mapping itself.

  • Dynamic URL using HTTP sender

    Hi All,
    I am working on a HTTP-Proxy scenario wherin I have to use Dynamic URLs on the HTTP(sender) side.Can any one help me getting this done

    YOu cannot pick File using URL. There is only to possibilities with the help of which you can pick the file like:
    Reading or Writing file from XI directory. (NFS)
    Reading or Writing file from FTP Server. (FTP)
    You can mention any URL in File adapter and tell it to pick the file from particular URL.
    <b>Bottom line : The file adapter is use to read or write the file at the Operating System(OS) level.</b>. File adapter can also act as a FTP client means it can put
    or get the file from FTP server.
    Thanks
    Farooq.

  • Flat file name from Sender Side Dynamically into subject of Receiver Mail

    Hi All,
             I am Using a file to Mail Scenario, My requirement is to get dynamically the file name from flat file of the Sender Side into Subject of Receiver Mail Adapter and attachment of file from the Sender Side. Can anyone help me out.
    Thanks in Advance

    Hi....
              You can write udf in the message mapping to get the Dynamic file name and map that to the subject of the receiver mail.
      DynamicConfiguration conf = (DynamicConfiguration) param.get(
              StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
          // read value
          String Filename = conf.get(KEY_FILENAME);
    Regards,
    Leela

  • Using dynamic configuration to modify parameter in sender channel?

    Hi,
    I would like to be able to set the filename in an SFTP sender communication channel (based upon a name determined at runtime, which is read from another file).
    My understanding is that parameters set in dynamic configuration can only be set as part of mapping therefore I cannot see how to set these before my sender communication channel is invoked.
    Please can someone confirm if there is a method of achieving this requirement.
    Thanks,
    Alan

    Hi,
    >>>My understanding is that parameters set in dynamic configuration can only be set as part of mapping therefore I cannot see how to set these before my sender communication channel is invoked.
    they can be set anywhere in the message flow - in adapter modules too for example
    >>>I would like to be able to set the filename in an SFTP sender communication channe
    you cannot set it before the adapter starts polling from anything else
    what you can do is to create a file -> java proxy (sftp) - anything flow
    read this another file first -> call SFTP from a java proxy in a sync way to fetch the second file using the name from the first one -> do anything else what you need
    you can also do the same with one adapter - axis (put the file fetching and sftp call inside one class)
    but it  requires some java knowledge - but it would work in one sender adapter in this case
    Regards,
    Michal Krawczyk

  • Problem:obtaing file name using Dynamic configuration of file adapter

    hi all
    I am using Dynamic configuration for getting file name.
    I am getting Dynamic configuration in SXMB_MONI containg file name, but payload is empty unlike file i am sending.

    Hi All,
    Basically my requirement to get Filename in idoc segments in order to validate the posting at month end.
    Its an File to idoc scenario- GL Posting.
    Please check attached UDF and it gives error. Kindly help. Thanks

  • Easy way of procesing files using sender File/FTP adapter

    Hi experts,
    In order to process files with a sender file adapter I am interested in avoiding processing non completed files. I mean files that are still being sent. My provider send an .XML file and when the sending is completed a .CTL file with the same name (and diferent extension).
    So, my question is, wich  of the nexts is the best?
    -Implement an adapter module who recognizes the .ctl and then processes the XML file. -> Is there any standar module doing already that?
    -Use adapter standart parametrization: Run operating System Command Before/After Message Processing, some advanced parameter?
    -Doing nothing, PI only processes completed files (possible??), or if it processes a non completed you can retry.
    -Other
    Points for the best/easiest solution.
    Regards
    Gonzalo

    Hi Gonzalao,
    >>Implement an adapter module who recognizes the .ctl and then processes the XML file. -> Is there any standar module doing already that?
    No there is no such standard module available in PI
    >>Use adapter standart parametrization: Run operating System Command Before/After Message Processing, some advanced parameter?
    Again this is not possible as only after reading a file it will execute OS commands
    >>Doing nothing, PI only processes completed files (possible??), or if it processes a non completed you can retry.
    No you can' take this risk (unless there is a OS lock on the file which is being written)
    >>Other
    so i will go for other solution like:
    A batch program which will check whether a ctl file exists and if it is found then it will ove the .xml file to one folder (where pi is polling) and deletes the read ctl file.
    This batch code will be made to run for say every 5 sec or depending on the frequency of the interface
    Regards
    Suraj

  • Dynamic file name while sending to target FTP

    Hi Experts,
    we have a scenario wherein we are trying to implement dynamic file names.
    The scenario is IDOC to file, and  we need to append the data corresponding to all the IDOC triggered n a daily basis.
    Its like  the file abc_01will contain data for day 1(data of oll the IDOC in that day).For day to we need to dynamically name the file as abc_02 and so on.
    But before naming the file as abc_02 we need to check if abc01 is present or not .If abc_01 is not present then for day 2 file  we need to give the name as abc_01 and so on_.This condition is need to be checked becasue there may be the case that a file may not be picked by the script running  at the target system.
    can anyone let me know how to check whether file are correctly picked at target.
    Regards,
    srinivas.

    Hi  Srinivas,
    I think you can achieve this with the next scenario:
    - For getting all the Idocs info, you need a ccBPM to collect them, and then, download them to a file.
    - To dynamically put the filename, you need to use Dynamic Configuration at the File Receiver Adapter (in the Message Mapping, you can write a UDF.)
    - And to check if the daily file exists, you can also write an UDF and then decide the name of the output file.
    Hope this helps,
    Regards,
    Juan

Maybe you are looking for