Adding own name in Receiver Text file in receiver FCC

hi,
In my receiver file CC(using file content conversion)
I want to add some names on the receiver text file name automatically.
sender is R3 that is IDOC as MI.
In that field called CURCY on one segment and country one segment.
ex.
Now the receiver file name in FTP server (example)
Result_report_20070721-104810-765.txt
i want to get CURCY, COUNTRY field value on receiver file name in FTP server (it varies)
example:
Result_report_USD_USA_20070721-104810-765.txt
Result_report_EURO_DE_20070721-104810-765.txt
Result_report_EURO_FR_20070721-104810-765.txt
Thanks

hi,
I am getting error in my message monitoring like message are in HOLDING bec of mistake which i made in Receiver FILE CC
as i said:
I followed my help.sap.com link to do this req.
In my receiver file CC(using file content conversion)
I want to add some names on the receiver text file name automatically.
sender is R3 that is IDOC as MI.
In that field called CURCY on one segment and country one segment.
ex.
Now the receiver file name in FTP server (example)
Result_report_20070721-104810-765.txt
i want to get CURCY, COUNTRY field value on receiver file name in FTP server (it varies)
example:
Result_report_USD_USA_20070721-104810-765.txt
Result_report_EURO_DE_20070721-104810-765.txt
Result_report_EURO_FR_20070721-104810-765.txt
My message mapping is
Source is IDOC occurence is 1
Receiver File adapter: 0 to unbounded
My message type on receiver is
MT_Receiver
DT_Receiversub1 (under MT_receiver)
COUNTRY (third value under DT_DT_Receiversub1)
I have mentioned in receiver FILE CC advanced variable substitution like this:
variable Name :    var1
Reference:    payload:DT_Receiversub1,3
I am not receiving my file in Receiver FTP server.
The mesage are on HOLDING in message monitoring
Thanks

