XML datasource: dynamic file name and location

I have an RDF file that uses an XML file as its datasouce. I have supplied it a valid DTD file location and a valid XML file location, via the report wizard. I would like to programatically change the name of the XML file at runtime. What are my options...use an XML customization? I would like to do it in an after parameter form trigger. Is this possible?
If I have to use an XML customization, is it possible to only customize part of the datasource tag. For example, here is my datasource tag (not from an RDF, but an XML report definition)
=====================================================
<dataSource name="QP_1">
<plugin factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
majorVersionNumber="1" minorVersionNumber="2"
signOnParameter="XML_HTTPS">
<![CDATA[<xmlpds DTDVersion=" 1.0">
<dtd>file:C:/downloads/LVB.dtd</dtd>
<schema>null</schema>
<XSQLschema>null</XSQLschema>
<XSQLWithDTD>false</XSQLWithDTD>
<type>false</type>
<xmlWritten>true</xmlWritten>
<validate>false</validate>
<xml>file:C:/test/175.xml</xml>
<xsl>null</xsl>
<select>
<element name = "typef" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Volume" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Trades" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Vol" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Trd" type = "string"  s_simpleTypeMapping = "string" /> </select>
<simpleTypesInfo></simpleTypesInfo></xmlpds>]]>
</plugin>
<displayInfo x="1.65002" y="1.00000" width="0.69995" height="0.19995"/>
<group name="G_1">
<displayInfo x="1.30188" y="1.94995" width="1.39624" height="0.77246"
/>
<dataItem> ...stuff here... </dataItem>
</group>
</dataSource>
==================================================
How can I only customize the <xml>file:C:/test/175.xml</xml>?
I only want to change the name of 175.xml to something like 176.xml.
I have to put in a valid XML when I create the report via Reports Builder, but once it is in there I need to change it.

