Dynamic Logo file names in PO XSL-FO stylesheet

We have different company logo files for different operating units. Hence , we require to use a dynamic logo file name in XSL-FO template.
When I use the below for a single file it works.
     <fo:inline>
<fo:external-graphic content-width="50pt" content-height="50pt" src="url({'${OA_MEDIA}/Logo_medium_COMCEL.jpg'})" />
</fo:inline>
However, I would need to make the filename dynamic.
When a tried usng an xsl variable tos tore fielname, it didnt work.
Any pointers as to how we can achieve that would be helpful

Thanks for your quick reply Dave, I appreciate your time.
But I couldn't test the new template as I was neither able to create a new PO nor was able to run the PO Output for communication Report. When I tried to create a PO the Purchase Order form did not open saying I am not setup as an employee, even the PO Output for communication did not give any LOV for the PO's.
I tried to define employee name in the employee's login
information (System administrator/Security/User/Define) for my user, but some how my name doesn't appear in LOV. Any help is appreciated.
Thanks,
Sharmila

Similar Messages

  • Dynamic Receiver file name in AS2 adapter

    Hi Experts,
    How to get dynamic receiver file name in AS2 adapter. We need receiver file name same as of sender file name.
    We tried selecting dynamic attributes file name but we are getting followin error in CC.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message.
    Thanks,
    Hari

    hi hari,
    You can't do it manually. As both adapter are in different context.
    You can go with UDF to slove ur problem.
    Just extract the input file name using Dynamic configuration
    Store that in some variable.
    Use same name in the dynamic file name in AS2 receiver. Below code might be useful.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtAS2FileName", "DYNFILENAME");
    conf.put(key,strfilename);
    Thanks
    Jai
    Edited by: Jaideep Baid on Apr 9, 2010 9:16 AM

  • Include the file dynamicly by file name

    in my jsp,I want include another jsp dynamicly
    <%@ include file="thefile.jsp" %>
    thefile.jsp should be dynamic like:
    <%=String filename=="thefile.jsp" %>
    <%@ include file=filename%>
    I know above is not working since file only take static name.
    is there any way to include the file dynamicly by file name?

    String path = "..."; // to the ressource to include
    javax.servlet.RequestDispatcher dispatcher
              = getServletContext().getRequestDispatcher(path);
    dispatcher.include(request,response);

  • Creating dynamical flat file name in mapping?

    Hi.
    I know about the variations on how to use an input parameter and/or sysdate to create a dynamic output file name in a mapping.
    My challenge is nearly the same, but I cannot make OWB generate the correct code.
    Problem:
    - got a one column table that holds an identifier in a string field
    - got a function that reads and returns said identifier
    - imported function into OWB
    - trying to use the function call in the Flat File Operator's Target Data File Name, e.g. fixedfilename||fn_get_id()||sysdate||'.ext
    OWB creates the code:
    UTL_FILE.FOPEN(
    'my_location',
    'fixedfilename'||fn_get_id()||'_'||SYSDATE||'.ext',
    'w',
    32767
    However, when compiling the package code, it returns the warning:
    ORA-06550: PACKAGE BODY, line 2214, column 29: PLS-00201: identifier 'FN_GET_ID' must be declared
    which results in an error when trying to execute the mapping.
    I've tried substituting the function call in the FOPEN call:
    myId := fn_get_id();
    UTL_FILE.FOPEN(
    'my_location',
    'fixedfilename'||myId||'_'||SYSDATE||'.ext',
    'w',
    32767
    and this works fine, the mapping creates a file with the desired filename. But obviously not a good solution rewriting the generated code all the time....
    Anyone solved something similar?
    Could I use an input parameter and the autogenerated function GET_<PARAMETER>?
    But can I set the value of an input parameter inside the very same mapping?
    Regards,
    -Haakon-

    (It always helps writing out one's problems...)
    I managed to get it working :-)
    Added an input parameter to the mapping, and gave the outgroup variable a default value by calling my imported function.
    Then concatenated the implicitly generated function (GET_PARAMETER) in the Target Data flat file name.
    I now have a target file name that changes according to a departement id stored in a parameter table.
    Regards,
    -Haakon-

  • Dynamic attribute file name

    Hi All,
              I am trying to use dynamic attribute file name using UDF in message mapping:
    <i>String filename = null;
    filename = "Yahoo";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://seeburger.com/xi/common" , "dtSubject");
    conf.put(key1,filename);
    return "";</i>
    But its just giving me the name on the receiver side as in the sender side.
    I have checked FileName in Dynamic attributes in the reciever adapter.
    Regards,
    XIer

    your return statement looks like <i>return "";</i>
    Return the filename that you have assigned inside the UDF and can be achieved by
    conf.put(key1,filename);
    <b>return filename;</b>
    Do refer this blog as well
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

  • When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the original file name being replaced during the downloading process?

    When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the file name being changed during this downloading process?

    Hi Glenyse,
    Here are my steps.
    1.  I upload multiple image (jpg) files onto my photo album.
    2.  I select the "sharing" by email option for this album.
    3.  I enter the recipient's email address.
    4.  The recipient receives my message and clicks on the link.
    5.  The recipient accesses my photo album and clicks on one of the images.
    6.  The image opens up to its own screen.
    7.  The recipient selects the "download" and then save file option.
    Here is the part I do not understand.  For some reason, during this "download" process, the original name which I have given to the file is replaced by different name.  So I was hoping that someone knows how to prevent the file name from being changed during the "download and save" process.
    Much appreciated if you can help me find a solution to this problem.
    Mary  

  • Need help with Dynamic Excel File Name please.

    I am try to output an excel file with dynamic date. 
    Here what I done.
    I am using SQL 2012.
    Create Execute SQL Task Connect Type: Excel
    Create Data Flow Task set to DelayValidation: True
    Create OLE DB Sourc
    Create Data Converstion
    Excel Destination
    Excel Connection, Expression, select ExcelFilePath
    @[User::sXLFilePath] +  @[User::sFileName] + RIGHT("0" + (DT_WSTR, 2) DATEPART("DD", GETDATE()), 2)+ RIGHT("0" + (DT_WSTR, 2) DATEPART("MM", GETDATE()), 2) + RIGHT((DT_WSTR,
    4) DATEPART("YYYY", GETDATE()), 2) +".csv"
    C:\ExcelOutPut\SOX_CAM_SQL_Report_010215.xls
    What I try to accomplish is output the file with each day append to it, date must be DDMMYY.
    I google it and found many samples, tested it, and none of them is work for me. 
    Any suggestions or some examples to share is greatly appreciate. 
    I am new to SSIS.  I found one poster have similar issue and inside the posted below, there was one suggestion to create variable and connection string but how do I bind that variable to Excel Connection manger.
    Please help.
    Thank you so much in advance.
    Ex: SOX_CAM_SQL_Report _020215.csv
           SOX_CAM_SQL_Report _030215.csv
    --Similar issue:
    https://social.msdn.microsoft.com/Forums/en-US/bda433aa-c8f8-47c9-9e56-efd20b8354ac/creating-a-dynamic-excel-file?forum=sqlintegrationservices
    Suggestion in the above posted but where can bind this to Excel Connection Manger. 
    Please help provide step by step.  Thanks.
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\temp\\" + "ExcelTarget" + (DT_WSTR,4)DATEPART("yyyy",GETDATE())  +
    ".xls" + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"
    And yes, as you were intimating, the delay validation on the dataflow should be set.

    Hi NguyenBL,
    According to your description, you created ssis package to export data from database to excel, when the package runs, you want to create new excel and name the file with time stamp. If that is the case, we can achieve the goal by following steps:
    Create a script task used to create excel files.
    Create a data flow task to export data from database to excel.
    Add OLE DB source to data flow task.
    Add Excel Destination to data flow task.
    Create connection manager for OLE DB and Excel.
    Click Excel Connection Manager, in Properties window, click (…) button next to Expressions, then set ExcelFilePath with expression like below:
    "C:\\ETL Lab\\CreateNewExcel\\ExportData_"+REPLACE((DT_STR, 20, 1252)(DT_DBTIMESTAMP)@[System::StartTime], ":", "")+".xls"
    For detail information, please refer to the document:
    https://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Dynamic source file names

    Hi all,
    I am planning to load data from a flat file using an external table in an OWB mapping. Will my mapping work correctly if my file name changes at every load...as an example file name in October is sales_200310 in november it will be sales_200311.
    In case OWB cannot handle this kind of variable file name then does it allow to include a pre mapping script (shell script or batch command) to change the flat file name to a standard name each time the mapping is executed.
    Pls. suggest a workaround for this problem.
    My environment -- Oracle 9i, OWB 9.2
    Thanks in advance.
    Regards,
    Amit.

    Amit,
    OWB does not support dynamic file names at the moment. You will have to rename the file(s) into a static, pre-defined name either by running a pre mapping process in the mapping or by running an external process from a process flow.
    Regards:
    Igor

  • Dynamic XML file names in ODI

    Hi All,
    Is there a way can we call the XML names dynamically.?
    Here is the Scenario,
    I have multiple XML files of same structure to be loaded into an Oracle table.
    I have first created a XML dataserver and have given the exact path and the file name for reversing the XML model for the first time. The JDBC url was,
    jdbc:snps:xml?f=/xml/file/#XML_TEST.FILE_TEST.xml&s=XML_TEST&dod=true&ro=true
    After reversing i have changed the JDBC url of the XML dataserver to,
    jdbc:snps:xml?f=/xml/file/#XML_TEST.var_FILE_NAME.xml&s=XML_TEST&dod=true&ro=true
    I have created a variable *#XML_TEST.var_FILE_NAME* to get all the XML file names.
    After that i tried to view the data from the datastores present under previously reversed XML model, but was getting the following error :
    java.sql.SQLException: While generating the DTD from the XML file, a org.xml.sax.SAXParseException exception occurred saying: Document root element is missing.
    Do I need to change anything in the XML model or in the Datastores?
    Warm Regards,
    VBV

    Since you are using the Variable ,when you right click and view datastore its missing the required path of the file, as value of the variable is not determined , to do so you need to either refresh or set the variable and call the interface or other ODI objects and in loop keep reading XML files one by one and that should work.

  • Dynamic Configuration File Names

    Hi,
    I have a RFC->XI->File scenario.
    I have to put the target files names based on the calculation of values in 2 fields in the input.
    I tried using Dynamic Configuration in my message mapping for this.
    This is the code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
    String MyFileName = a + "_" + b +".xml";
    conf.put(key, myFileName);
    I checked ASMA in both the sender RFC adapter as well as the receiver file adapter.
    But it never works.
    I saw the dynamic configuration tab in SXMB_MONI but i can see only the RFC destination parameter.
    Cant see the file filename parameter.
    What is the problem here?

    No need enable ASMA on RFC sender adapter.
    See if the file channel is activated after selecting ASMA with FileName.
    The UDF might not be use in the mapping. Check this.
    Edited by: Praveen Gujjeti on Feb 23, 2010 1:05 AM

  • Flat file to Oracle: Dynamic flat file name

    Hi,
    I am doing a transformation from flat file to oracle.
    At one place there is requirement like flat file name is dynamic.
    *eg. D:\ Flat DB\ Sample<Date>.txt   
    examples may be like Sample09012012,Sample08012012 *
    As in physical schema we specify name of file is there any way by which we can specify dynamic file name.
    as stated above.
    Any help and suggestions would be appreciated.

    Hi,
    Yes you can specify a variable in the file name ( the resource name filed) .
    You need to refresh the variable in a package and then use the interface to pick data from the file .
    Thanks,
    Sutirtha

  • Dynamic flat file name as source

    Hi All,
    I working on ODI 11g 11.1.1.3 version.
    I have Flat file say ABC01 as source, flat file was successfully load into target.
    But next day new file say ABC02 with same structure was generate from client.
    Every day new file is generate say ABC03, ABC04 and so on.
    how to use this file to load data, without changing file name.
    dynamically can it is possible.
    Please give me suggestion.
    Thanks in advance
    Prashant

    Hi Prashant,
    You can achieve this by doing the following :
    1. Create a variable Called FILE_NAME
    2. Go to your file datastore and replace the Resource Name with variable #FILE_NAME. So you need to pass correct file name to the variable.
    3. To get the filename into variable , you can look into the following thread
    Read FileNames in Directory
    Hope it helps

  • Dynamic Sender File Name

    Hi,
    It’s a File to ABAP Proxy Scenario.
    The files would be processed differently depending on the file name which would be dynamic.
    It would suffice if the file name can be made visible in the payload.
    Does any one have any idea on how to implement this without creating a file adapter module? This method would make it complex.
    Thanks,
    Rosine.

    Hi,
    If yor are on SP14,
    pls have alook at below blog.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you are lesser SP level, than
    1. you can ask for the file name in payload from source.
    2. You have to use adapter module for the same.
    Regards,
    Satish

  • Dynamic Remote File Name for delivering report via FTP

    As many of the threads had the same query about how to pass dynamic filename while scheduling a report using ftp option.
    My requirement is to append the 'ID' which is the identifier of the report with the template name in the Remote Filename section.
    Eg. if ID is 1-34RT5 and the filename should be 1-34RT5_abc.pdf
    I tried appending date(%m%d%y) and it worked for me, but how can I append a parameter?
    Is it possible in stand alone BI Publisher 10.1.3.4?
    Pls let me knw if someone has implemented this. Would really Appreciate.

    for bursting, can I change dinamically the file name?
    I have to burst an invoice report to send to different customer and store to a FTP archive folder.....
    can I change dinamically this name?
    can I select fields to name the pdf file name?
    can I change object and text of the e-mail?
    tks a lot to all
    Andrea

  • Dynamic Physical File names on AL11

    Hi,
    I have the following requirement.
    I have almost 25 files to be exported onto AL11 using OpenHub from various infoproviders and I used the "Logical File name" option to do it.
    I would like to have the physical file names as " ZINFOPROV_<DATE>_<TIME> " and Infoprovider tech. name should get populated dynamically somehow.
    I was looking at the following thread for the same req : Re: Open Hub File name Change
    I defined my logical file name definition as
    Logical file    Z_SALES
    Name            Used for SALES
    Physical file   ZINFOPROV_<DATE>_<TIME>
    Data format     ASC
    Applicat.area   BW
    Logical path    Z_SALES
    I would like this ZINFOPROV populated dynamically.
    Any have any inputs/suggestions.
    Regards,
    Kumar

    Hi Kumar,
    You have a very good question and also shown the viewer of your post the way forward. Well i got your answer from your question only. Considering <DATE> as one kind of literals, you need a literal to identify the infoprovider as one part of your filename. Now my answer is not direct resolution but it may lead you to your answer. Here are the list of other literals that might be of use to you.....
    Extract from the help.......
    Physical path name
    Platform-specific physical path under which files are stored. It most contain the reserved word <FILENAME> as a placeholder for the file name. IT can also contain further reserved words (see below).
    Use
    The physical path name is used by the function module FILE_GET_NAME at run time to create a complete platform-specific file name.
    Procedure
    Specify a path. You can include the following reserved words in pointed brackets. These are replaced with current values at runtime.
    Reserved Word    Replacement Text
    <OPSYS> Operating system in call
    <INSTANCE> R/3 application instance
    <SYSID> R/3 application name in SY-SYSID
    <DBSYS> Database system in SY-DBSYS
    <SAPRL> R/3 release in SY-SAPRL
    <HOST> Host name in SY-HOST
    <CLIENT> Client in SY-MANDT
    <LANGUAGE> Log on language in SY-LANGU
    <DATE> Date in SY-DATUM
    <YEAR> Year in SY-DATUM, 4-character
    <SYEAR> Year in SY-DATUM, 2-character
    <MONTH> Month in SY-DATUM
    <DAY> Day in SY-DATUM
    <WEEKDAY> Day of the week in SY-FDAYW
    <TIME> Time in SY-UZEIT
    <STIME> Hour and minute in SY-UZEIT
    <HOUR> Hour in SY-UZEIT
    <MINUTE> Minute in SY-UZEIT
    <SECOND> Seconds in SY-UZEIT
    <PARAM_1> External parameter 1
    <PARAM_2> External parameter 2
    <PARAM_3> External parameter 3
    <P=name> Name of a profile parameter (see Report RSPARAM for valid values)
    <V=name> Name of a variable (stored in variable table)
    <F=name> Return value of a function module Naming convention for this function module: FILENAME_EXIT_name
    <Y=name> Return value of a function module Naming convention for this function module: Y_FILENAME_EXIT_name
    <Z=name> Return value of a function module Naming convention for this function module: Z_FILENAME_EXIT_name
    Examples
    Local directory for temporary files under Windows NT: D:\GLOBAL\ARCHIVE\<PARAM_1>\<FILENAME>
    Local directory for temporary files under DOS:C:\TMP\<FILENAME>
    Local directory for temporary files under UNIX: /usr/<SYSID>/local/tmp/<CLIENT>/<FILENAME>
    Dependencies
    The function module for the run-time variable <F=name> must meet the following requirements:
    Name
    The name must begin with "FILENAME_EXIT_".
    Parameter
    An export parameter with the name "OUTPUT" must exist.  No structure may exist for this parameters.
    Import parameters are only supported if they have default values.
    Table parameters are not supported.
    Valid example: FILENAME_EXIT_EXAMPLE.
    I hope this leads you to your resolution.
    Regards
    Raj
    Edited by: Rajesh J Salecha on Oct 9, 2009 1:48 PM - Not able to make it properly formatted...
    Edited by: Rajesh J Salecha on Oct 9, 2009 1:54 PM

Maybe you are looking for

  • When I plug in my iPod to iTunes to sync i get an error message

    I get this when I plug in my iPod to sync now: The iPod "joanleigh's iPod" cannot be synced. an unknown error occured (13019). I don't know what would happen that suddenly i can't update my playlists on my iPod. What should I do?

  • Things to consider while designing an interface

    Hi friends, I've got an opportunity to design (functional design) the first outbound interface of my career. I'm little confused with the data mapping part of it with the legacy team. I want to follow a structured method to avoid missing out things a

  • Multiple ipod with itunes

    PLEASE HELP!!!! I have a 3G 20GB ipod and my house mate has a 4GB ipod mini and we are wanting to use the same i tunes programme to transfer songs to both the pods. it is fairly obvious that the mini will not hold as much as the 20GB pod so how do we

  • Solving Known Issues

    This morning I was working on a LVOOP project and was busy with password protecting the methods. Once finished I went working on the derived class and wanted to use the option to override a parent method. Bang. Epic. Fail. When you want to override y

  • How do I display todos or reminders directly in my calendar?

    I have a MacBook Pro with OS X version 10.9.4. I am using Calendar version 7.0 and Reminders version 2.0.  How can I display my Reminders/Todos directly in my Calendar?