File name as an XML field

Does anybody knows how to include the file name into an XML field. My scenario is  XML file to JDBC. I have to pass the filename as one of the table field.

Hi,
refer this weblog for dynamic configuration https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2664. [original link is broken] [original link is broken] [original link is broken]
It will show how to include the file name.
Also you can use that even in simple message mappings.
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
regards
Aashish Sinha
PS : reward points if helpful

Similar Messages

  • How to include the file name as an XML field

    Hi,
    I'm using a file adapter for process a flat file and convert it into an XML. Does anybody knows how to include the file name into an XML field.
    Ex.
    I process the file named <b>XXIMN21022007.txt</b> and I need an XML like:
    <MT_FILE>
    <field1></field1>
    <field2></field2>
    <field3></field3>
    <filename><b>XXIMN21022007.txt</b></filename>
    </MT_FILE>
    Regards
    Gonzalo

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

  • File Name and Path special field

    Post Author: puser01
    CA Forum: .NET
    I have a report created in CR 9 with the File Name and Path special field on the report displayed correctly. when i try to run it on CR XI environment i get this:
    C:\WINDOWS\TEMP\{4D86438D-54F5-4EEF-A0AB-05D5EB2BFF35}.rpt
    How can i correct this?

    Our installer names don't make it easy for the new user, or the seasoned veteran for that matter. Although both those installers have 2008 in the name, they are for entirely different products.
    CRRedist2008_x86.msi
    This MSI installer is used to install the runtime for Crystal Reports Basic for Visual Studio 2008 - version 10.5.
    cr2008fp35.exe
    This installer package is used to install the CR .NET runtime for Crystal Reports 2008 - version 12.3.
    Since you've updated your development system to Crystal Reports 2008 you'll only want to use the runtimes listed on this reference page - http://www.sdn.sap.com/irj/sdn/crystal-xcelsius-support?rid=/webcontent/uuid/10e38d93-7f07-2d10-beae-e739182f8ada. [original link is broken]
    I suggest either of these
    SP 3
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    FixPack 3.5
    https://smpdl.sap-ag.de/~sapidp/012002523100006341772011E/cr2008fp35_redist.zip

  • Dynamic file name in Export: XML

    I am generating a SQL report on a page that can be exported as XML File and It seems to me the file name come from the name of the report region by default and I 'd like use a value of an item as the XML file name.
    I tried to put &P15_ITEM. as name of report region, then the XML file name I got is: p15_item[1]..xml. But if I change the Report Template back to Standard Template, the region name displays the value of P15_ITEM.
    So, my question is, Is ther anyway we could reset the file name of the XML file, such as the value of an item, In Version 1.6.?
    Million Thanks,
    Ran

    Thank you Raj for the direction
    The way to do it is :
    1. In ID, advanced tab, put a check on the adapter-specific message attributes - file name.
    2. Put a "*" on the file name scheme
    3. In IR, create a UDF to set up target file name :
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // set up file name for receiver adapter
    String SourceFileName = conf.get(key);
    conf.put(key, TargetFileName);
    return " ";
    4. Map the above UDF to the header level of the target structure.
    Regards,
    Idi

  • Files saved on memory stick on pc show as original file name followed by .XML and i cannot open why

    files saved on memory stick on pc show as original file name followed by .XML for example tester.doc.XML, is there any reason?  I cant open these on mac, if i put it back in PC is shows file as normal without .XML.  Confused.com any ideas.

    I have files on my work laptop (PC) e.g. document1.doc (word document), I then save it to my memory stick (which i have reformatted, I also tried my external disk drive) and then take that to my macbook, plug it in and in finder it then shows as document1.doc.XML, which i cannot open.  It happens to all types of files, it just seems to add .XML on the end of everything.

  • Tabular form - field to open explorer select file name to same in field

    Hi
    I am using apex 4.1 and would like some help with a tabular form I have created.
    It is based on a table which has two fields
    description
    path_of_source_file
    in the form I would like to be able to open windows explored to select a file name and save the path in the path_of_source_file field
    Does anyone know how to do that
    Many thanks
    Jayne

    >
    Start by editing your forum profile with a real handle instead of "user1647153".
    I am using apex 4.1 and would like some help with a tabular form I have created.
    It is based on a table which has two fields
    description
    path_of_source_file
    in the form I would like to be able to open windows explored to select a file name and save the path in the path_of_source_file fieldYou need to seriously rethink what you're trying do. Not only does APEX not provide support for file browse items in tabular forms (which are horrible anyway; even more so with an ugly file picker in every row), but file path information is not available in standard browser configurations (or at all in most browsers). As has been noted in many previous threads on this topic:
    >
    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8+ and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\"—and this monstrosity has sadly had to be enshrined in the HTML5 spec...
    Changing IE's security config setting "Include local directory path when uploading files" enables the path to be exposed in IE, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then trying to achieve this is pointless.
    >
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    http://developers.whatwg.org/number-state.html#file-upload-state
    {thread:id=2385659}
    Go right back to the start and explain what this is all about. We need to know what the ultimate goal is in order to determine what use&mdash;if any&mdash;can be made of APEX here.

  • Find the file name of the XML you imported in InDesign

    Once you import an XML using Indesign- is there a way to look up the file name/location of your XML file?
    Thanks!

    As i understand , you mean the name and file location of your saved XML file.
    If yes, than click File > Export > <check the saved file and location>

  • Can file name get from partial field value ?

    Hi, Friend:
    I have file receiver with FCC, I used variable substitution (I have to use this rather than dynamic configuration, since there are multiple files created by multi-mapping), so the file name is pass via payload to adapter.
    In advanced tab, we can assigned to a variable like: payload:MT_XXXX,1,Filename,1
    Now I do not want full value of Filename, I just need part of the value of it.
    I will not consider an option of create another field to store part of the value, since after FCC, a blank line is created which is not acceptable by our integration partner.
    Is there any way to get it ?
    Thanks
    Liang

    Kevin:
    If you can see from what Madhusudana Reddy suggested:
    I created a node, saying "Tail" in end of structure, add one child node to it saying "Filename"
    Now in my mapping program, I can pass real file name I wanted to child node "Filename"
    In Variable substitution, I get the whole value of the node "Filename" when we naming the created file.
    In FCC, I used Madhusudana suggested, it would not created blank line when using  Tail.endSeparator '0'
    Hope this give you some hints
    @Carlos:
    Java Mapping is different approach which we do not want to go at this stage.
    Regars
    Liang

  • Need to reference file name within the XML Output

    Not sure if this is possible, as I'm new to the livecycle/XML world. But I need to be able to reference a file within the XML output from the PDF.
    The Scenario is that a pdf form of a business card will be issued to 50 franchisees for them to type in their names and mobiles, click submit and the XML file to be sent to myself, and be imported in to InDesign populating their data ready for printing. Up to here I have it working perfectly.
    However as each franchisee have a combination of up to 5 logos to place in the bottom corner to save having to have various templates with different combinations of logos and having to ensure the correct templates are used. I intend to reference each companies combination as an EPS and make the reference within the xml out and have it import directly in with the other data. I can type the code directly within the xml but I would like to have the form reference it directly in the xml output. Is this possible or am expecting to much of livecycle? Any help/advice greatly appreciated.
    David

    Hi MadhavaGanji,
    I have post how to validate the file name, header row against definition table which stored the file name and column definition. 
    Take a look and see if this is helpful.
    http://sqlage.blogspot.com/2013/11/ssis-validate-file-header-against.html
    http://sqlage.blogspot.com/

  • How do I denote a file name for submitted XML form data?

    Hi guys, is there a way to change the submitted XML file name [when emailing form data] to something other than the cryptic string livecycle uses e.g. _e8hfydsh55hsksdf.xml
    Thanks for any help, cheers Dyr

    When you preview a PDF from inside designer, it uses a temp filename for the doc and therefore when you test xml submit etc you will get the 'e.g. _e8hfydsh55hsksdf.xml' as a filename. However if the form is saved locally (e.g. MyForm.pdf) and you use Reader / Acrobat to open the PDF, then the email's subject message as well as the xml file will be MyForm.xml. Does that help you?

  • How to customize the XML file name from user entered field value when submitting

    How can I customize the name of an HTTP submitted XML file from data entered by the user in a text field?
    The field in question contains user identification information and would ease the sorting of files received for easy identification.
    Thank you,

    How can I customize the name of an HTTP submitted XML file from data entered by the user in a text field?
    The field in question contains user identification information and would ease the sorting of files received for easy identification.
    Thank you,

  • Receiver Mail Adapter File Name

    Hi All,
             I have a scenario file to Mail.
    The rquirment is that everytime the file is picked by the adapter a mail needs to be sent.
    The email should just have the file name of the file that got picked up by the file adapter but there should be no attachment in the email, just the file name  either in subject or in the body of the email.
    No Mapping should be used.
    Can this be done?
    Regards,
    XIer

    Hi,
    You can do the File to Mail scenario as the normal way.
    For Receiver side just consider one field as payload and don't map the other fields from File.
    You can get the File name with the use of Dynamic configuration. Please refer
    Refer this blog. for File to Mail
    /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi
    File to Mail scenario help
    Refer for getting file name in mapping
    How to include the file name as an XML field
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2664. [original link is broken] [original link is broken] [original link is broken]
    Dynamic  File Name for Receiver File Adapter
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    Thanks
    Swarup

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • File name into text field

    Is there a way to display the forms file name, into a text field?
    Example: The form's file name is "MyForm.1.01.pdf"
    I would like to display "MyForm.1.01" in a text field on the form.
    If my form is saved and goes up a revision to say "MyForm.1.02"
    "MyForm.1.02" is then displayed in the text field.
    I was thinking, this could be on the pre open event, so that when the form is saved, it would display the new revision when the form is next opened?
    Thanks in advance.

    Hi,
    The following will get the file name:
    this.rawValue = event.target.documentFileName;
    I would put this in the docReady event, as this event fires only once, when the form opens.
    There is a sample here: https://acrobat.com/#d=ZnxO-dlXXFDS0GvYcQk2NQ
    Hope that helps,
    Niall
    Assure Dynamics

  • Can we change the web.xml file name???????

    can we change the name web.xml and struts-config.xml file to other name.....if yes, then how..........

    you can change the name of struts-congig.xml file
    and change the strut-config file name in web.xml also.
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>And you also try rename the file web.xml and run the application and check what is happening...