Hello Danny,
I am trying to pass a user parameter into the xml location <xml></xml> tags like you did but am having problems. If it's not too much trouble, would you please send me a sample of your source code so I can check my syntax? Below is my code and the error message I am getting. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
<rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
<rw:objects id="objects">
<?xml version="1.0" encoding="WINDOWS-1252" ?>
<report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
<xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
<![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
</xmlSettings>
<data>
<userParameter name="XML_HTTPS" datatype="character"
pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
width="255" defaultWidth="0" defaultHeight="0" display="no"/>
<userParameter name="p_xmlDataURL" datatype="character" width="100"
precision="10" defaultWidth="0" defaultHeight="0"/>
<dataSource name="QP_1">
<plugin
factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
majorVersionNumber="1" minorVersionNumber="2"
signOnParameter="XML_HTTPS">
<![CDATA[<xmlpds DTDVersion=" 1.0">
<dtd>null</dtd>
<schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
<XSQLschema>null</XSQLschema>
<XSQLWithDTD>false</XSQLWithDTD>
<type>false</type>
<xmlWritten>true</xmlWritten>
<validate>true</validate>
<xml>&<[b]p_xmlDataURL></xml>
<xsl>null</xsl>
javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
REP-0069: Internal error
XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
REP-4111: Fail to create pluggable data source 'QP_1'
     at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
     at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
....

Similar Messages

  • Dynamic File Name and File size

    Hi All
    I need some help in calling Dynamic File Name and Dynamic File size of a file in my adapter Module.
    Could you please provided some help on the same?
    I have tried the same through UDF it is working. Could anyone provide me the steps for the same
    Regards
    Abhishek Mahajan

    Hi,
    You can use the already available adapter module "DynamicConfigurationBean". Have this adapter module at the top of the module list in CC.
    Have the parameter value as insert http://sap.com/xi/XI/System/File FileName and http://sap.com/xi/XI/System/File SourceFileSize (corresponding to the key names)
    For more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/da2239feb22e98e10000000a155369/frameset.htm
    There is also a SAP note available for the same....dont remember the note number:(.....
    Regards,
    Abhishek.

  • Dynamic File Name and Directory File Sender Adapter

    Hello gurus,
    I have a question: Is there any way to make the File Name, and Directory Dynamic of a File Sender Communication Channel ?
    For example, taking it as a parameter from a Web Service Request.. (I mean, the only way with this would be a ccBPM). I don't exactly know if there is a way, I just thought about this.
    Please tell me if someone could make Dynamic these 2 parameters while picking a file.
    Regards,
      Juan

    oops,thought i was replying to the PgP question:)
    I think you should be able to achieve this via adapter module but i m not really sure how exactly it will be done .
    Thanks
    Aamir
    Edited by: Aamir Suhail on Jul 28, 2009 1:42 PM

  • File to File and then Call ABAP Program and pass file name and location

    Hi
    I am new to PI and am working on the following requirement and some guidance would help:
    A file is picked up from a third party server using FTP and is put in an SAP server in a specific location. After I have put in the file successfully, I need to call an ABAP program and provide the name and location of the file for further processing by the ABAP program.
    Although I am familiar with File to File, how can I add in the ABAP call with the filename and location? I do not want to pass any other information to the ABAP program.
    Thanks for your help.
    Manoj

    I think I get what you're saying. This additional file would have the file and the path in it's content. I would then use this as a source (FCC?) for Mapping with the RFC. Right?
    Exactly and yes, FCC would be helpful
    Would you have a sample OS script to do the above?
    Actually it depends on the operating system on which your PI system is standing. For instance for Windows, you might try with the following as a start point (but I was not able to test it, so I can't guarantee it will do the job):
    cmd.exe /C "%f %F > C:\target_directory\%DATE%_%TIME%.txt"
    In case you needed more, try googling on "windows batch script" or similar.
    Hope this helps,
    Greg

  • Suppress dialog, preset destination file name and location

    In acrobat 4 I could write a registry setting that would preset the output
    filename and location, print to adobe pdf writer, not get prompted, and the
    file would be created with the name and in the location I set.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat PDFWriter]
    "PDFFileName"="X:\\Output\\myFileName.pdf"
    What is the equivalent in version 8?

    Thanks.<br /><br />I will read through it more.<br />Having only worked with the PDFWriter, this is what is new to me:<br />"PrinterJobControl"<br /><br />[HKEY_CURRENT_USER\Software\Adobe\Acrobat <br />Distiller\PrinterJobControl]"C:\Program Files\Windows <br />NT\Accessories\wordpad.exe" ="c:\MyPDFoutputFileName.pdf"<br /><br />This seems like like I am presetting my application output, correct?<br /><br />>>>><br />Programmatic control<br /><br />Prompting can be turned off programmatically by adding a key to the Windows <br />registry. This method applies to the creation of only one PDF document by a <br />specific application for the current user. To use this method, add the <br />following registry key:<br /><br />HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl<br /><br />This key takes as subkeys:<br /><br />(Default)application<br /><br />The (Default) entry is reserved for possible future use and is not to be <br />used.<br /><br />The application subkey is the full path of the application for which <br />prompting is to be turned off. The value of the application subkey is a <br />REG_SZ value that is the full path of the output file. For example, the <br />following registry script would turn off prompting for the next printing <br />performed by wordpad.exe, printing to the file c:\MyPDFoutputFileName.pdf:<br /><br />Windows Registry Editor Version 5.00<br /><br />[HKEY_CURRENT_USER\Software\Adobe\Acrobat <br />Distiller\PrinterJobControl]"C:\Program Files\Windows <br />NT\Accessories\wordpad.exe" ="c:\MyPDFoutputFileName.pdf"<br /><br />Note:Though the programming language may require that your backslashes are <br />escaped (for example, "c:\\MyPDFoutputFileName.pdf"), the value of the <br />registry entry must use single slashes. This key, once established, remains <br />until used and is removed once the Windows API function StartDoc(HDC hdc, <br />CONST DOCINFO* lpdi) has successfully completed. Also note that the output <br />folder path must already exist with read and write access for the current <br />user and the destination file must not exist.<<<<br /><br /><br /><br /><br /><Bernd Alheit> wrote in message news:[email protected]...<br />> Look at the document 'Acrobat Distiller API Reference' of the Acrobat SDK. <br />> There read the section 'Disabling prompts for output file names'.

  • Mac OS 10.9.3 - password needed to change files names and location

    Hi,
    How can I unlock my documents, and the all functioning process of my mac OS 10.9.3. In fact, each time I need to change a file to another location, or if I need to change it's name, I need to insert the password . The message "Finder wants to make changes. Type your password..." appears envy time.
    How can I make it stops?
    Thank you.
    Isabel

    Hi IPires,
    Welcome to the Apple Support Communities!
    It sounds like you are experiencing issues with permissions. I would suggest reading over the attached article to help you troubleshoot and resolve the permissions on your computer.
    OS X Mavericks: If you don’t have the correct permissions to open a file or folder
    http://support.apple.com/kb/PH13752
    Have a great day,
    Joe

  • ITunes is not updating file names and locations since upgrading to 10.2.2.12

    It saves the changes I make to the metadata, but the filenames themselves and the actual locations of the files are not changing.
    Good example of this is changing a video file from Movie to TV Show. It does change the location within iTunes, but the file itself remains in the Movies folder, right where it was before.
    This was working perfectly before upgrading earlier this morning to version 10.2.2.12.
    I have double-checked and iTunes is still set to organize my library for me.
    Any help would be appreciated, even if it's just to let me know that it's a known issue with this new version.
    I am running Windows 7 (64 bit).

         If you organize your iTunes media folder yourself, DO NOT DO WHAT JonSS DID!.   It will move all your files to folders with the artists name on them instead of by album.  It fixed the video podcasts (and apparent other kinds of video files -  I haven't checked yet) being sent to their respective folders but totally borked my music file system.
          This is fine for me and my iPod Touch, but, my wife has a non-Apple mp3 player and she likes to find music by artist+album. Now all the Compilation Albums are in multiple folders (i.e. The Animal House Sndtrk is not in one folder but in 11 different artist folders in the main Media folder).
          This has happened in the past and I hope some overworked and undereducated (maybe overeducated and underworked is correct?) coder is feverishly trying to fix this. 
         I recommend a reinstall of 10.2.1 to keep control of your library yourself and have the newly downloaded video files assigned to their proper folders.  (btw, if your looking for your recently d/l'd video Podcasts, they are in the Downloads folder as psuedo tmp.mp4 files).  This seems to be a problem with just the video files.  I don't use iTunes to watch my video files. I either watch them on my Touch or on Windows Media Center on my HTPC. So having each show/podcast in it's respective folder is important to keep track of them.
    Luckily, I recently backed up my iTunes Media Folder for a re-install and will use it when I reinstall 10.2.1 (I have approximately 16,000 music files from my CD collection, OS-level organization is quite important)
    Fix one thing...break 3 other things...ahh, the life of a "cut & paste" coder...I knew it well...
    Now I have to find a different RSS-based video Podcast downloader...any suggestions?

  • Save As with suggested file name and folder

    I would like the user to be able to press a save button on the pdf and the "Save As dialogue box" pops up pre-populated with a file name and location choosen. The user can then choose to name the file something otherwise or select a new location. I would just like to save them the steps of copying the field data and finding the correct folder (deeply buried on server) however to place the finished document in.
    This doesn't seem to require a trusted function, but how do I suggest the file name based on a field name in the document. And how do I suggest the folder the document should be saved into?
    Thanks in adavance.

    Hi,
    you need a folder level script to use the browseForDoc method.
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=10 4

  • Xml file in dynamic file name in file receiver adapter

    Hi,
    I'm doing the dynamic file name in file receiver adapter. I have done as per instructed in /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    All turned out okay. I have got the file name I require. Except that the file format is XML and I need to suppress the filename node occupied by the dynamic file name.
    The content conversion mentioned in /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12, does not seem to solve my problem. As it is only for file format other than the XML one, because we only do the content conversion if we want to "convert" the format of the content from XML to the other format.
    Does anybody have the solution to my problem? thanks in advance

    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

  • WCF Service and Sharepoint Form library : How i can read a access a form libray and query a item from file name and read form xml in WCF service ?

    WCF Service and Sharepoint Form library : How i can read or access a form libray and query a item from file name and read form xml in WCF service ?
    Ahsan Ranjha

    Hi,
    In SharePoint 2013, we can take use of REST API or Client Object Model to access the SharePoint objects like Form Library.
    SharePoint 2013 REST API
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    SharePoint 2013 Client Object Model
    http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
    With the retrieved file, we can then use XmlDocument object to parse it and get the values you want:
    http://weblogs.asp.net/jimjackson/opening-and-reading-an-xml-file-in-a-document-library
    http://stackoverflow.com/questions/1968809/programatically-edit-infopath-form-fields
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to dynamically define a file name and its path in a web application

    Hi, I want to create a simple web application that reads from an XML file and displays the data back to the user. The xml file is created independent of my application on the same machine that the Application Server runs. How can I define my xml file name and/or path to be independent of my code and not hard-coded in my application?

    By an external configurationfile? That can be a propertiesfile, a xml file, an ini file, a plain vanilla txt file, etcetera.

  • BPM/File Content and Dynamic File Name

    Bit of a double whammy here!
    I am running a BPM :  R/3 Proxy > XI > BPM > File Adapter (x4)
    All working to a point.....
    The file I receive splits into two files, then I pass a Count file - number of records to a separate file and then a file that simply says "ready" on completion.  Four files are:
    Data file, Lookup (values and descripton for legacy), Count file and Ready file.
    To top this off, it will be run for 12 separate countries so hope to use the country code to add to the file naming - so generating 48 files (if successful). Data_GB.dat, lookup_GB.dat, Count_GB.dat and ready_GB.dat etc.... 
    The first three, I can do (with maybe a little help!), I have looked at the use of dynamic file naming and think I can do this, however, the count file uses the initial file sent, but the ready file passes across the word "ready" to destination file.  How can I utilise the dynamic naming convention if I do not use the original file for this?
    Also, the "ready" file is being created but it is empty.  It is okay using the the File Adapter, but when I convert it, the file is empty (but still created!)  IN sxmb_moni, it is showing correctly but once the file content conversion happens, it is empty!
    Any thoughts?

    Thanks Bhavesh.
    Time Stamp Status Description
    2007-05-08 17:43:57 Success Message successfully received by messaging system. Profile: XI URL: http://host.fqdn.net:55000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSER
    2007-05-08 17:43:57 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2007-05-08 17:43:57 Success Message successfully put into the queue.
    2007-05-08 17:43:57 Success The message was successfully retrieved from the receive queue.
    2007-05-08 17:43:57 Success The message status set to DLNG.
    2007-05-08 17:43:57 Success Delivering to channel: EPIW_FTP_Receiver_EmployeeReady
    2007-05-08 17:43:57 Success MP: entering
    2007-05-08 17:43:57 Success MP: processing local module localejbs/CallSapAdapter
    2007-05-08 17:43:57 Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2007-05-08 17:43:57 Success File adapter receiver channel EPIW_FTP_Receiver_EmployeeReady: start processing: party " ", service "XE_DEV_3RD_EPIW_001"
    2007-05-08 17:43:57 Success Connect to FTP server "ftp.ftp.ftp.ftp", directory "/ECS/Target"
    2007-05-08 17:43:57 Success Write to FTP server "ftp.ftp.ftp.ftp", directory "/ECS/Target",   file "xi_epiw_ready20070508-174357-635.dat"
    2007-05-08 17:43:57 Success Transfer: "BIN" mode, size 156 bytes, character encoding -
    2007-05-08 17:43:57 Success Start converting XML document content to plain text
    2007-05-08 17:43:57 Success File processing complete
    2007-05-08 17:43:57 Success MP: leaving
    2007-05-08 17:43:57 Success The message was successfully delivered to the application using connection File_http://sap.com/xi/XI/System.
    2007-05-08 17:43:57 Success The message status set to DLVD.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:EPIWReadyFile xmlns:ns0="urn:com.xerox.esap.hr.epiwextract">
      <recordReady>READY</recordReady>
      </ns0:EPIWReadyFile>
    Transfer: Binary
    File Type : Text
    File Content Conversion:
    Record Set Structure: Detail
    Detail.fieldSeparator     ,
    Detail.endSeparator     'nl'
    It maybe something simple... 
    Hopefully you can help : )
    Thanks
    Barry

  • How to find PG.xml file name and path associated with a FUNCTION

    Hi,
    I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
    OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
    How to find PG.xml file name and path assoicated with above funtion.
    Thanks,
    ashok

    Ashok,
    Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
    OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
    OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Dynamic file name from input payload (RFC 2 flat file)

    Hi,
    I have an RFC to flat file scenario. The output flat file has not an XML structure, it's just a plain text file generated with abap mapping.
    In my source interface (RFC), I have a field called <FILENAME>, I want to use the value of that field to create the target file using dynamic file name. But if  in variable substitution I use payload:ZRFC_NAME,1,FILENAME,1 It doesn't work because the dynamic variable substitution try to access to output payload, not the source one...
    What can I do?

    Hi Marshal,
           You can add a extra node to your target strucutre like
    FileName- Node
    --FileName - Element.
    do the mapping from the field filename of RFC to FileName field in u r target strucure. And use this  field path at Refrence in variable subtituion.
    In the Content converison add the Name & Values as below
    FileName.fileldNames -- FileName
    FileName.fieldFixedLengths -- 0
    FileName.fixedLengthTooShortHandling -- Cut
    So the extra field in u r target structure would not populate in u r target text file.
    Cheers
    Veera

  • Dynamic file name in case of .txt output files

    Hi all,
    I have a query related to dynamic file name scenario.
    In case of IDOC-XI-FILE sceanrio,
    <b>Is it possible to generate .txt file name based on Plant number like</b>
    <b>%<Plantname>%_%<BusinessDay>_filename.txt</b>
    <b>Note:I have implemneted this for .xml output files but I am not able to implement it for .txt output files .</b>
    PLEASE HELP ME .
    Regards
    Prabhat

    Hi Prabhat,
    I think, the normal Dynamic File Name generation should work fine in your case also. Even if you perform Content Conversion, you can use Variable Name Substiution to create your Destination file name as, the name of the file is determined first and only then is the content converison perfromed.
    for info on content conversion, I would suggest that you go through this thread and check my reply,
    Re: Dynamic  File Name for Receiver File Adapter
    Regards,
    Bhavesh

Maybe you are looking for