Insert file name to RFC

Hello,
I have scenario from File to RFC.
I need to insert to one of the XML tag in RFC the file name.
I try to implement the Michael blog:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
But I received this error message:
RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns1:ZXI_INV_VISIBILITY_VALIDATE/INPUT_FILE/item/INV_TYPE. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._inventory_visibilty_Validate_MM_ method filename$[, com.sap.aii.mappingtool.tf3.rt.Context@1ca63f6]
Any idea how to solve this issue?
Thank you in advance for you help
Elad

for waiting state of message means either receiving system is not ready or there are some messages which are into system error state under RWB message monitoring. Please calcel all System Error messags from RWB.
Secondly in MONI you can check if your target file was mapped with file name or not.
Also check the queus by SMQ1 & SMQ2, if something got stuck there then you need to clear it. Check in both in PI & in R3.
Edited by: Sarvesh Singh on Jan 10, 2010 3:26 PM

Similar Messages

  • Pages 5: Insert File Name

    How do I insert the File Name? How do I update an old File Name that was previously inserted?
    It's common practice to insert the document name in the footer of document, so people reading the document know what version the file was printed from. This was easily handled in the past version of Pages by going to the "Insert" menu and selecting "File Name". If you later modified a document, you could righ click on the inserted document name and the contextual menu would offer you the option to "Update File Name".
    Pages 5 seems to be missing this functionality. The software help instructions offer zero mention of Insert File Name.
    Has this been removed? If so, that's crazytown. If not, I'd sure appreciate being explained how to use this important feature.
    Thank you!

    Tell Apple and Apple's users by rating/reviewing Pages 5 in the App Store.
    Apple tries to clear out the bad reviews but with every new version they keep sinking lower and lower.
    In the Australian M.A.S. it is getting almost 3/4 saying they don't like it, with almost 3/5ths saying they hate it. Worse than the previous v5.0.
    I assume there were some who just quickly looked at it and didn't know what Apple had done. A few bad files and intractable problems later, and they are starting to wake up.
    The problem with the reviews is that mostly people do it on first impressions and they can't go back and correct their review in the light of experience, until the next version comes out.
    Peter

  • Script to insert file name into keywords field of same file

    Hello,
    search a solution, a Script or another, which writes the file name into keywords field of same file (Metadata: Description/Keywords) in "photoshop", "bridge" or better in "Lightroom" .
    I found this topic from Mike Hale http://www.ps-scripts.com/bb/viewtopic.php?t=1330
    It's possible this script to change this in such a way that it does this:
    "script to insert file name into keywords field of same file"
    Thanks and best greetings
    Wolfgang

    This works in CS2:-
    #target bridge
       if( BridgeTalk.appName == "bridge" ) {
    nameDescription = MenuElement.create("command", "AddName to Description", "at the beginning of Thumbnail");
    nameDescription .onSelect = function () {
         nameToDescription();
    function nameToDescription(){
    var items = app.document.selections;
          for (var i = 0; i < items.length; ++i) {
             var item = items[i];   
    var m = item.synchronousMetadata;
    filenameToDesc(m, item.name.slice(0,-4));
    function filenameToDesc(metadata, Description) {
    var strTmpl = "name2Desc";
    var strUser = Folder.userData.absoluteURI;
    var filTmpl = new File(strUser + "/Adobe/XMP/Metadata Templates/" + strTmpl + ".xmp");
    var fResult = false;
    try
    { if (filTmpl.exists)
    filTmpl.remove();
    fResult = filTmpl.open("w");
    if (fResult) {
    filTmpl.writeln("<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"3.1.2-113\">");
    filTmpl.writeln(" <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">");
    filTmpl.writeln(" <rdf:Description rdf:about=\"\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">");
    filTmpl.writeln("<dc:description>");
    filTmpl.writeln("<rdf:Alt>");
    filTmpl.writeln("<rdf:li xml:lang=\"x-default\">"+Description+"</rdf:li>");
    filTmpl.writeln("</rdf:Alt>");
    filTmpl.writeln("</dc:description>");
    filTmpl.writeln(" </rdf:Description>");
    filTmpl.writeln(" </rdf:RDF>");
    filTmpl.writeln("</x:xmpmeta>");
    fResult = filTmpl.close();
    metadata.applyMetadataTemplate(strTmpl, "replace");
    filTmpl.remove();
    catch(e)
    { fResult = false; }
    return fResult;

  • Where is Insert File Name?

    In pages 09, you can insert file name (Insert menu), e.g. into a header so that if you have hard copy, you know what file is called.

    Gone, with well over 100 other features.
    You should still have Pages '09 in your Applications/iWork folder, use that and rate/review Pages 5.5.2 in the App Store.
    Peter

  • File name from RFC

    Hello,
    I have scenario from RFC to File(CSV).
    The RFC structure is:
    <Z_PORTAL_PURCH>
         <LAND></LAND>
         <PURCH_PRICE>
              <item>
                   <a></a>
                   <b></b>
                   <c></c>
              </item>     
         </PURCH_PRICE>
    </Z_PORTAL_PURCH>
    The target is:
    <ECC_PURCH_PORTAL>
              <item>
                   <a></a>
                   <b></b>
                   <c></c>
              </item>     
    </ECC_PURCH_PORTAL>
    I able to create the file with correct stracture
    Now I try to change the file name and take the paramer from <LAND> field in the RFC
    How can I do this?
    Elad

    Hello,
    When Itried to use with the UDF.
    I received this error message:
    14:25:50 Start of test
    Source code has syntax error: L:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map4b141341503111de99ce001635c5b25f/source/com/sap/xi/tf/_ecc_purch_price_MM_.java:64: ';' expected DynamicConfigurationKey DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error Source code has syntax error: L:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map4b141341503111de99ce001635c5b25f/source/com/sap/xi/tf/_ecc_purch_price_MM_.java:64: ';' expected DynamicConfigurationKey DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error
    14:25:51 End of test
    Elad
    Hi,
    It seems that you are testing this UDF from Test tab. If yes, it wont work.
    You need to run the whole scenario.
    Regards,
    Chandra

  • Insert Page Name in Master page

    Hello.
    I was wondering if there was an easy way to insert the page name inside a master page, something like indesign's variable ?
    If i want this exactly like the widgets (drag and drop a box, it places with editable attribute of pageitem::menu), i'm ok to type and paste some html.
    (I also wonder how to use the widgets.muse file to build my own, but that's another question i guess)

    Thanks, this sounds like just what I'm after. However…
    I feel pretty silly asking this, but I can't understand the Adobe Help files on overriding a master item.
    It lists a two step process:
    Make sure the master item can be overridden -this seems to be fine. After selecting the inserted File Name in the master I can see a tick next to Allow Master Item Overrides On Selection in the Pages panel menu.
    Override specific master items on a document page - this is where I get lost.
    Firstly I can't select the items on a regular (non-master) page. Am I meant to select them on the master page?
    Secondly the help file simply says "Change the selected master items as desired." How do I change them. There's no explicit instruction, and I can't for the life of me work it out.
    More generally (if this does happen on a master), do I need to make this change on every document in the book, or can I simply make the change on the Style Source and then synchronise the remaining files?

  • Image upload safari ios6 issue -file name always image.jpg

    I could not wait for ios6 when I found out safari allowed for image / photo upload through safari web forms.
    I tested and see the image in form..hit submit and it uploads with the file name image.jpg
    Do it again and same file name for a different photo. This is completely useless. If I upload to my website it just overwrites. 99% of the masses need a unique name, when uploading. Why can it now use the file name in the photos folder?
    Even emailing them out it holds a generic name.
    Looks like an easy fix...insert file name not default name. Lets fix this Apple..or your new feature is as worthless as not having it at all.
    Disappointed to say the least...no I am dumbfounded.

    @kdmasterdas: How did you rename the file??
    It really *** that Apple is not fixing this problem while it's a big problem, especially in a business environment.

  • Automatic insertion of file name in Pages footer?

    I'm considering using Pages instead of MS Word. One thing I can't figure out is if it is possible to use a function to automatically insert the filename in the footer of a page (or anywhere else for that matter)? Having the file name on printouts is great for finding old files, and Word has such a function that inserts it when the file is first saved. It is a real time saver when using a template (or old file) to create new files.

    I'm considering using Pages instead of MS Word. One thing I can't figure out is if it is possible to use a function to automatically insert the filename in the footer of a page (or anywhere else for that matter)? Having the file name on printouts is great for finding old files, and Word has such a function that inserts it when the file is first saved. It is a real time saver when using a template (or old file) to create new files.

  • 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

  • " the volume for (file name) cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again."

    I get an error message in iPhoto when I click on thumbnails of pictures in certain albums. It reads 'the volume for "(file name)" cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again.'  What does this mean and how do I fix it?

    It means that you imported the files in Referenced mode and have now remvoed them from the Mac. Put the disk or card back.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

  • Insert a directory path and file name option

    I built a program that runs three tasks when a voltage triggers the data acquisition. I would like now to insert an option/control for two issues: selection of the directory where the data will be saved, and selection of the file name. How can I do this such that after I press 'start' I should be asked which is the directory where I want the data to be saved and then what is the file name?
    Another option would be the following: After I press 'Start' I will have a control where I can write or browse for the folder where I want to save the data; then I have another controller where I write the new file name. So in this case I should not be prompted except the case when I am trying to use the same file name.
    Where should I con
    nect this new subvi in my loop - before the tasksand before the trigger, or after the tasks and before the trigger?
    Thank you.

    Programming with LabVIEW might be fun but it is quite time consuming�
    OK, here is what I want to do.
    I have to monitor a machining process. I have to record cutting forces, power consumed, vibrations, and temperature. From each of these sensors I get a voltage as output and I used �Measurement and automation� and NI-DAQmx to program my tasks (I have LabVIEW Express running in Windows XP).
    The triggering of DAQ is generated by the input of a 4.5V DC when the CNC program starts; the stop occurs when CNC program ends and the output voltage becomes 0V. I have finished all the connections and now I have to build the vi.
    The �small picture� could be described this way:
    I want to record the parameters and save them in files that I could process later using specific vi.
    The �big picture� would be the following:
    I would like to build a stand alone program that will do the following: when I run the program [ i. e. double-click the shortcut (or the file)] a panel should come up in the center of the screen � in this panel I would like to be able to select what process am I going to investigate: grinding, turning, milling, drilling, tapping etc.
    Once I selected what process I am going to investigate, the front panel of a vi should come up � In this panel I should be able to select what parameters I am going to record: forces, power, vibrations, and temperature. On the front panel I should be able to see the waveform of the acquired data. A start/stop button and a led green/red for each parameter should show me the status of the acquisition (green is on, red is off). The start/stop button should allow me to �manually� start or stop the program at any time. Additionally, on the front panel I should also have icons with a choice for directory (folder) path, file name, and comments regarding the experiment. The date and time should be recorded in the file that is saved. There should be an option (check box or selection icon) for saving the data in binary or ASCII format.
    Similar to any program, the front panel should have a toolbar containing File, Operate and Help options. The File option should contain �Clear graphs�, �Setup DAQ� and �Exit� and the Operate option should contain: Use digital alarm, Use digital trigger, and Write data to disk with the option to be selected or deselected. The main front panel should close when I select File -> Exit.
    The File -> Setup DAQ selection should bring up another front panel in which I should be able to see the acquisition control panel (device, channels to get, buffer size, units � English or metric) and the calibration factors (for the tasks, including triggering voltage) including sampling rate.
    Well, that�s almost all. I understand I cannot do this all at once. Unfortunately, I have a very close due date in getting the system up and ready. I am hoping that I could get some help setting up a simple program and I could develop the rest step by step later...
    Can anybody help me with this program? I have attached a first attempt that would allow automatic triggering and stopping as well as displaying of forces, power and acceleration.
    Thank you in advance.
    Radu
    Attachments:
    Acq_Graph_Voltage-Int_Clk-Dig_Start_Ref_TRIAL1.vi ‏201 KB

  • How to keep file name on "Insert as new"

    If a record has a related file, the file-name is stored in a field of that record.
    When you open the record and choose "Insert as new" everything is copied to a new record, except this file-name.
    How to save this file-name too?
    thanx

    Hello,
    Set the PrintOption.JobTitle value for the print job. Here's C# code on how to:
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                // this sets the name of the print job
                rasPROpts.JobTitle = "MYPrintJob";
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • Inserting automatic file name, date and time in Illustrator CS3?

    hello all,
    is there an option in Illustrator where you could automatically insert inside your file the file name, date and time where it was last created or modified, etc.
    I found this option to exist in InDesign, but could not find the same menu in Illustrator. I am using CS3.
    help?
    thanks a bunch.

    Mario,
    would you please be so kind to include a reference on your site about the script? As far as I can see, the PutDateandTime.js you are providing here is a copy or a slightly modified copy of the original script that Wolfgang Reszel has provided on our site for about four years.
    It is okay that the script is available on your site, but please not without a reference. Thanks.

  • How can I insert the file name automatically on all pages?

    I would like that on all pages of my keynote presentations the file name is inserted automatically in a footer as eg in EXCEL and Word.

    Oh yeah! Very similar to that one is Print Window. I use it all the time.
    http://www.printwindowapp.com
    It costs $20 if you want all the extra features the free version doesn't have. But I've always used the free version. Nothing in the paid version I need.

  • [RFC to File]Problem about Changing file name in message mapping.

    Hi,
    my problem:
        Type:RFC to File
        I change the file name in message mapping.
    when I call the RFC to send the data twice at the same time, both of the output file names are changed while I only want to change the second output file name.
        thanks
    Sam

    In my MM, the input values to these variables (var1, var2 and var3) are (<ZZCOMBI>array,G499999,END_FIFC0029) ,
    var1 is an array of input <ZZCOMBI> item list;
    var2 is get from a property file by call another UDF;
    var3 is constant value.
    the test input data :
    I send the data for the first time:
    - <rfc:Z_IFCFR821_ZIFCTT82100010 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <T_ZIFCTS82100010>
    - <item>
    <ZZCOMBI>G000002G000002</ZZCOMBI>
    <ZZKYKBN>*</ZZKYKBN>
    <ENAME_VE />
    <ENAME_Z5 />
    </item>
    </T_ZIFCTS82100010>
    </rfc:Z_IFCFR821_ZIFCTT82100010>
    so the input values to these variables (var1, var2 and var3) are (G000002G000002,G499999,END_FIFC0029)
    the output file name(File1) :END_FIFC002920090413-171534-053.dat
    output record: G000002G000002
    because the data what I send is the last record, the system send the dummy data for the second time by program.
    - <rfc:Z_IFCFR821_ZIFCTT82100010 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <T_ZIFCTS82100010>
    - <item>
    <ZZCOMBI>G499999</ZZCOMBI>
    <ZZKYKBN />
    <ENAME_VE />
    <ENAME_Z5 />
    </item>
    </T_ZIFCTS82100010>
    </rfc:Z_IFCFR821_ZIFCTT82100010>
    so the input values to these variables (var1, var2 and var3) are (G499999,G499999,END_FIFC0029)
    the output file name(File2) :END_FIFC002920090413-171533-928.dat
    output record: G499999
    I find that File2(20090413-171533-928) was ouput before File1(20090413-171534-053 ) from the time stamp.
    I am not sure about that "XI will create a message ID for each message and the messages are independent." as you mentioned above.
    Best regards
    Sam
    Edited by: YONGHE ZHOU on Apr 15, 2009 3:59 AM

Maybe you are looking for