Specifyingf filename for file syndicated to port

Hi,
When a file is syndicated to port, MDM automatically generates the filename. Is it possible to append some string to this file name?
Regards,
Anoop Sahu

Hi Anoop,
you can easily change this filename with the use of XI
(dynamic configuration)
and append values from the payload of the XML file
for example - if this is your request
Regards,
Michal

Similar Messages

  • Set default filename for file save dialog

    Hi,
    I am using AxAcroPDF control to view pdf files in windows forms.
    Is there any option to set the default filename in the save dialog?
    Thanks for your help.
    Freedon

    Hi,
    I've found a solution.
    public void Open(string filePath)
    axAcroPDF.LoadFile(filePath);
    //this will set the correct name in the save file dialog.
    axAcroPDF.src = filePath;
    Thanks for your help.
    Freedon

  • Set default filename for file save dialog on Save button click

    Hi,
    I am using AxAcroPDF (version 9.0) control to view pdf files in windows forms (C#). The pdf loads into the viewer in the form. Now, when I click on the Save button in the viewer, a Save dialog pops up with a default filename having complete path info.
    If I have loaded the pdf file into AxAcroPDF viewer with filename:
    "C:\Documents and Settings\KB_Kravi\My Documents\CustomerList.pdf"
    then in the save dialog, the default filename will be:
    "C_Documents_and_Settings_KB_Kravi_My Documents_CustomerList.pdf"
    Is there any option to set the default filename in the save dialog to some short name, instead of this lengthy name?
    Thanks,
    Ravi.

    Hi,
    I've found a solution.
    public void Open(string filePath)
    axAcroPDF.LoadFile(filePath);
    //this will set the correct name in the save file dialog.
    axAcroPDF.src = filePath;
    Thanks for your help.
    Freedon

  • Set filename for file download

    Hi
    i have a servlet that sends a file to the client to be downloaded. When the client requests the file the dowload dialogue pops asking if the user wants to download/open but the name of the file is always the servlet name were it originates. Is there any way to set the filename and extension in the servlet e.g ExampleResult1234.csv and send this to the client so that when the dialogue pops up it is set?
    Current Servlet Code:
    String output = "some data from database in csv format";
            response.setContentType("application/binary");
         response.getWriter().write(output);Thanks
    David

    It would be nice for the next person who needs help with this if you posted your solutions. :)

  • UDF to get the filename for File Sender Adapter

    Hi,
    I had an requirement to get the  the Filename and map to the  target payload.
    I had configured the File Sender Adapter settings in the ID
    This is the following UDF i got from SDN.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    But when iam using this UDF iam getting an error
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_ORDER_CRS_OB_SAP_PROXY_IB_ method Filename$[com.sap.aii.mappingtool.tf3.rt.Context@54e154e1]
    Please help me in correcting the error.
    Thanks
    Srinivas

    Hi Jayson,
    actually, in the interface mapping, it doesn't give exception.
    The DynamicConfiguration is a constant retrieved from the container object, so it will never be returned as null (given that the container object was instantiated).
    Just the retrieved value will be null (since it was not previously set), but no exception occurs.
    In the message mapping, the container object is never instantiated, and that's the reason for the NullPointerException.
    Regards,
    Henrique.

  • APD, filename for file data target

    Hello,
    i am designing a APD process  with a file as process target.
    I can hardcode the file path and name in the data target properties, however i would rather set the filename by user input or by a abap routine (eg. include the date of APD execution in the file name). Is that possible?
    Thanks in advance

    Hi,
    You can use the option 'Logical File Name' option to create a dyanmic file name.
    You can define a Logical File Name in tcode 'FILE', where you can append system date, time, varaible to a static file name.
    Hope this helps.

  • SAP PI Table which stores Dynamicconfiguration(filename) for file sender

    Hello All,
    What is the SAP PI table in which SOAP header elements are getting stored. In my scenario, i need to find out the message ID for a specific file name which is picked by file sender, as file name is stored under Dynamicconfiguration of SOAP header node...
    Regards,
    Sreenivas.

    Hi Sreenivas,
    I am not sure if I have understood your requirement correctly but can't you achieve this using a UDF:
    String headerField;
    java.util.Map map;
    AbstractTrace trace=container.getTrace();
    map = container.getTransformationParameters();
    String key = "MessageId";
    headerField = (String) map.get(key);
    return headerField;
    Let us know.
    Regards,
    Shweta

  • "E_PACK_ERROR: illegal filename for a PUT" Error in Packaging a PDF file

    Hi Jim,
    As per ContentServer_Technical_Reference.pdf (page no 9) I passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
    <error xmlns="http://ns.adobe.com/adept"
    data="E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT"/>
    My Packaging XML:
    <package xmlns="http://ns.adobe.com/adept" action="add">
    <fileName>9781591439745.pdf</fileName>
    <location>ftp://username:password@myserverurl/www/folder/9781591439745.pdf</location>
    <src>http://myserverurl/folder/9781591439745.pdf</src>
    <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:title>9781591439745</dc:title>
    <dc:creator>Nicolya Christi</dc:creator>
    <dc:format>application/pdf</dc:format>
    <dc:publisher>Work Disribution System</dc:publisher>
    <dc:language>en</dc:language></metadata>
    <permissions><display/><excerpt/></permissions>
    <dataPath>C:/folder/9781591439745.pdf</dataPath>
    <expiration>2011-03-02T15:18:02+05:30</expiration>
    <nonce>LTIyNzc1Mjk4</nonce>
    </package>
    Please suggest me why the "E_PACK_ERROR http://myserverurl/packaging/Package illegal%20filename%20for%20a%20PUT" error is comming.
    I am waiting your reply...
    With regards,
    Mangal Varshney

    Hello Jim,
    I tried as you suggest not to use all three, filename, location and src. I removed the <filename> parameter from packaging xml and then try to package the same error are comming again. Jim this same code was working earlier, we are using same on our production sever till now but suddenly it stop working.
    "E_PACK_ERROR: illegal filename for a PUT"
    I checked the packaging.log file, the log message are:
    02 Mar 2011 05:41:56,673 TRACE AdeptServlet: request POST http://myserverurl/packaging/Package
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: Open jdbc:mysql://127.0.0.1:3306/adept with user=dmr_mysql_dba
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: rollback
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 2 = [B@6c2a78
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: INSERT INTO distusednonce(distid, nonce, expiration) VALUES(?, ?, ?)
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 2 = [B@6c2a78
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 3 = Wed Mar 02 06:41:56 CST 2011
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection: DELETE FROM distusednonce WHERE expiration < ? AND distid = ? AND nonce = ?
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 1 = Wed Mar 02 05:41:56 CST 2011
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 2 = 00000000-0000-0000-0000-000000000001
    02 Mar 2011 05:41:56,673 TRACE DefaultSQLDatabaseConnection:   obj 3 = [B@6c2a78
    02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection: SELECT resourceid, item, description, title, publisher, creator, language, identifier, thumbnailurl, format, src, downloadtype FROM resourceitem WHERE src = ? AND downloadtype = ?
    02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection:   obj 1 = http://myserver2url/folder/9781591439745.pdf
    02 Mar 2011 05:41:56,689 TRACE DefaultSQLDatabaseConnection:   obj 2 = simple
    02 Mar 2011 05:41:56,876 ERROR Package: Error in packaging
    java.io.IOException: illegal filename for a PUT
        at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
        at com.adobe.adept.packaging.servlet.Package.aquireLocationStream(Package.java:359)
        at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:535)
        at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:43)
        at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Unknown Source)
    02 Mar 2011 05:41:56,876 TRACE DefaultSQLDatabaseConnection: rollback
    02 Mar 2011 05:41:56,907 ERROR AdeptServlet: request error [myip]: E_PACK_ERROR http://myserverurl/packaging/Package illegal+filename+for+a+PUT
    02 Mar 2011 05:41:56,907 TRACE AdeptServlet: request end http://myserverurl/packaging/Package
    Please debug the above message and suggest me what i will do to rectify this issue.
    With Ragards,
    Mangal Kumar

  • Need to Pass filename for archived file to FTP adapter using SynchRead

    Hi
    I am archiving the source file which i am reading using an FTP adapter, Operation- SynchRead.
    In my case as the source filename is dynamic( abc_<timestamp>.xml) hence before the SynchRead, I am using a FTP List adapter to get the filename.
    Currently,the archived file is getting name in pattern: encryptedToken_yyyymmdd_hhmmss.(e.g. wQ2c3w7Cj7Y6irWnRKqEu77_jD7kLtj6Uc0QCZIyjC4=_20121122_012453_0305)
    I need to pass the sourceFilename(which i am getting from FTPList adapter) for the archived file also.
    Thanks in advance for the help!
    Regards,
    Achal

    Hi Neeraj,
    While trying the above alternative, i am facing an issue when my source file is a .csv file. The file is getting recreated with the original filename and file content but without header.
    As per the requirement i need the original file to be recreated. The header of .csv file has the field names.
    Please let me know how should i configure my FTP adapter to read the header of the .csv file as well.
    Thanks,
    Achal

  • Framemaker uses $filename for short file name, can we edit this to change appearance? We do not want the short file name of long filename to include the .fm extension can this be removed or modified to make this happen?

    Framemaker uses <$filename> for short file name, can we edit this to change appearance? We do not want the short file name of long filename to include the .fm extension can this be removed or modified to make this happen? In compiling our books it would be helpful to not have this extension appear as it then requires us to create extra files without them.

    See: System Variables

  • Port needed for File to File scenario

    Hi,
    I am new to XI, just got trained and I want to practice file to file scenario. I am able to access ID and IR.
    I would like to know whether any port have to be enabled for this scenario????
    I got list of ports from the basis people to enable the ports. could you tell me for which scenarios these ports have to be enabled:
    Http Port            50000
    ABAP Port         8000
    Msg server port 3901
    SDM Port            50018
    File Sharing Port  445
    P4 port               50004
    Enqueue server port    3201
    Dispatcher port        3200
    Sql server Port         1433
    Anymaterial to regarding port details would also be helpful.
    Thanks in advance.
    Regards,
    Kiruthiga

    Hi Kiruthiga ,
    I am new to XI, just got trained and I want to practice file to file scenario. I am able to access ID and IR.
    I would like to know whether any port have to be enabled for this scenario????
    --> Not required ..but you ask for FTP site if want to do file to file scenario using FTP . Default FTP port is 21 though ..
    using  got list of ports from the basis people to enable the ports.
    ---> tell them stop sending information which is not required..This is not the way of "Delivering. High Performance. "
    could you tell me for which scenarios these ports have to be enabled:
    Http Port 50000
    ABAP Port 8000
    Msg server port 3901
    SDM Port 50018
    File Sharing Port 445
    P4 port 50004
    Enqueue server port 3201
    Dispatcher port 3200
    Sql server Port 1433
    Any material to regarding port details would also be helpful.
    --> Friend not required...at this point. Though having knowledge is not a harm .
    Regards,

  • Restore - filename for datafile is missing in the control file

    I am practicing RMAN recovery procedures and I encountered a problem that I do not know how to solve.
    1) I took a hot backup of my test database.
    2) Create tablespace TS_DATA_TEMP
    3) Deleted tablespace TS_DATA which had 2 datafiles
    4) Created tablespace TS_DATA with 1 datafile
    5) shutdown database
    6) logged into RMAN in nomount
    7) restore controlfile from autobackup;
    8) alter database mount;
    9) restore database;
    RMAN> restore database;
    Starting restore at 22-AUG-08
    using channel ORA_DISK_1
    the filename for datafile 5 is missing in the control file
    skipping datafile 1; already restored to file /u02/oradata/EDM91/system01.dbf
    skipping datafile 2; already restored to file /u02/oradata/EDM91/undotbs01.dbf
    skipping datafile 6; already restored to file /u02/oradata/EDM91/index
    skipping datafile 3; already restored to file /u02/oradata/EDM91/sysaux01.dbf
    skipping datafile 7; already restored to file /u03/oradata/EDM91/TS_INDEX01.dbf
    skipping datafile 9; already restored to file /u03/oradata/EDM91/TS_LOB01.dbf
    skipping datafile 4; already restored to file /u02/oradata/EDM91/users01.dbf
    restore not done; all files readonly, offline, or already restored
    Finished restore at 22-AUG-08
    10) tried to recover
    Starting recover at 22-AUG-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/22/2008 15:04:22
    RMAN-06094: datafile 5 must be restored
    SQL> select name from v$datafile where file#=5;
    NAME
    /u04/oradata/EDM91/TS_DATA.dbf
    12) alter database backup controlfile to trace
    DATAFILE
    '/u02/oradata/EDM91/system01.dbf',
    '/u02/oradata/EDM91/undotbs01.dbf',
    '/u02/oradata/EDM91/sysaux01.dbf',
    '/u02/oradata/EDM91/users01.dbf',
    '/u04/oradata/EDM91/TS_DATA.dbf',
    '/u02/oradata/EDM91/index',
    '/u03/oradata/EDM91/TS_INDEX01.dbf',
    '/u04/oradata/EDM91/TS_DATA02.dbf',
    '/u03/oradata/EDM91/TS_LOB01.dbf'
    CHARACTER SET UTF8
    So i'm not sure what the problem is. Datafile TS_DATA.dbf is located in the control file but i'm getting the error: the filename for datafile 5 is missing in the control file.
    Suggestions on what's wrong with the control file?

    I found my mistake; a newbie error.
    I did not know I needed to include in my restore command the 'until' option when doing incomplete recovery. I only included the 'until' option in the recover command:
    original command
    restore database;
    recover database until sequence =123;
    should be
    restore database until sequence = 123;
    recover database until sequence =123;
    I usually run the command using a RUN block with a SET UNTIL SEQUENCE but this case I used the single commands separately.
    RUN
    +{+
    SET UNTIL sequence 123;
    RESTORE DATABASE;
    RECOVER DATABASE;
    +}+

  • I need to start and stop logging based on a digital input event(or analog if necessary), log data for several seconds prior to the event, and have the data file close at the end of event and increment the filename for the next logging event.

    I don't know if this can be done with VI Logger or need to use Labview V7.1.

    After browsing through the VI Logger User Manual, it looks like the triggering that you are hoping to accomplish is possible. However, incrementing the filename for the next logging event is not going to be possible. VI Logger does exactly what its name tells - logs data. I don't think the automation that you are hoping to accomplish is possible.
    For help with setting up your application, if you do choose to stay with VI Logger, make sure to chek out the Getting Started with VI Logger Manual.
    Best of luck.
    Jared A

  • Infospoke - How to single Logical Filename for all infospokes

    Hello all,
    I want to only have one logical path and logical filename for all of my infospokes.
    For example if I have infospokes ZAAA, ZBBB, ZCCC, I want to have only one common setting in the destination properties of TC:RSBO but three different distinguishable files on my OS.
    I think with the standard settings, I have to make one logical file for every infospoke I have.
    I am aware that I can put <DATE> or <TIME> etc in the logical file settings but that will not distinguish which infospoke the file came from.
    I want my file to look more like <INFOSPOKE>_<DATE><TIME>.csv
    I've already seen the document "How to Extract Data with OPEN HUB to a Logical Filename"  and this is not it because I have BW3.5 and 3.5 already does what this article says.
    Any help would be greatly appreciated.
    Just in case, I am on BW3.5 SP17 on Windows/SQL.

    Jasprit,
    Thanks for your input.
    The functionality of the FM you said is similar to the InfoSpoke functionality...
    Is it the same thing?
    I wonder if I use this it means it is not part of the InfoSpoke license...
    I will have our programer look at it and see what he thinks but in the mean time any other information is greatly appreciated.  Especially if I can stick with using the standard InfoSpoke functionality...
    Isn't this kind of functionality something that everyone wants?
    I wonder why SAP didn't make it like this?

  • Adapter Module Filename in File Receiver Channel

    Hi All,
    is it possible to set the Filename in File Receiver Adapter from Adapter Module?
    I know that it is possible to read the data      
    Channel ch = new Channel(moduleContext.getChannelID());
    path = ch.getValueAsString("file.targetDir");
    I Need to set the filename in Adapter Module, using of Payload is not possible because Payload is not xml.
    Dynamic Parameters in Message Header is not possible because it is an multi mapping process an i need dynamic Filename for each Part
    payload after mapping is like
    MainDocument
    SubMainDocument
    MainDocument
    SubMainDocument
    i need special Name for each SubMainDocument in FileReceiverAdapter
    regards
    ralf

    Hello Stefan,
    interface mapping is an mapping  like this:
    outbound_interface => Inbound_Interface1
                                 => Inbound_Interface2
                                => Inbound_Interface3
    in sxmb_moni this looks like this
    Soap_Header
    Soap_Body
    Payloads
         =>MainDocument ( application/xml )
        => SubMainDocument ( text/xml )
         =>MainDocument ( application/xml )
        => SubMainDocument ( text/xml )
    First SubMainElement is routing to FileReceiverAdapeter A   where Filename has to be like "NameA%nr%"
    second SubMainElement is routing to FileReceiverAdapeter B   where Filename has to be like "NameB%nr%" 
    %nr% is som value from the Payload.
    Payload is not xml  because using of Conversion Argent!!
    I Think there is only one Dynamic in Header for all subelements, i have test it!
    ralf