Maybe you are looking for

  • Creation of service master for the PM in Emigall

    Hi Fritz, Greetings, I wanted to ask that can we ahead and use the Service master data loading process through Emigall. and what are the step that we can use to avail that in Emigall. Regards, Robert.

  • Kernel update problem

    when i try to update my kernel this is what happens. [root@myhost abhi]# pacman -S kernel26 resolving dependencies... looking for inter-conflicts... Targets: klibc-1.5-5  klibc-extras-2.4-1  klibc-udev-116-3           klibc-module-init-tools-3.2.2-3 

  • Mandatory segments and fields of Idoc...

    Hi Experts, I am very keen to know the mandatory segments and fields of the ORDERS05 IDOC so can you please let me how to check the mandatory feilds and segnents of this particular Idoc. Thanks in advance.Your help is highly appreciated. Thanks, Kira

  • HTML Form-like behavior in Flash

    Hello, I'm looking to find a reference that can help me in the creation of Flash user input screens that behave in a manner analogous to an HTML form. Specifically I'm concerned with error checking and data validation. For example, if a user is creat

  • Display subtotal in General Ledger Accounting details

    Hi all Our client has a request to have a default setting for the option to display subtotal to print only Yearly results in General Ledger Accounting Report?  Currently the Display Subtotal by Daily and Monthly are always selected.  It is too slow w