Add file name to the element in target message

Hi all!
I try to configure scenario:
Get all files from directory (it will not be the same number of file every time) and mapping this file to the ERP system. I use File adapter to do this. But what Is necessary I need to mapp the file name to the element in target message.
I mean: When I have got the RFC structure imprted from ERP and there I have got the element "filename". I would like to put the file name of file which I mapping to this element. Next put the all file contents with file name to the ERP table.
It is possible to do that??
I found in sap help that I can keep file name in the message header to get the same target file name, but I wont to put file contents (with file name) to the ERP table not to another file.
THX for all your opinions.

The DynamicConfiguration fin inbound message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Inbound Message
  -->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">/usr/sap/PXD/put/archive</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileEncoding">ISO646-US</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileTimestamp">20061212T121622Z</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">txt</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">200610.TXT</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">124</SAP:Record>
  </SAP:DynamicConfiguration>
and for Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Response
  -->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">124</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">txt</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileTimestamp">20061212T121622Z</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileEncoding">ISO646-US</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">200610.TXT</SAP:Record>
  <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">/usr/sap/PXD/put/archive</SAP:Record>
  </SAP:DynamicConfiguration>

Similar Messages

  • How do I add my name to the camera data file in meta data?

    When reviewing the meta data on my photos I see the camera model number, serial number, focal length, etc.  The camera owner field is blank.  How do I add my name to the camera owner field?
    I'm using Photoshop CC, on a windows 8.1 Pro platform.  Any help would be greatly appreciated.
    Caitlin

    I did add all the info on the menu section you mentioned above.  Unfortunately it does not show up as "Owner" when you view the data file in Photoshop CC for some reason. Copyright info shows properly, but not camera owner.  It's not a big problem anyway, just a pride of ownership thingy .  I downloaded the GeoSetter program, and after reviewing the meta data contained there I don't see an option for "owner" there either.  Perhaps its something that Adobe plans to implement someday, who knows. Thanks for your suggestions everyone.
    This is my first DSLR, all I have shot in the past have been film cameras and we didn't have any of this fancy info available unless we wrote it down somewhere, smile.  I was still using my old Nikomat that I purchased in 1972 when I was stationed in Japan. I was a bit stubborn when it came to switching to DSLR sorry I waited so long now.
    Oh, Trevor, sorry to learn you may be using something other than Nikon, I didn't know there was another brand other than Nikon!
    Caitlin

  • How can I get Elements 11 Organiser to sort by File Name as in Elements 7

    I have just acquired Elements 11 to replace Elements 7
    All my main photos (thousands) are in 1 file on my computer.
    My individual file names are dates - eg "1960-09Sept Venice St Marks Square.." etc, so File Names bring my thousands of images up in date order.
    I have tagged them in  Elements 11  as  appropriate with 1 or more Tags per photo.
    In Elements 7 there is an Option "Display" and one of the options is "Folder Location" i.e file name order, which is what I want.
    I cannot find this option in Elements 11 - all I have found is an option to sort by just "new" or "old" i.e file date order. Fine for photgraphs where the file date is the same as the photo but a scan done today may be of an image in 1960 which is where I wanted it sorted!
    I know you can amend the file date in Elements 11 for each image but I have hundreds of scans to redate!
    I also know you can bring the images up in Elements 11 of my whole file by using "Reveal in Explorer" which brings them up in file name/date order for me but not when I click on the Elements 11 Tags which reverts to File Date.
    Is there anyway I can get the Tags to sort by File Name/Location in Elements 11 as in Elements 7?
    Tony

    Many thanks for your previous message. Very useful.
    In fact in preparing to answer your question, I find that maybe my problem is not as bad as I thought!
    Yes, I have a lot of photos but the majority in digital form are photos (2,500) since the year 2000 which will be sorted by Elements according to the photo/file date.
    I have 6,000 or so prints/slides going back mostly to the 1930s but quite a few back as far as the late 1800s. I am scanning a lot of these into digital form but I have only scanned about 500 or so so far and it is only these that are causing a problem. (I am unlikely to scan all 6,000!). These range from the 1880s to 2000. However, as I only started taking digital photos in 2000, if I follow your suggestion, I could give all my scans the same file date (a date prior to 2000) and if I understand correctly what you say, they will then all be sorted in the alpha/numeric order I want.
    Have I got this right?.
    I suppose, as an alternative, It would not be a real problem to insert a file date for the 500 or so I have scanned and I would then just need to enter a file date for any future scans.
    As you indicate, there are other options but one of the 2 options above seem at present to be my best bet.
    Thank you very much for your suggestions - maybe I can now more or less get what I want without too much effort but I would still prefer Adobe to add a File Location Option as before!
    First & last paragraphs were edited by: Tony Boulton 8/6/13 0054

  • How can I Bulk add file name to picture

    I want to add the file name to the picture, so that when people look at the picture the file name is embedded into the picture.
    I have done some research on this top and have found some mention of tools that people have build to do this and indeed many different things I suppose.
    Im using PSE 10. Windows 7 Prof.  From what I understand, I cant build tools because my version eg Elements is not full blown. But if people have build something to do this I can then add it to my software and it will function for me.
    While in full, quick or even guided there appears to be an option under File/Automation Tools. This appears to be what I need.
    Can anyone tell me where this add on is and how to use it, I cant seem to find it and I really dont know if it will work with PSE 10. Many of the refrences I have seen seem to be for earlier version.
    Perhaps there is an easier way ??
    Thanks

    Good question.
    Basically what I want is the name of the photo name actually in the photo.  I have 400 pictues, I want to put them into a digital picture frame, and I want each picture to be display with the name of the pictures eg. Florida 2012.jpg and Grand Canyon.jpg. Of course I dont need the .jpg extention. But If it is there I can live with it. Im not sure if the Caption option in photoshop elements  can be exported so that the caption is hard wired into the picture. maybe it is. HOWEVER, what I dont want to do is go through 400 pictures and type in the caption for each pictures, if this option is available. It would be nice if the utility copyed the fild name into the caption, if you  could save it with the caption name, but I think Im asking too much.
    Anyway basically I want the file name build into the  photo how ever this could be done in a bulk mode.
    Is that  a lttle clearer. Here is an examle worth a 1000 words.
    BTW I did an experiment and if you put the name in the caption line of the photo. It does not get exported with the file name in the picture. ( which I would asume since not many want the name in the photo, ) Although maybe there is some option that can be turned on to do this ??
    Regards

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Dynamic File Name - Suppress the Substitue varible

    Hi All,
    I am doing the scenarios like File name at the recevier end would be dynamic for that i take an extra field NAME mapped with UDF which return the file name dynamically. It is working fine and doing good. But the problem here is , this field is the first field in my target structure so i am getting an empty line in the target file.
    So My structure as follows:
    <b>MT_BNK01           1..1
      NAME                1..1
      RECORD             0..Unbound
          --Record_data  0..Unbound</b>
    So in the recever side i written as follows
    Recordset Structure:: RECORD
    <b>RECORD.fieldSeparator = 'nl'
    RECORD.endSeparator = 'nl'</b>
    But according to this weblog i can suppress the empty line but it is not working
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    means, NAME is also in the same level of RECORD in the Structure. So How can i pass the structure as ??
    I tried to pass the RecordSet Structure: NAME,RECORD
    and following parameters, it is not working
    <b>NAME.fieldFixedLength =0
    NAME.fieldLengthTooShortHandling = Cut</b>
    Can you please  suggest me what could be the reason. Tell me what information i need to pass the RecordSet Structure and attrubute information also.
    One more thing like, My sender side it is not picking the empty lines. What could be the reason. I given fieldSeparator and endSeparator as 'nl'. So to catch the empty line what i need to do???
    Thanks in Advance,
    Best Regards,
    Vijay

    Hi Vijaya,
    This can be solved. Actually i had the same scenario where i was getting blank line for the header. Suppose Header was carrying the file name after i cut the value i would get a blank line in file.
    So i added in content conversion parameter the following line
    Header.endSeparator - '0'
    then the first line was not blank.
    Try this, i think your issue will be solved
    Regards,
    Ramesh P
    Message was edited by:
            Ramesh Parashivamurthy

  • UDF to capture the source file name or the source folder for mapping

    Hi All,
    i have 2 files -  File1 from File2 from 2 different folders- single comm channel FTP (FCC). i have to pass a constant A and B respectively to a field in target structure.
    my options are -
    either create a new field in source str populating different constants and  then map to the target str
    or a udf to get the source file name or the source folder so that i can map the constant using the value mapping/FixValue mapping.
    please suggest. thanks.
    rajib

    Hi,
    please use the UDF to determine the file name. Then based on file name either pass A or B to your target field.
    The code is as given below. Just tweak the code to pass either A or B as per your requirement.
    public String G_GetFileName(Container container) throws StreamTransformationException{
    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; 
    Regards,
    Deepak.

  • In mini bridge, is it possible to view the file name and the rating at the same time?

    Hello,
    In mini bridge, is it possible to view the file name and the rating at the same time?
    Thank you.

    if you know when a new image arrives and you can retrieve that new image file name ...
    Well, that's precisely my doubt, how can I know the file name? Is there a property/method for it?
    function loadImages() {
    for (var i:int=0; i<imagesNames.length; i++) {
    var imgLoader:Loader=new Loader;
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoaded);
    imgLoader.load(new URLRequest(imgPath + imagesNames[i]));
    function imgLoaded(par:Event):void {
    trace(par.target,par.target.content,par.target.content.name);
    Output window:
    [object LoaderInfo] [object Bitmap] instance160
    [object LoaderInfo] [object Bitmap] instance159
    [object LoaderInfo] [object Bitmap] instance161    

  • File-2-Proxy: Get file name in the inbound proxy?

    Hi,
    I need to know the file name in the inbound proxy. After a search I found that's possible mapping the file name to the target structure as it's explained in that link: [http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1731350750DB00274596951164745615End?blog=/pub/wlg/2664]
    But I need to know if there is another way to access the file name in the inbound proxy without modifying the mapping.
    Thanks.

    this is possible by a dynamic configuration (there is no other easy way)
    some references -
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1159980350DB00296046510040545862End?blog=/pub/wlg/13704
    the idea is to get the file name in runtime using the dynamic conf code and poulating it to any field that will be part of the proxy message

  • How can I edit the file name of the home page?

    How can I edit the file name of the home page?
    Gr Ammani

    I have a similar issue with regards to the filename...
    When I navigate to my website, it doesnt work unless I actually type the filename at the end of it. Example: type in "www.whitelion.com" (this is my real domain name) and it doesnt work. When I type in "www.whitelion.com/index.html" then it works.
    This is obviously inconvenient because my clients will never know to add the filename to the end of the site.
    Is there any setting or way to get the page to appear by just typing the original domain name without adding the extension?
    Thanks,
    Emelia

  • How to insert the file name to the start and the end of a SQL file by a powershell script

    I just began to learn powershell script and I have a problem that I cannot figure out. I have a lot of .sql files. I need to insert its file name to the beginning of the file (After USE statement) and the end of the file (before the last END statement). Is
    there anybody knowing how to do this?
    Thanks so much
    Regards

    Actually, I want to add a insert SQL statement to the beginning of the file and the end of the file. Only the file name is a variable and different among
    different files. All the other sql statements are the same and can be hard coded. Hopefully it helps –
    The problem I think is that I want to add the same thing (except the file name) to hundreds of sql files and only the file name is different. I do not want
    to add it manually and want to use a script to add it – 

  • I have a keynote presentation that i built a while ago. How do identify the file names of the video files that are in the presentation?

    I have a keynote presentation that i built a while ago. How do i now identify the file names of the video files that are in the presentation?

    With your presentation open, click on each movie element and read the name in the Metrics Inspector > File Info.

  • Displaying complete file names on the desktop

    I think there was a way to get the finder to display the complete file names on the desktop. Some terminal command. Can anybody help?

    I have files on the Desktop that don't have that issue. But when I add characters to them I eventually reach the breaking point -- 37 characters is fine; 38 characters causes the file name to truncate. I suppose there may be a way to set a secret pref to show a larger number of characters using Terminal.
    Anyone know how many characters the OS file system is limited to -- ignoring display issues, I mean?
    Rob

  • Dynamic file name of the attachment in sender mail adapter

    Hi
    I have configured a sender mail adapter which receives some attachments.
    Right now the file name of the attachment is hardcoded to "MailAttachment-1" "MailAttachment-2" using the content-description from "AF_Modules/PayloadSwapBean" module.
    I want to set it to dynamic ie. instead of "MailAttachment-1"... i want it with real name of the attach.
    please suggest a solution w/o the need to develop a custom adapter module.
    Thanks!
    Regards,
    Mariano.

    Thanks Prateek,
    Now, i can see that the name of the original file is into the content type named as  text/xml; name"name of the file.xml" when i send the email from outlook.
    If i send it from hotmail, this is not happend.
    Do you know why happend this?
    If i always would have the original name inside the content type, my problem will be solved.
    Edited by: Mariano Vidal on Feb 13, 2009 2:26 PM

  • Reading file names in the unix box

    Hello,
    I did the following to read the files from the local directory.
    String s1 = "c:\samplefiles"
    File dir = new File(s1);
    if(dir.isDirectory())
    String listoffiles [] = dir.list();
    for(int i = 0; i <listoffiles.length ; i++)
    System.out.println(listoffiles);
    else
    System.out.println("Its not a directory");
    How can i read and print the file names in the unix box?
    Thank You.
    Kumar

    Thank You for the reply.
    In my custom page, i am trying to include a search page which includes date parameters based on which the pdf files in the unix box should be displayed in the page as a list. (The pdf file names start with the date).
    Once the user clicks the file names displayed in the page, i need to open the pdf. This part i can handle but to search the file names based on the parameter names and display in the page as the list is a bit confusing.
    Thank You.

Maybe you are looking for

  • Bills Discounting Reversed

    Dear All, We have Post the bill usuage through F-33. Now suppose Customer doenot pay to the bank. How to reverse the transaction at the same time we have to book the receivable which was nullified when we have done f-36. I have the 4.6 Bills of excha

  • Which Fact tables are part of OBIA Financial Analytics v796?

    Does anyone know which fact tables (Star schemas) are associated with Financial Analytic license? As of now, I am going thru the document: OracleBusinessAnalyticsWarehouseDMR_V796.pdf and i am trying to identify which Star Schema's are associated wit

  • SSF COMPOSER ERROR

    Hi All, While trying to configure the smart forms I am getting SSFCOMPOSER001 Error, what does it mean.what I have to do to fix this out. Can somebody please help me out. Thanks, Praveen

  • Creating sub menu's under Abstract Action.

    Folks, I am trying to create a sub-menu under abstract actions. But when I run the application,I can only see 'Create New Positions' menu item; and cannot view/invoke the sub menu options(ie Create Position One/Two). Is there a way to create sub menu

  • Suitcase for MacBook (Late 2008)

    Hello, I am using the MacBook for business meetings. Often the MacBook is in an traveling bag but that is roughly handled. I am searching for a stylish suitcase for this MacBook, with place for the MacBook, the adapter and some documents. I'd like th