Dynamic filename configuration via custom EJB

Hi Experts,
                    We are doing a poc on whether we can do the dynamic filename configuration,i.e. set the file name dynamically in a custom EJB deployed on the server and called in the sender comm. channel of any J2EE based adapter.
The requirement is for some interfaces, there is no mapping requirement other then setting the filename dynamically, which maybe based on a certain value of the input file or a specific portion of string in the payload.
The custom EJB takes the namespace and attribute as input parameters along with other string manupulation parameters to determine the receiver file name. That is if we are using sender JMS adapter, we can have namespace = http://sap.com/xi/XI/System/JMS and attribute as DCJMSMessageProperty1. The bean would read the value and perform the manipulation based on certain other input parameters and set the file.
There is one particular bean : AF_Modules/DynamicConfigurationBean but it does not allow us to manipulate the filename.
Any help would be much appreciated.
Regards,
Shiladitya

Hi,
please refer to the following links for your reference
Re: Reading Dynamic Configuration information in side adapter module.
Re: Dynamic Filename in File adapter
Regards,
Bhanu

Similar Messages

  • SFTP Dynamic Filename Configuration Issue

    Hi Experts,
    I am using SFTP adapter which is provided by SAP as a add-ons, and I have configured FTP to SFTP (Without IR). I have done all the nessary setups in ASMA properties as well , also I have maintained the filename as " * "  in channel adapter parameters. but its writing file in receiver side as *.<timestamp>. as default "localejbs/CallSapAdapter" module is configured, Is it required to maintain any extra Modules , if any please suggest me .
    Thanks
    Raja

    Hi Javi ,
    Thanks for your response ,
    Here I am tring FILE to SFTP (without IR) Bulk Transaction without any mapping,
    please find the screen for your reference .
    Adapter fileparameters
    ASMA propertity :
    Regards
    RAJA

  • Compare Host Configurations via custom script

    I have a verification shell script that I have on my servers. The script goes off and responds with COTS versions, deployment versions, software bundles, and various other pedigree information about that server. It is beneficial to me, in that I can quickly analyze what software is sitting on a specific server. I can run this script from OEM 12c, using the run Host command and see the results in a clean GUI fashion.
    My dilemma is this: I would like to be able to save or store a process to leverage OEM to automate this procedure...on multiple servers, and then do a comparison of the two results. So basically, run the script on server 1 and server 2...and show a comparison (somewhat like the configuration comparison tool) of the results of the two server scripts...showing what is identical and what is different on each server. Is something like this possible?
    One idea I had was to design a plugin to create a new target type, that stores all of the results of this script in a target. Then doing a comparison of those targets would show me the differences. That is a long drawn out process and I am not really familiar with it. So I am looking for some additional ideas from other users...Thank you ahead of time.

    Guinea,
    What you need is custom configuration collection. This feature will allow you to register your script for scheduled execution. the output of this script is parsed and stored in the EM repository and can be used for comparisons, searching, report generation, etc.
    Refer to the following documentation:
    http://docs.oracle.com/cd/E24628_01/em.121/e27046/config_mgmt.htm#BABBDHCB

  • Dynamic Configuration of custom Context Objects: is it possible?

    Guys,
    is it possible to use Dynamic Configuration for custom Context Objects as we normally do to technical context objects?
    Also, is it possible to use a context object in receiver determination, even if it is not assigned to a message interface?
    My case: I need to use condition at receiver determination but I dont want to read a field from payload. Instead, I want to write that context object with dynamic configuration and use it at receiver determination runtime.
    I want to do this in order to avoid having to extend the payload's message type because of this extra field for condition (actually, its not that I dont want to, its that I cant. The message type is defined by 3rd party and cant be changed). If it is possible to keep that information at header instead of payload, it'd be great.
    Kind regards and thanks in advance,
    Henrique.

    Hi,
    >>>>>Just a last comment: do you need to deploy any code for the adapter on SDM or just the "fake adapter metadata file" is enough?
    no SDM
    just the metadata file as per my blog
    glad this is what you wanted
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Configuring a custom fax cover page to send via SMTP

    Hi,
    Does anyone know how we can configure  a custom fax cover page in the case of sending fax via SMTP, for instance in the process of sending the payment advice, associated with transaction F110? I have a situation where a fax cover page that clearly was developed (maybe SAPSCRIPT) is being sent along with the document (wich was created as an attachment to the email), but don´t understand where it came from and i want to inhibit it from being sent.
    Thanks,
    Bruno

    Hi Hasan,
    I have similar requirement. I see your post is pretty old and hope you would have found the solution at that time.
    Could you please share it with me?
    Thanks
    Puneet

  • Dynamic Filename in BPM process (SOAP with attachm. and PayloadSwapBean)

    Hello together
    I have the following BPM process:
    1. IDoc=>WebServiceRequest
    2. WebServiceResponse (payload) => IDoc
    3. WebServiceResponse (attachment) => File
    XI receivs an IDoc an map it to an WebService. The Webservice is called by XI and we receive the WebServiceResponse including a PDF attachment.
    The challenge is to store the PDF attachment with a dynamic filename from the payload of WebServiceResponse.
    We use the PayloadSwapBean to change the payload to the PDF attachment. But then we are not able to access the required information on the original WebService-XML-Response via variable substitution.
    Is there a solution in the standard or have we to use a custom adapter module?
    Thx
    manuku

    Hi Jayasimha,
    We can do this by "Adapter Specific Message Properties" of ur comunication channels.
    1.If u want to keep the output filename same as input filename, no need to use the UDF. only the 'adapter specific parameters' in both sender n receiver file adapter will do that.
    In case if u want to get the filename inside our mapping we have to create a user defined function
    which will return the filename and map it to one of our XML tags. 2nd point gives solution 4 that:
    2. If u want to generate an output file taking some input from the payload,then u hav to use the UDF.There u hav to populate the name.
    Pretty much.... if you set an attribute from the sender side, for example, you can use a UDF and access the particular attribute sent and use it in the mapping. In another example, where no attributes are sent from the sender, you can still actually set a particular attribute, say a filename derived from the payload, using a UDF, and enable the receiver attribute to use it. That's where the UDFs come in - either to get or set particular adapter specific message attributes.
    This will be a very helpful blog which solves ur query:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Vinod.

  • How to pass dynamic filename to Receiver JMS channel

    Hi experts,
    I want to pass the dynamic filename to receiver JMS message Properties.
    for example
    I am passing directory name via adapter module AF_Modules/DynamicConfigurationBean with key and value combination like below. How to pass dynamic filename value to a dynamic property ( say DCJMSMessageProperty1)
    eg.
    key.0 - >insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    value.0 - >  testdirectory ( which is static value)
    Note: Im have not created any ESR object . i just have to bypass the file to a jms queue. I have used AAE integrated configuration scenario ( file to jms )
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:45 PM
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:46 PM

    Already given link for the dynamic configuration code snippet in the earlier reply... Below is the code snippet
    Note: Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC
    //UDF code
    String filename="";
    String NameSpace = "http:/"+"/sap.com/xi/XI/System/JMS";
    try{
          DynamicConfiguration conf = (DynamicConfiguration) param.get(
            StreamTransformationConstants.DYNAMIC_CONFIGURATION);
          DynamicConfigurationKey key  =  DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",   "FileName");
           // read filename value
           filename = conf.get(key);     
          // So far we extracted filename value .. now do your logic  something like this...
          DynamicConfigurationKey key2 = DynamicConfigurationKey.create(NameSpace,"yourjmsvalue goes here");
           conf.put(key2,filename);
         } catch(Exception e){

  • Duplicate rows in AdvancedDataGrid when pushing updates via custom Assembler?

    We are trying to use LCDS transactions to dynamically push updates from a server side application via custom Assembler to AdvancedDataGrid.  Latter is using fill result ArrayList as its data source.
    Unfortunately we haven't been fully successful thus far. Grid shows fine initial snapsot delivered by fill but subsequent record updates result in a duplicate rows shown in a grid. 
    We are using Flex 3, SDK 3.5 and LCDS ES 2.6.1.
    Here is the relevant code in our custom assembler to do the update push:
    _results.add(dataUpdate); // _results is the ArrayList object returned with data on the original fill
    DataServiceTransaction dtx = DataServiceTransaction.begin("FOO", false);
    dtx.addItemToFill(_assemblerId, _currentParams, _results.size()-1,dataUpdate);
    dtx.commit();
    // we see this method gets called as result of the code above
    public Object getItem(Map identity) {
          Object item = null;
          String id = identity.get("ID").toString();
          for (LinkedHashMap<String,Object> itemMap : _results) {
          if (itemMap.get("ID").equals(id)) {
                item = itemMap;
           break;
          return item;
    And finally here is the destination configuration for the assembler in the data-management-config.xml file:
    <destination id="updates">
      <properties>    
             <source>UpdatesAssembler</source>
            <scope>session</scope>
      <auto-sync-enabled>false</auto-sync-enabled>
      <metadata>
                     <identity property="ID"/>
      </metadata>
      <network>
                     <paging enabled="false"/>
      </network>
    </properties>
    </destination>
    And naturally, we bind the datagrid dataProvider to the array collection returned by the original fill call.
    As stated above, this solution results in two rows of the same data appearing in datagrid for every updated pushed by the assembler.
    Can you please advise what are we doing wrong.
    Thanks!

    What events are coming back to the client?
    If you add an event listener to the dataService object in ActionScript, you can see what events are coming in.
        dataService.addEventListener(MessageEvent.RESULT, resultHandler);
    This might help diagnose it.

  • Dynamic Filename in Fileadapter

    Hi all,
    I like to use the new feature (SP15) of the "Adapter Specific Message Properties" but with out success. I have read Michaels Blog "XI: The same filename from a sender to a receiver file adapter - SP14" but it give me not a clue how to use these properties during the normal receiver configuration and also the manual is not very clear about it. I have set a Variable with "FileName    message:FileName" (I have tried also "message:File_Name") Than I have used this filename Variable in the field "Filename Schema" like %FileName%. But I allways got this error: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: Unknown message header category 'FileName' for variable 'FileName'.
    What have I missed out here?
    Thankx
    Manfred Schmidt-Voigt

    Hi Manfred,
    The dynamic filename generation concept is as follows.
    In your filename field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • ABAP mapping split messages and dynamic filename

    Hello,
    i have set up a IDOC to file scenario where the IDOC is split into several files, which works fine. In addition to this it is required to set a dynamic filename out of the ABAP mapping for each file. If only one file is created this works already as well but how do you set the dynamic configuration when the messages are split?
    Regards,
    Andreas
    Edited by: Andreas on Feb 26, 2009 9:09 AM

    you cannot do dynamic configuration for message splits. The below is from SAP help.
    Adapter-Specific Attributes and Multi-Mappings
    In multi-mappings, there are multiple message headers with adapter-specific attributes. The mapping API can only access one message header. This has the following consequences depending on whether there are multiple source or target messages:
    u25CF     1:n Transformation
    If there are multiple target messages, the header for the adapter-specific attributes is copied for each message. This means that you can only create one header for all adapter-specific attributes, and not individual headers.
    u25CF     n:1 Transformation
    This variant is only possible for multi-mappings in integration processes. If there is more than one source message, read-access to the adapter-specific attributes of the various message headers is not possible at runtime.
    u25CF     m:n Transformation
    All afore-mentioned restrictions apply here. Developers can at most write the same adapter-specific attributes for all target messages to the header, without read-access to the attributes of the source messages. m:n transformations are only supported within integration processes.
    What i will suggest is to use BPM to have the message split i.e 1:N mapping and then after that have another mapping 1-1 to have the dynamic configuration

  • SOAP Receiver : Dynamic URL configuration vs. TAuthKey capability

    Hello all,
    I plan to use dynamic URL configuration of web service URL in SOAP Receiver CC. I got an idea, which is more or less described on SDN already. But one thing bothers me a lot.
    In my scenario we talk about 10 and more WebServices' URLs to be called dynamically. The WS call will include also authorization username:passwd and it is expectable, that each WS will have different uname:passwd definition to be authorized with.
    I made a capability analysis of SOAP Receiver CC - tab Advanced - Authetication keys and there are prepared only 10 possibilities to define password for authentication key (which I'll handle to CC via TAuthKey parameter).
    In the help page http://help.sap.com/saphelp_nw04s/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm there is a note regarding authentication key:
    If authentication is required for the receiver system, you can enter a password with confirmation for each key value. This means that you do not need to write passwords in the enhanced message header.
    So in other words there should be a way, how to send to CC even the password with other adapter-specific message attributes. (or maybe I miss the meaning of this comment, like the other way is to develope own module for CC and process additional attribs from enhanced message header)
    Does anyone have some experience with handling the authentication data in "enhanced message header" ?
    Thanx for you info in advance.
    Regards
    Tom

    Hi all,
    I got an idea that the solution could be to use "Enhanced receiver determination" and use a set of Services-CommChannels with special naming convention. With this (little bit complicated) scenarion I'll get a possibility to define more then one SOAP Receiver CC => I'll get more than 10 options to store the logon password.
    What do you think ?
    Points for ideas guaranteed.
    Tom

  • Does Seeburger's SFTP adapter support dynamic filename creation

    Hi all,
    Does the SFTP adapter support dynamic filename creation.
    If yes, then do we have to use UDF's and are there any specific settings that have to be done in the SFTP communication channel.
    Please provide a blog which helps in the configuration process of the above case.
    thanks,
    younus

    Dynamic Creation of File using counter in Seeburger Variable:
    1. Configuration Needed in the Communication Channel:
    The process of dynamic creation of files can be done we have to select the following checkbox in the receiver channel:
    Dynamic Attribute in receiver Channel:
    Import the following modules:
    Localejbs/Seeburger/solution/sftp
    Localejbs/Seeburger/AttribMapper
    Localejbs/ModuleProcessorExitBean
    Enter  the desired file naming convention:
    Use the Parameter GetCounter("ID") to the place where the counter is expected to come.
    2. Configuration Needed in the SeeBurger Workbench:
    If the J2EE server is listening on a port different from 50000 (which is the standard for the SAP client 000), the port number must be configured:
    Login into the seeburger workbench using the URL
    http://<localhost>:<port number>/seeburger/index.html
    Select Property Store.
    Create or edit the following property:
    Parameter
    Value
    Namespace
    http://seeburger.com/xi/SeeFunctions
    Key
    provider.servlet.server
    Value
    http://localhost:50000/ (where the port number 50000 must be set
    accordingly to the J2EE server configuration).
    Note: The configured value (server URL) has to end with a slash (/). Otherwise,
    SeeFunctions will not work correctly.
    If we need to start the counter from any specific value , it can be configured in the SeeBurger workbench, this value can be maintained in Mapping Variables :

  • Dynamic filename in XI

    Hi,
    In XI SP12 is possible to use dynamic filename? I need to generate a filename in Adapter using the content of an element in message, how I do it?
    thanks.

    Hi Elton,
    The dynamic filename generation concept is as follows.
    In your filename field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • Dynamic filename in receiver AS2 adapter in B2B Add-on

    Hello Experts,
    Can you please let me know how we can put dynamic filename in the receiver AS2 adapter for B2B Addon on SAP 7.4.
    Thanks
    Saurabh

    Hi Ryan / Experts,
    Let me explain you in more detail.
    In the receiver AS2 Communication channel, if I keep the Filename field as blank as shown below, then in the Mendelson inbox folder, a file is generated with the name "ASJAVA_DX5" which is my business component name.
    If I fill the filname field for example with "CONTRL", then in the Mendelson inbox folder, a file is generated with the name "CONTRL".
    This is my requirement because, suppose i trigger this interface "first time", a file with static name (ASJAVA_DX5/CONTRL ) would be generated in the inbox folder. If I trigger this interface "second time", since the file already exists with same name, it is not overwritten and I cannot check the output of 2nd trigger . Contents are not overwritten.
    To solve this problem + as a general requirement, I wish to have this name to be dynamic, atleast with date+timestamp.
    Can you please help.

  • Terms of payment made optional in account group configuration of customer

    Hi Experts,
    I have made terms of payment optional in account group configuration of customer master for one time customer but it is showing me mandatory  when I am creating or changing customer.
    Is any body has any idea why this is happening?
    Thanks
    Krushnakumar Rathi

    Hi
    Select the Relevant account group
    Double Click on the Company Code data under Field status you will get another screen
    In that Screen Double click on the Payment Transactions under selection group and check the field "terms of payment" is Required entry or optional entry , mention Optional Entry
    Same as Double Click on the Sales data under Field status you will get another screen
    In that Screen Double click on the Billing under selection group and check the field "terms of payment" is Required entry or optional entry , mention Optional Entry
    Regards,
    Prasanna

Maybe you are looking for

  • Are files stored in icloud backed up by Apple?

    Three related questions. I've started storing some Pages and Numbers files in my iCloud account so I can access them on my iPad with the iOS versions of those two applications. I use Time Machine on my Mac for backup, but if I have my only copy of a

  • Opening Quark files in InDesign

    Hello I've recently made the move from Quark to InDesign as I've started a new job and the designer I have replaced used InDesign for the vast majority of work. However, there is a 200 page price list which is issued every year and which has always b

  • OID multiple realms log in issue

    Hi All, I am using OID in a prototype to store users in different organizations. I have done this by creating multiple realms. I am configuring OID with OBIEE so users in OID can log into OBIEE. I am facing an issue when 2 users have the same userid

  • [device manager] permanent show hidden devices

    Hi there i would like to permanently enable the view of hidden devices. Yes, i´ve already set the variable DEVMGR_SHOW_NONPRESENT_DEVICES and yes i know that i have only to click the View menu, and then select Show hidden devices. But this selection

  • Problem going from 510 sp8 to sp9

    Hello,           I am trying to upgrade my 510 installation to sp9 from sp8.           Now, whenever I try to access a jsp page, I get:           Mon Oct 22 20:46:40 PDT 2001:<E> <ServletContext-General> Servlet failed with Exception           java.l