Need help in FCC - writing to FTP

Hi, i have done this before but now i am stuck. I have following target structure for flat file:
<?xml version="1.0" encoding="UTF-8"?>
<MT_PRVO>
   <PRVORecordSet>
      <PRVODetStruct>
         <PVNR/>
         <PVADAT/>
         <PVSTELL/>
         <PVNAME/>
         <PVUPM/>
         <PVNH/>
         <PVKW/>
         <PVLEER/>
         <PVDIN/>
         <TYPE/>
         <PRVO_TXT/>
      </PRVODetStruct>
   </PRVORecordSet>
</MT_PRVO>
My FCC parameters are:
RecordsetStructure: PRVORecordSet,PRVODetStruct,PRVO_TXT
PRVORecordSet.fieldFixedLengths: 04,10,03,15,06,04,04,04,05,08,1400,1400,1400,1400
PRVODetStruct.fieldSeparator: ;
PRVODetStruct.endSeparator:'nl'
PRVO_TXT.fieldFixedLengths: 1400,1400,1400,1400
PRVO_TXT.fieldSeparator: 'nl'
My test-output after Mapping in SXMB_Moni is like this:
  <?xml version="1.0" encoding="UTF-8" ?>
- <MT_PRVO>
- <PRVORecordSet>
- <PRVODetStruct>
  <PVNR>78</PVNR>
  <PVADAT />
  <PVSTELL />
  <PVNAME />
  <PVUPM />
  <PVNH />
  <PVKW />
  <PVLEER />
  <PVDIN />
  <TYPE />
- <PRVO_TXT>
  <PVTXTD>D1 HIER D2 D5 D6 D9</PVTXTD>
  </PRVO_TXT>
- <PRVO_TXT>
  <PVTXTF>F1 F2 F3 F4 F7</PVTXTF>
  </PRVO_TXT>
- <PRVO_TXT>
  <PVTXTE>E1 E2 E3 E4</PVTXTE>
  </PRVO_TXT>
- <PRVO_TXT>
  <PVTXTS>S1 S2 S3 S4 S8 S10</PVTXTS>
  </PRVO_TXT>
  </PRVODetStruct>
  </PRVORecordSet>
  </MT_PRVO>
Problem is that i am getting this error in adapter Moni:
java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'D1 HIER D2   D5 D6   D9 ')', probably configuration error in file adapter (XML parser error)'
What have i done wrong? I am really stuck because in other scenarios everything works like this.
br

Hi,
Check out these blogs they may help you.
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
/people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO
regards
Aashish Sinha