Maybe you are looking for

  • Web Analysis Reports slow in workspace . .

    Hello, We are working to implement Essbase v11.1.13, Web Analysis, FR and work space. BI Plus administrators have significantly faster access to reports than non administrators (reports load 5 to 6x faster for admins). The load time is unbearable for

  • Forum etiquette and best practices

    Do: Respect others Assume good faith Share what you know Be kind to newbies — we were all new once Encourage others; recognize and praise good work Attract and honor good, knowledgeable people Ask for help, and help others in return Set a good exampl

  • Setting AEP Documents to Open by Default with Adobe After Effects CC NOT Adobe After Effect CC 2014 on a Mac

    I have installed some of the CC 2014 products for testing. Until the rest my department moves from CC to CC 2014 I need to open and create new projects in CC as the CC 2014 AEP's won't open in other versions. The issue is when I try to change the fil

  • BAdi while saving in CRM_DNO_MONITOR

    Hi Experts,    In CRM_DNO_MONITOR  transaction, I am processing a ticket / transaction number. There when I save a ticket number I want to have some restrictions on the fields "Category"  and  "Ext.Reference.No.". Is there any BAdi to imply this whil

  • Java on mavericks

    Hi, I upgraded form OSX 1.8.5 to Mavericks, and it seems like Java is no longer working? So I reinstalled the latest update 2013-005 from this page http://support.apple.com/kb/DL1572 It helped in so far that Illustrator CS6 works again. But websites