Similar Messages

  • Returning strings of the same name in a text file from an array

    Hi,
    Another quick question. I have a text file with lines consisting of one integer, and four strings. Currently, I am able to search through this file and find any of the variables listed within. However, if any of the variables are listed more than once, and I search for that particular varable name, it only prints out the first line containing that particular variable name.
    Basically, how do I modify the following code so that the search method returns all the instances of a particular variable name in the text file?
    My current code is as follows,
    1. Search method,
    public Title lookUpDirector(String requiredDetails) {
            boolean found = false;
            int next = 0;
            while (!found && (next<TitleCount))
                if ( TitleArray[next].getDirector().equals(requiredDetails))
                    found = true;
                else next++;
            if (found) return TitleArray[next];
            else return null;
        }2. Test main class
    import simplejava.*;
    public class SearchTitleDirector
        public static void main(String[] args) {
            String titleDetails;
            SimpleReader keyboard = new SimpleReader();
            SimpleWriter screen = new SimpleWriter();
            SimpleReader inFile = new SimpleReader("title_test.txt");
            TitleList title = new TitleList(inFile);
            TitleList[] sortedArray = new TitleList[]{title};
            titleDetails=keyboard.readLine("Director?");
            Title search = title.lookUpDirector(titleDetails);
            if (search == null)
                screen.println("Not found");
            else screen.println(search);
    }Any help or advice appreciated!

    Thanks for the reply and advice.
    I have tried implementing the lookUpDirector method as follows,
    public TitleList lookUpDirector(String requiredDetails) {
            boolean found = false;
            int next = 0;
            TitleList list = new TitleList();
                while (!found && next<titleCount) {
                    if ( titleArray[next].getDirector().equals(requiredDetails)) {
                        list.add(titleArray[next]);
                        next++;
              if (found) return list;
              else return null;
            }When I use this method with the previous test main class, it compiles and runs, but after the user inputs the name of the director to search for, the input window freezes indefinitely and no result is achieved. The output pane in NetBeans is as follows,
    init:
    deps-jar:
    compile-single:
    run-single:
    Director?The only way to stop the process is to terminate it in the Runtime section of NetBeans.
    I have no idea why this is happening. Any advice?

  • Tablet added, own phone number - can you send and receive text msgs ?

    I got the G Pad 8.3" let tablet and it was added as an extra line, so it was given a phone number. Was wondering, since it does have it's own phone number, is it possible to send and receive texts on it using the phone number provided ? I tried just sending a text to that number, but the tablet never received it. Since it does have it's own phone number tho, is there anyway to do this ?

        donintn,
    That is a very interesting question! While it does have its own phone number, texting & voice calls can not be enabled for tablet devices. You can, however, use apps like Verizon Messages to send texts back & forth using the phone number for any one of your regular phone lines. There are also 3rd party apps that will give you the ability to text using thier data enabled texts. View your app options in your Google Play store.
    SandyS_VZW
    Follow us on Twitter @VZWSupport

  • Sorting Names in a text file using java program

    h1. Deleting numbers in a text file, sorting the names  and writing in to a new file
    h2. Sample data
    =================
    71234 RAJA
    89763 KING
    89877 QUEEN
    ==================
    h2. Java Program
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileWriter;
    import java.io.InputStreamReader;
    import java.io.Writer;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.Iterator;
    class Sortnames { 
    public static void main(String args[]) { 
    try { 
    ArrayList storeWordList = new ArrayList();
    ArrayList storeWordList2 = new ArrayList();
                   int i;
    char c;
                   String inputfile = "names_konda.txt";
                   String tempfile = "newdatafile.txt";
                   String outputfile = "sortedoutput.txt";
                   StringBuffer strBuff=null;
    Writer output = null;
    File file =null;
                   Writer sortedoutput = null;
    boolean select =false;
                   //*********************************************** Reading data from Input file     
    FileInputStream fstream = new FileInputStream(inputfile);
    // Get the object of DataInputStream
    DataInputStream in = new DataInputStream(fstream);
    BufferedReader br = new BufferedReader(new InputStreamReader(in));
    String strLine;
    //Read File Line By Line
    while ((strLine = br.readLine()) != null) { 
    storeWordList.add(strLine);
    //Close the input stream
    in.close();
                   //*********************************************** Adding only alphabets to buffer and writing to file
                   file= new File(tempfile);
                   output = new BufferedWriter(new FileWriter(file));
    strBuff = new StringBuffer();
    for (Iterator iter = storeWordList.iterator(); iter.hasNext();) { 
         String s = (String) iter.next();
                        //System.out.println("String "+s);
         for (i = 0; i < s.length() ; i++)
    c = s.charAt(i);
    if (Character.isLetter(c)) {
    strBuff.append(c);
                        strBuff.append("\n");
    String myout = strBuff.toString();                
         output.write(myout);
         output.close();
         //============================================== Reading the created file,Sorting and placing in Collections
                   FileInputStream fstream2 = new FileInputStream(tempfile);
    // Get the object of DataInputStream
    DataInputStream in2 = new DataInputStream(fstream2);
    BufferedReader br2 = new BufferedReader(new InputStreamReader(in2));
    String strLine2;
    //Read File Line By Line
    while ((strLine2 = br2.readLine()) != null) {                 
    storeWordList2.add(strLine2);
    Collections.sort(storeWordList2);
                   //===================================================
    File sortedfile = new File(outputfile);
    sortedoutput = new BufferedWriter(new FileWriter(sortedfile));
    for(int m=0; m<storeWordList2.size(); m++)
         if (storeWordList2.get(m).toString().trim().length() > 0)
              sortedoutput.write(storeWordList2.get(m).toString());
                        sortedoutput.write("\n");     
    sortedoutput.close();
    System.out.println("Names Sorted SUCCESFULLY");
    br.close();
    br2.close();
    in.close();
    fstream.close();
    fstream2.close();
                   ///==========================================
                   File f1 = new File(tempfile);
                   boolean success = f1.delete();
                   if (!success){
                        System.out.println("failed deletion ");
                        System.exit(0);
                        }else{
                        System.out.println("deleted");
                   // ==========================================
    } catch (Exception e) {//Catch exception if any 
    System.out.println("Error: " + e);
    h2. Thanks and regards
    h1. BalaNagaRaju.M
    h1. [email protected]

    Do you have a question? Also see the sticky welcome post on how to post formatted code.

  • Add header line to the text file in receiver file adapter

    Hello Experts,
    I have to add a new line to the text file generated at the receiver end.
    My structure is
    Record
       Item......0-unbounded
             field1
             field2
             field3
    I have defined below parameters in receiver FCC.
    RecordSet Structure : Record,Item
    Item.fieldSeparator : ;
    Record.fieldSeparator : nl
    Record.endSeparator : '0x0D''0x0A' ( this is to get a carriage return at the end of the file)
    Item.addHeaderLine : 1
    With the above configuration, i am getting the desired output with NO header line.
    Please help.
    Thanks,
    Swetha.

    Hi, it looks like that the headerline "specification is only permitted if exactly one structure is defined." Please check [SAP help under Define Parameters for Recordset Structures|http://help.sap.com/saphelp_nw73/helpdata/en/44/686e687f2a6d12e10000000a1553f6/frameset.htm].
    One solution would be to generate the header fields in the message payload. Generate an additional first line containing the header names, e.g.
    <Item>
    <field1>Header1
    <field2>Header2
    <field3>Header3

  • Reading String (Name-Value) from text file into XML

    Hi,
    I have a requirement for reading a text file and converting each entry of that text file into XML format. I have not came across such thing yet so looking for some ideas. I am using SQL Server 2005 and here is a sample entry from my source text file,
    Jun 4 14:31:00 zzzz64x02 fff:
    INPUT(ty=XYZ,Prefix=15063,dn=78787878787878,sgk=100.139.201.48,xxn=87878,ani=656565656565,ogrp=F7ZX05,ogtxt=NNNNN,ogx=NNNNN,oci=0xe00ac,ogi={NOA=INT,BC=1,SIG-TYPE=ZIP});
    PROCESS(ty=0x100000,cu=32880,Name=XOXOXOX,pc=88017,pd=24,dd=880175,pk=880175,rd=115472,ca=BGD,reg=RW,cdp=1,ai=245359,grp=2648,sl=9);
    OUTPUT(ty=XXXX,ret=0,rl=
    {i=1,su=99999,rizID=61084,skid=06,truckgp=1084,dd=8801,dn=78787878787878}
    I will get multiple entries like this in my source text file which I have to convert into XML (using TSQL).
    Any help will be useful.
    Regards.
    'In Persuit of Happiness' and ..... learning SQL.

    And I'm telling you that this is a bad option. You would use the vaccum cleaner to wash the dishes, would you?
    If you for some reason would do this task in SQL Server, you would implement it as a CLR stored procedure, but from what you have said I don't understand why you would do this server-side at all.
    What's wrong with the current C# solution?
    Erland Sommarskog, SQL Server MVP, [email protected]
    Got it.  I was just looking for the available options, nothing wrong with my C# solution. And yes, I don't use vacuum cleaner to wash dishes.
    'In Persuit of Happiness' and ..... learning SQL.

  • Extra space adding during spool data into text file

    I'm using sql developer to query oracle tables. I can export data using GUI of sql developer, but I wish to use spool query to export the data. Using below query, I was able to export the data to specified location, but my final text file consist of additional spaces after each line. These additional spaces between each line is causing an error to upload the text file in different location.
    Did any one face have this issue? Below is my query
    set head off
    SET FEEDBACK OFF
    SET ECHO    OFF
    SET TRIMSPOOL ON
    SET TRIMOUT ON
    spool c:\test.txt
    select cast(memberid||',12'as varchar2(20))
    from abc;
    spool off
    set head on
    set ECHO on
    i'm using trimspool, and trimout, but it is not removing any blank spaces.

    Sorry, I changed my export.sql to the query you provided.
    SET HEAD OFF FEED OFF ECHO OFF
    SET LIN 120 PAGES 0 TRIMS ON
    SPOOL c:\test.txt
    SELECT memberid || ',12' FROM abc;
    SPOOL OFF
    But,the spool query is still adding additional spaces making length of each line 43 characters in final text file output.

  • Receiving text files on apex/html port

    Hi,
    I am in the process of setting-up, configure, developping an apex application but I have a question about receiving files into the "apex" database.
    The process flow:
    a machine creates medical equipment but also creates a file as input for the apex application.
    This file will be picked-up by a transaction process (sort of Tuxedo) and will be transferred to the Apex databases. The easiest was is to start a FTP process to send the file but this will creates too many steps. So I wondered if it is possible to directly send this file from the medical server via the Transcation Process to the Apex application/database?
    I am also interested in the most ideal HTTP server. Which one suits best with the above question?
    Oracle Application Express Listener
    Embedded PL/SQL gateway
    Oracle HTTP Server and mod_plsql
    Paul

    Yes you can, as long as your iPod has firmware v2.0 or later. Then you can purchase apps from the App Store that will let you view all manner of files. Most of them are fairly cheap, there might even be free ones.
    There are a few different programs available, but I use FileMagnet. It supports a large range of formats, including text, pdf and html (plus Word, Excel, Powerpoint, and Pages, Numbers and Keynote if you have iWork on your Mac).
    The other program I have is Stanza, which is free. It only does plain text files, but it does them really well. And being free, I can't complain.
    The only thing I don't think you can do is use your iPod as an external hard drive to move files from one computer to another.
    Hope that helps

  • Download all metada + document names to a text-file

    Hallo,
    we want to to download all the names of all documents and the values of the document-metadata from a special folder or repository into a text-file. I think we can realize /develop this by using existing apis . Is there any documentation or sample-code available?
    Thanks
    Andreas

    Hi,
       Yes you can develop it. Use this link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/knowledge management and collaboration developers guide.html
    Patricio.

  • Adding large arrays to a text file as new columns

    I am trying to merge several large text data files into a single file in Labview 8.0.  The files are too large to read in all at once (9-15 million lines each), so decided I need to read them in as smaller chunks, combine the arrays, and write them to a new file.
    The reason there are three separate data files was for speed and streaming purposes in the project, and the users wanted the raw, unadulterated data written to file before any kind of manipulation took place. 
    My VI:
    1.  Takes a header generated from another VI and writes it to the output file.
    2.  Creates a time column based on sample rate and the total number of data points
    3.  Reads in 3 files that each have text data (each data point is 9 bytes wide, there are up to 15 million data points per file.
    4.  Each iteration of the for loop writes a chunk of 10 to 100 thousand points (Somewhere in there seems to be the fastest it will do), formatted with the time column on the left, then the three data columns, until it's done.  I haven't quite figured out how to write the last iteration if there are fewer data points than the chunk size.
    Anyways, the main thing I was looking for was suggestions on how to do this faster.  It takes about a minute per million points on my laptop to do this operation, and though I recognize it is a lot of data to be moving around, this speed is painfully slow.  Any ideas?
    Attachments:
    Merge Fast Data.vi ‏67 KB

    Thanks for the tip.  I put the constants outside the array and noticed a little improvement in the speed.  I know I could improve the speed by using the binary file VI's but I need the files as tab delimited text files to import them into MATLAB for another group to do analysis.  I have not had any luck converting binary files into text files.  Is there an easy way to do that?  I don't know enough about binary file systems to use them.  I looked at the high speed data logger examples but they seemed complicated and hard to adapt to what I need to do.  Creating the binary header file seemed like a chore. 
    I am up for more advice on the VI I posted, or suggestions on different ways to convert a binary file to a MATLAB readable text file.
    Thanks!

  • Adding And Removing in a text file

    Hi
    I'm trying to make a VI that generates a textfile which saves some data each second and give it some timeframe so that it can maintain only the data that has been generated last 10 seconds or so
    First I have made 2 different files, one is for saving some data each second into a text file, and the other one is for removing the data
    but when i combined those two it doesn't seem to work.
    Could anyone have a look at the file and comment on that?
    thanks
    Attachments:
    test2.vi ‏17 KB
    Time(Sub).vi ‏8 KB

    A couple comments on what you are trying to do. First, doing this with a text file is going to be inherently difficult as you are going to be doing a lot of rewriting of the file. Second, having two VIs (1 to write the data and 1 to remove the old data) is a bad approach - why not design the algorithm so the file is only written to one time for each update cycle? Stop trying to make a poor design work and spend a little time thinking outside the box.
    Hint: think about how you calculate a running average in LV, and what if the indicator out wasn't just an indicator but a file write?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • With full reception I cant send/receive texts or make/receive calls

    This started 2 days ago randomly, even with reception I cant send or receive or make or receive calls. It doesnt happen all the time, but very frustrating. I phoned vodafone and they suggested a network reset, doesnt help. I also tried taking the sim out and putting it back again. Nothing works! Any ideas?

    Can you dial *228 option 1 and reprogram the phone?  If that also kicks you out, you may want to take the phone to your nearest Corporate Verizon store or call Customer Service if you have another phone that's working correctly.  There may be an outage in your area or something similar going on at Verizon's end.

  • What is the name for a text file on an iPod?

    This may not be quite where to post this question, but dumb as it is...it's been a question of mine for a while...I think what I am looking for is like 3 letters long or something...bear with my stupidity please...I just really want to know!
      Windows XP  

    Hmmm...maybe...I was thinking it might be SML or ACC or AAC...do any of those have to do with iPod file names? (sorry I am so stupid about this)

  • Write to measurement file, adding column name in text file.

    Hello,
    Is it possible to add own column name for a text file using Write to measurement file function?
    In the created file I have three different columns (I want to name them Time/Voltage/Date&Time).
    Maby I should choose different write option like write to spreadsheet?

    You are going to have to post some actual code if you want us to help here.  Otherwise it is a complete shot in the dark.  Posting an example CSV file of what you have and what you want would also be beneficial.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Importing text file (with file names) into Automator.. is it possible?

    Hello all,
    I have been working with Windows Batch files for my line of work. I have a couple of file names in a text file (a column), which I want to copy from one folder of one hdd to another folder on a different hdd. I have been trying to do this kind of work with a Mac. I already know how you copy and rename files in automator (which isn't difficult, of course) but you have to 'select' the files in the finder first (with get specified items).
    But the only way i see that you can specify items is by selecting them... is there a way to import a text file with all the file names instead of selecting all the file names manually?
    or is there an AppleScript alternative which I can use to import the text file (or just copy into applescript) and run before the query's of copying and renaming the files? I am kind of new to Apple programming.
    The text file looks like this:
    image1.jpg
    image2.jpg
    etc..
    so there has to be a command to: 'goto' a specific folder as well.
    Thanks in advance!

    You can import text files, but if they are just names you will need an additional action to add the source folder path. A *Run AppleScript* action can be used, for example:
    Tested workflow:
    1) *Ask for Finder Items* {Type: files } -- choose the text file containing the names
    2) *Combine Text Files* -- this gets the text file contents
    3) *Filter Paragraphs* { return paragraphs that are not empty } -- skip blank lines
    4) *Run AppleScript* -- copy and paste the following script:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 680; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters} -- add folder path
    add the specified folder path to a list of file names
    input: a list of text items (the file names)
    output: a list of file paths (aliases)
    set output to {}
    set SkippedItems to {} -- this will be a list of skipped items (errors)
    set SourceFolder to (choose folder with prompt "Choose the folder containing the file names") as text -- this is the folder containing the names
    repeat with AnItem in the input -- step through each name in the input
    try
    set AnItem to SourceFolder & AnItem -- add the prefix
    set the end of the output to (AnItem as alias) -- test
    on error number ErrorNumber -- oops
    set ErrorNumber to ("  (" & ErrorNumber as text) & ")" -- add the specific error number
    set the end of SkippedItems to (AnItem as text) & ErrorNumber
    end try
    end repeat
    ShowSkippedAlert for SkippedItems
    return the output -- pass the result(s) to the next action
    end run
    to ShowSkippedAlert for SkippedItems
    show an alert dialog for any items skipped, with the option to cancel the workflow
    parameters - SkippedItems [list]: the items skipped
    returns nothing
    if SkippedItems is not {} then
    set {AlertText, TheCount} to {"Error with AppleScript action", count SkippedItems}
    if TheCount is greater than 1 then
    set theMessage to (TheCount as text) & space & " items were skipped:"
    else
    set theMessage to "1 " & " item was skipped:"
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SkippedItems, AppleScript's text item delimiters} to {SkippedItems as text, TempTID}
    if button returned of (display alert AlertText message (theMessage & return & SkippedItems) ¬
    alternate button "Cancel" default button "OK") is "Cancel" then error number -128
    end if
    return
    end ShowSkippedAlert
    </pre>
    5) *Copy Finder Items* { To: _your external drive_ }

Maybe you are looking for

  • How to switch primary accounts on icloud

    I have two icloud accounts, how do I make one the primary account on a MackBook Air? dalia

  • What's my dream job

    Designer

  • Current item Background Color

    Hello Friends, I am facing some problem in changing the bachgroud color of the selected field in block, Basically i want to make visible the current field in a record,not the enire record but just the current item. thanks to all;

  • Dv6 power led not working

    Hi everybody! Today, I changed the fan in my Pavilion dv6-6001eh (the original stop working). After I assembly, the power led not working anymore. I check the cable, but that's ok. Otherwise the power button working. The second power led in the right

  • Palm OS Upgrades

    I know there were Palm OS Upgrades for the Palm 3, Palm V, among other older devices why are these unavailable now, and if they are unavailable from Palm where can they be obtained. Because some people actually need them, myself included, and general