Similar Messages

  • Need help on FCC

    Hi All,
    i need to do FCC on the receiver side and the sender is IDOC.  The structure looks like this.
    <Header>
          <abc>
           <def>
    <DetailData>
            <A>
             <B>
             <Items data>
                        <AB>
                         <CD>
               <itemscheck>
                          <XY>
                          <RS>
    <Footer>
               <XYZ>
               <DEF>
    I Know how to do FCC if itemsdata and items check are in the same level as of detaildata but it is present under Deatail data,so any one can please help me how to do FCC in this case.
    Thanks,
    Hemanth.

    Hi,
      try these wil b of help
    Content Conversion ( The Key Field Problem )
    Re: Problems with File Content Conversion
    Re: Bypassing a node in Content Conversion
    Re: How to use content conversion for Complex structure
    Re: Content Conversion with Substructures
    File Adapter - Content conversion parameters at Receiver
    Edited by: ROBIN C on Dec 9, 2008 12:23 PM

  • Need Help In Solving Writing To Queue Problem

    Hi Guys,
    I have two threads that are adding to the same message queue. The first one is suppose to add four integers consecutively. Meanwhile the second thread add an integer in between the four integers. Because of that my application is not working properly. I would like that when a thread is adding then the other must wait before it adds. The method that the threads call to add to the queue are all synchronized, but it is still behaving like that.
    I need help in solving it.
    Thanks.
    Edited by: kap on Aug 9, 2010 5:22 AM

    kap wrote:
    Please what do you mean by synchronizing on the same object? Can you explain it to me?
    When you synchronize a block of Java code, you synchronize on a particular object, which is called the Monitor.
    The effect is only to prevent another thread running this, or another block of code synchronized on the same object.
    If you use synchronized methods, then the monitor is the object to which the method belongs (or the class if the method is static). The same synchronized method can be executed simultaneously on a different instance of the object.

  • Need help in FCC in reciver file adapter

    Hi Experts,
          I have a flat file structure as below -
       Header
           Text
       Rows
           FName    LName     EmpId     Location
       when i generate a CSV file i need to have these field names in the first row and then below these filed names i  need values for these fileds
    I am able to get the values for these fields but we need the field names in the file
    Thanks in advance.

    Hi,
    Do one thing, at your target structure in mapping, right click on Rows and select "Duplicate Subtree". Now in the first parent node "Rows" just hard code 'FName',  'LName', 'EmpId',  'Location' and in the second parent node "Rows" do your mappings as you did earlier.
    By doing so, you will not require to do any changes in your Data Type.
    P.s. No need to do any change in your receiver FCC.
    Regards,
    Sarvesh

  • Need help optimizing the writing of a very large array and streaming it a file

    Hi,
    I have a very large array that I need to create and later write to a TDMS file. The array has 45 million entries, or 4.5x10^7 data points. These data points are of double format. The array is created by using a square pulse waveform generator and user-defined specifications of the delay, wait time, voltages, etc. 
    I'm not sure how to optimize the code so it doesn't take forever. It currently takes at least 40 minutes, and I'm still running it, to create and write this array. I know there needs to be a better way, as the array is large and consumes a lot of memory but it's not absurdly large. The computer I'm running this on is running Windows Vista 32-bit, and has 4GB RAM and an Intel Core 2 CPU @ 1.8Mhz. 
    I've read the "Managing Large Data Sets in LabVIEW" article (http://zone.ni.com/devzone/cda/tut/p/id/3625), but I'm unsure how to apply the principles here.  I believe the problem lies in making too many copies of the array, as creating and writing 1x10^6 values takes < 10 seconds, but writing 4x10^6 values, which should theoretically take < 40 seconds, takes minutes. 
    Is there a way to work with a reference of an array instead of a copy of an array?
    Attached is my current VI, Generate_Square_Pulse_With_TDMS_Stream.VI and it's two dependencies, although I doubt they are bottlenecking the program. 
    Any advice will be very much appreciated. 
    Thanks
    Attachments:
    Generate_Square_Pulse_With_TDMS_Stream.vi ‏13 KB
    Square_Pulse.vi ‏13 KB
    Write_TDMS_File.vi ‏27 KB

    Thanks Ravens Fan, using replace array subset and initializing the array beforehand sped up the process immensely. I can now generate an array of 45,000,000 doubles in about one second.
    However, when I try to write all of that out to TDMS at the end LV runs out of memory and crashes. Is it possible to write out the data in blocks and make sure memory is freed up before writing out the next block? I can use a simple loop to write out the blocks, but I'm unsure how to verify that memory has been cleared before proceeding.  Furthermore, is there a way to ensure that memory and all resources are freed up at the end of the waveform generation VI? 
    Attached is my new VI, and a refined TDMS write VI (I just disabled the file viewer at the end). Sorry that it's a tad bit messy at the moment, but most of that mess comes from doing some arithmetic to determine which indices to replace array subsets with. I currently have the TDMS write disabled.
    Just to clarify the above, I understand how to write out the data in blocks; my question is: how do I ensure that memory is freed up between subsequent writes, and how do I ensure that memory is freed up after execution of the VI?
    @Jeff: I'm generating the waveform here, not reading it. I guess I'm not generating a "waveform" but rather a set of doubles. However, converting that into an actual waveform can come later. 
    Thanks for the replies!
    Attachments:
    Generate_Square_Pulse_With_TDMS_Stream.vi ‏14 KB
    Write_TDMS_File.vi ‏27 KB

  • Older HP Laptop....Need help identifying FCC ID

    Hey Guys. I am hoping somebody can help me. I'm from the UK but in possesion of an american laptop (actually the fiance's) She sent me it asking if I could fix it for her. It's a HPze5200. I tried to send it back to her just before christmas but customs refused it (because it didn't have the FCC whatever it is) I been looking on the base of the laptop but not sure what it is.

    I looked at the service manual, too. There is nothing depicted which looks anything like these two things. HP Service Manuals have improved a lot since this thing was created; very sketchy and bare bones. I am going to go out on a limb and say the flat shiny thing is a bracket for something like the optical drive, or it maybe holds the video cable in place after it has been plugged into the motherboard. The other thing looks like a button to eject something like from the card reader. I would say neither is critical to the functioning of the system, but the absence of the spring-loaded thing will likely mean if you put a card or whatever in the slot it may be hard to get it out.

  • Need help in re-writing a query

    SELECT DDQ.DS_PRS_ID,TO_CHAR(DDQ.DEACTIVATE_DT,'DD-MON-YYYY HH24:MI'),
    TO_CHAR(SYSDATE+NVL(L.GMT_OFFSET,0)/24,'DD-MON-YYYY HH24:MI'),
    PCWI.PRS_ID,mcr_pkg_hra_person_name.get_tc_full_name(PCWI.prs_last_nm,
    PCWI.prs_first_nm,PCWI.prs_middle_init,PCWI.prs_pref_nm,
    PCWI.ROLE_TYPE_CD),TO_CHAR(PCWI.termn_dt,'DD-MON-YYYY HH24:MI'),
    MOF.OFFER_STATUS_CD, TO_CHAR(NVL(MOF.ADJ_START_DT,START_DT),'DD-MON-YYYY HH24:MI'),
    TO_CHAR(OFFER_STATUS_DT, 'DD-MON-YYYY HH24:MI') /* Added by Ashwin for Radar 3160778 */
    FROM MER_OFFER_FORM MOF, LOC L, PRS_CUR_WORK_INFO PCWI, DS_DEACTIVATE_QUEUE DDQ
    WHERE DDQ.DS_PRS_ID > 0
    AND PCWI.DS_PRS_ID = DDQ.DS_PRS_ID
    AND L.LOC_CD = PCWI.LOC_CD
    AND MOF.DS_PRS_ID(+) = PCWI.DS_PRS_ID;
    The above gives the following output.
    4519     29-NOV-2006 23:59     18-DEC-2007 19:33     14626     Larson, Marianne     29-NOV-2006 00:00     10     01-SEP-2007 00:00     03-DEC-2007 15:41
    4519     29-NOV-2006 23:59     18-DEC-2007 19:33     14626     Larson, Marianne     29-NOV-2006 00:00     10     11-MAR-1998 00:00     19-MAR-1998 16:51
    130516250     26-JAN-2007 23:59     C429219     18-DEC-2007 19:39     *GIROUX, DAVID A.          10     19-AUG-2006 00:00     15-AUG-2006 15:45
    130516250     26-JAN-2007 23:59     C429219     18-DEC-2007 19:39     *GIROUX, DAVID A.          10     11-JUN-2006 00:00     09-JUN-2006 15:27
    I want to select distinct DDQ.DS_PRS_ID and minmum OFFER_STATUS_DT among the duplicate DDQ.DS_PRS_ID.
    I somehow want to avoid duplicate DDQ.DS_PRS_ID here (Distinct clause does not work. And we cant remove outer join condition from the above query).
    Could you please suggest me the query for this?
    Regards,
    Chandra Bhushan Bakshi

    Can you not just do something like
    SELECT ddq.ds_prs_id, TO_CHAR (ddq.deactivate_dt, 'DD-MON-YYYY HH24:MI'),
           TO_CHAR (SYSDATE + NVL (l.gmt_offset, 0) / 24, 'DD-MON-YYYY HH24:MI'),
           pcwi.prs_id,
           mcr_pkg_hra_person_name.get_tc_full_name (pcwi.prs_last_nm,
                                                     pcwi.prs_first_nm,
                                                     pcwi.prs_middle_init,
                                                     pcwi.prs_pref_nm,
                                                     pcwi.role_type_cd
           TO_CHAR (pcwi.termn_dt, 'DD-MON-YYYY HH24:MI'), mof.offer_status_cd,
           TO_CHAR (NVL (mof.adj_start_dt, start_dt), 'DD-MON-YYYY HH24:MI'),
           TO_CHAR (offer_status_dt, 'DD-MON-YYYY HH24:MI')
      FROM mer_offer_form mof,
           loc l,
           prs_cur_work_info pcwi,
           ds_deactivate_queue ddq
    WHERE ddq.ds_prs_id > 0
       AND pcwi.ds_prs_id = ddq.ds_prs_id
       AND l.loc_cd = pcwi.loc_cd
       AND mof.ds_prs_id(+) = pcwi.ds_prs_id
       AND mof.offer_status_dt(+) = (select min(offer_status_dt)
                                     from mer_offer_form mof2
                                     where ds_prs_id = ddq.ds_prs_id)

  • Need help - I2C write/read with TAOS TCS3414 light sensor using USB-8451

    Hello, I'm new to labview and need help setting up a vi that will allow me to communicate with a digital light sensor (TAOS TCS3414) using a USB-8451. I need to use the sensor to measure light from a light source that I designed and built as part of a project im working on. I've tried looking at several labview I2C exampled but find them to be very confusing. I've used an arduino to interface with the sensor successfully but need to use labview and dont understand how to write the program. The actions are simple; I need initialize the sensor with a simple command and then request data from 8 data registers and then read that data. The data will then be used in further calculations. The portion i need help with is writing and reading from the sensor. I've attached the datasheet for the sensor as a guide. I can also provide the arduino code that i use to read data from the sensor if that would help. 
    Pleae keep in mind that i am completely new to labVIEW. I really do want to learn from this but need quick results so the more help the better. It would greately appreciate any help or explaination. 
    Attachments:
    TCS3414_Datasheet_EN_v1.pdf ‏1806 KB

    Hi Aaron,
    Here you go, this is made with a USB-8452.
    When you run the code tick the power en dac enable box on.
    Maybe you can help me with my problem, I want to use a fiber to sense light from a led.
    Do you use any fiber hardware with the TCS3414?
    gr,
    Attachments:
    TCS3414.vi ‏63 KB

  • Need Privacy...and Need Help!!

    Folks I need help,
    I am writing a small application to show a picture. However I do not want the viewer to have a copy of this picture, therefore I would like to prevent him from saving it, copy it etc..
    I have been thinking of showing the picture on screen for 10 seconds, and in those 10 seconds
    -> disable all Keyboard action
    -> disable all Mouse action
    I have having difficulties doing either of the above. Can anyone provide any suggestions.
    Many thanks
    Angus

    Morning from a cold South Africa!
    I'm thinking that if you dont include any save buttons or anything like that the user will not be able to save the image!
    so why inconvienience the user by taking away all powers that (s)he might have...
    esp if you take away the mouse and keyboard controls...(what happens if the program crashes? the user is screwed!)

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • Need help in writing data from JSP to excel

    Hi ,
    I need help in writing the data from JSP to excel.I somehow able to retrieve the data into excel but unable to get the required format.
    For eg: The amount should be displayed in 0.00 format .when i am exporting it to excel it is displaying as 0 :( .
    I am using the following code in JSP.
    "out.print(amt + '\t');"
    Would like to know if there is any otherway where in i can get my requirement.
    Thanks
    Tom

    Hi,
    Try using format part of the JSTL tag libs.
    Syntax :
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <fmt:formatNumber value="40" pattern="$#,##0.00"/>
    I need help in writing the data from JSP to excel.I
    somehow able to retrieve the data into excelHow do u convert the jsp to excel?
    One way to convert the jsp page to excel, is to render it as an excel appl instead of html. Set the content type of the response to application/ms-excel.
    response.setContentType("application/ms-excel")Hope this Helps....

  • TS1702 Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

  • Need help for writing extract program

    hi
    i need help for writing extract program to retriew data from legacy system.
    i already developed bdc programs for me31k and me21.
    my requirement is to write extract program s for those t.codes.
    to retriew data from legacy system and stored in flat file.

    i need help with a java program. it is a program that allows the user to enter a student's GPA, number of extracurricular activities, and number of service activities. The user can not enter a gpa above 4.0 or below 0. The user can not enter a negative number for the number of both activities. If the student meets the following criteria: 1) GPA of 3.8 or above and at least one extracurricular activity and one service activity, 2) GPA below 3.8 but at least 3.4 and a total of at least three extracurricular and service activities, 3) GPA below 3.4 but at least 3.0 and at least two extracurricular activities and three service activities, the message "Scholarship candidate" should display. If the student does not meet the criteria above, then the message"not a candidate" should display. Can you help me, please?
    You haven't posted ANY 'java program' for us to help with.
    The forum is NOT a coding service. It is to help you with YOUR code.
    Post the code you have written and SHOW us (don't just tell us) how you compile it and execute it and the results you get. Then we can help you with any problems you are are having.
    If you need help understanding just what the program should be doing you need to ask your instructor to clarify the assignment.

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

Maybe you are looking for