How to use FCC in Receiver File Adpter

Hi All,
           I have a scenario where the XML structure coming in is:
  <?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_PositivePayCheckData xmlns:ns="urn:sce-com:xi:fi:PositivePay">
- <Recordset>
- <Header>
  <RecordType>H</RecordType>
  <BANKL>133000248</BANKL>
  <NAME>Southern California Ediso</NAME>
  <EXTRD>20070423</EXTRD>
  <EXTRT>091846</EXTRT>
  <DBUPD />
  <VOID>00000003</VOID>
  <UNVD>00000001</UNVD>
  <TOTAL>00000004</TOTAL>
  <AMNT>000000000000555</AMNT>
  <DECM>000</DECM>
  <FILLER />
  </Header>
- <Detail>
  <RecordType>D</RecordType>
  <BANKN>4496893413</BANKN>
  <CHECF>001003</CHECF>
  <CHECT>001003</CHECT>
  <ZNME1>ANDREW LLOYD</ZNME1>
  <AMNT>000000000000000</AMNT>
  <DECM>000</DECM>
  <ZALDT>00000000</ZALDT>
  <VOIDR>04</VOIDR>
  <FILLER />
  </Detail>
  </Recordset>
  </ns:MT_PositivePayCheckData>
The file content conversion parameters are :
Detail.fieldFixedLengths:    1,18,13,13,35,15,3,8,2,21
Detail.addHeaderLine:        0
Header.addHeaderLine:      0
Detail.endSeparator:          'nl'
Header.fieldFixedLengths:  1,15,25,8,6,1,8,8,8,15,3,31
Header.endSeparator:        'nl'
the output file is generated is :
H133000248      Southern California Ediso20070423091846 000000030000000100000004000000000000555000
D4496893413        001003       001003       ANDREW LLOYD                       0000000000000000000000000004
Now I don't want H and D to come in the starting of the string
XIer

Hello,
If you don't want H & D then don't map the RecordType field in the target message. u won't get in the output XML. Now in conversion paramters remove the first length <b>1</b> ..
Best regards,
raj.

Similar Messages

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • How to use a Windows Help File (.hlp) - URGENT

    Hello!
    Can anybody tell me how to use a windows help file (.hlp) in my Java application? Is there any possiblity to reference a specific topic (by Help Context-ID)?
    Thanks in advance,
    Phil

    try calling the Runtime.exec() method
    pass the paramter String as <filename>.hlp
    i donno about the context
    regards
    rohan

  • How to use JavaMail to receive incomming email?

    Hello,
    I am a year 3 student and doing a final year project about web hosting.
    I want to know how to use JavaMail to receive and treat the incomming email. It means that the incoming email how to process and store the "message" in the recipient "folder" in the "store" class.
    If you have any optinions or examples or suggestion, please contact me.
    Thank you for your attention....

    First, it would be better to post questions about JavaMail in the JavaMail forum and not in the JSP forum.
    Second, the JavaMail download comes with a set of examples, including some that cover exactly what you ask.

  • Tab delimitter in HeaderLine in FCC in receiver file adapter

    Hi Folks,
    I want to use tab as a field separator for (eg) NameA.Headerline.
    instead of comma in file content conversion in receiver File adapter communication channel.
    example:
    Recordset structure : NameA
    NameA.addHeaderLine : 3
    NameA:headerLine : MaterialID,Price,Quantity
    PS: In  NameA.headerline i want to use  tab instead of comma.
    How can i do that?
    Thanks
    Prabaharan

    Hi Beena,
    could you explain on which context we should use that option:
    NameA.addHeaderLine  - 1 ( Header line with column names from the XML document )
    what it does exactly?
    Thanks
    Prabaharan
    Edited by: Prabaharan on Aug 21, 2008 12:02 AM

  • Configurig FCC in Receiver File Adapter

    Dear All,
    It is a IDOC to FILE Structure where after mapping there are only two fields in the target structure and the occurrence is only once.
    The two fields are - filename and data
         <Message>
              <filename>brand0412</filename>
              <data>CO BLUE ALTERNATE Y</data>
         </Message>
    I would like to create a text file with the following requirements:
         1) the name of the text file -> value of field filename -> brand0412.txt
         2) the content of the text file should be -> the value of the data field -> CO BLUE ALTERNATE Y
    i.e.
    File name - brand0412.txt
    Content - CO BLUE ALTERNATE Y
    What are the parameters I should use for FCC?

    Hi Rana,
    You can use DynamicConfiguration to name the text file. You can find the Dynamic configuration UDFs on SDN. Here are few , modify as per your requirement.
    Target file name using Dynamic Configuration
    SAP XI Dynamic Configuration - Code Gallery - SCN Wiki
    Dynamic File Name - UDF
    Map as below :
    Filename -> DynamicConfiguration UDF ->TargetMessage
    Your target structure will look like
         <TargetMessage>
                   <Message>
              <data>CO BLUE ALTERNATE Y</data>
                   </Message>
         </TargetMessage>
    Select FileName in ASMA properties in receiver adapter.
    Once you have done this , configure the receiver adapter using FCC parameter. refer below.
    XI/PI: File Content Conversion for Simple Structure

  • How to use a packaged Jar File?

    Greetings to everyone reading this post!
    I have a query about a thing that seems to be basic but I don't know how to accomplish, here it goes:
    I have packaged a Simple application into a Jar file. this application contains a package like this:
    lib.demo, inside this package I have a Class named MyClass with some simple methods like this one:
    public void sayHi(String name){
    //implementation here
    }Now, I would like to Know how to use the Method sayHI(String name) from an entirely different Project. I have successfully included the Jar File as a Library(in the new Project), but I have I no Clue on How to invoke a Class inside my Jar library, and more Importantly, a method.
    Could anybody help me?

    if the "project" (not a Java-related system, it's IDE-specific) already includes the JAR file in its classpath (library), then all you need is to import the package/class and invoke the method, as such:
    // in your client code:
    import lib.demo.*;         // or, import lib.demo.MyClass;
    public class Test {
      public void inAMethod() {
        MyClass myC = new MyClass();
        myC.sayHi("say hi"); 
    }simple.

  • How to use Sharepoint 2013 img file

    Hi,
    I downloaded Sharepoint 2013 as an img file. I am trying to install it on VMWare 5.1 which only accepts ISO files. How can I convert the img file to ISO or what other workarounds are available?
    I already tried renaming the file to ISO, but it didn't work.
    Thanks

    Hi WaelS,
    If you want to use img file in VMWare, you may need to convert the img file to ISO, as VMWare doen't support img file.
    Please do as the followings to convert the img file to iso:
     1. Unzip the files
     2. Open a command prompt (Start > Run > type cmd, press Enter)
     3. Browse to the folder where the unzipped files are (cd "c:\Windows ISO Files")
     4. Considering that you are in the folder containing the files command prompt, type
           copy /b file1+file2+file3+file4+file5 file.iso
     4a. Check that the files have no extension. If they have, the command changes to something like:
           copy /b file1.ext+file2.ext+file3.ext+file4.ext+file5.ext file.iso
     4b. If there aren't *any* other files in the folder, typing this should be enough:
           copy /b *.* dvd_file.iso
    If you still have question about the issue, I suggest you can post a thread in corresponding forum, you will get more helpful information from there.
    Best Reagrds
    Zhengyu Guo
    TechNet Community Support

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

  • Error while using module in receiver file adapter??

    Hi,
           I am using user defined module(for converting EBCDIC type of data to ASCII type of data)  in receiver file adapter, while running the module it is giving erors in audit log
    Exception caught by adapter framework: class com.sap.aii.af.mp.module.ModuleLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome
    MP: exception caught with cause java.lang.ClassCastException: class com.sap.aii.af.mp.module.ModuleLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome
    Please help.
    Thanks.
    Madhusudhan.

    hi ....Stephan
    now we are getting the below exceptions in the message disply tool audit log
    Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.Exception.
    MP: exception caught with message null
    Thanks,
    Madhusudhan.

  • How to use/configure JAVA beans file in Forms10g?

    Hi!
    I'm using Forms10g. I need to use few java beans file in my forms. How do i call it and configure it. So, that i can access all the features of this file in Forms.
    Regards.
    Satyaki De.

    Hello,
    Java Beans Integration
    http://forms.pjc.bean.over-blog.com/article-4018331.html
    Hope it helps,
    Jose.

  • Step by step Scenario for using FCC at receiver side

    hi -
    I would like to implement the File >XI>File using file content conversion at receiver side.
    Can anybd help me doing this.
    I would like to use the following xml file at the sender side :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">
       <FullName>
          <Name>
             <FName>abc</FName>
             <MName>bcd</MName>
             <LName>cde</LName>
          </Name>
          <Name>
             <FName>def</FName>
             <MName>efg</MName>
             <LName>fgh</LName>
           </Name>
       </FullName>
    </ns0:MT1_FCC>
    would like to have the target file as txt with following structure...
    abc#bcd#cde
    def#efg#fgh
    Kindly guide...

    HI Jeswani,
    If this is what you want then take your datatype like this:
    Full Name
      name
        --FName
        --MName
        --LName
    Then map it up. Then in reciever file content conversion you should take like this:
    Recordset Structure: Name
    name.fieldSeperator = #
    name.endSeparator =  'nl'
    This should get your file layout what you are expecting.
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • How to use packages and jar files for applet?

    Hi!
    My applet takes a class say a.class.
    Now this class depends on other classes that are packaged
    in a directory and put separately.
    I want to put this applet on the web.
    So how do I manage the .class files in he package.
    I have tried using jar file format.But I was not able to get it working.
    Can someone please help me?
    Thanks

    Use Archive instead of codebase:
    <APPLET CODE="MyApplet.class" ARCHIVE="MyApplet.jar" WIDTH=400 HEIGHT=300></APPLET>

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • How to use image from a file in signature appearance.

    Hi,
    I am creating a Plugin for acrobat 9, using PubSec using DocSign sample as basis. I have created the appearance using text objects and the logos data that came with the DocSign sample. But I want to use image from a file (like, jpg) in the signature appearance creation. So far the documentation doesnt tell how to achieve this.
    Can you please tell me in a  "How-to" kinda way to achieve this?
    Thanks in advance.

    Thanks for ur prompt reply.
    There are so many samples in the sdk. which one is the "sample for adding images."?

Maybe you are looking for

  • Cyan screen when MBP comes out of sleep or power on.

    For around a month now, my MBP's screen has been going a Cyan colour, and sometimes with a green now and again. This usually happens when it comes out of a deep sleep or when I power it on. I took it to the Apple store and they said that there are no

  • Regarding  std report for puchase order

    Iam workig on the Std report on 0pur_c01 cube. when i opend std qurery based on that cube for item. we have so many queries. in report i can see the prices of vendor , bur for some prices i can see the value as 'x' what that x means

  • How do I link lightroom to revel

    You use to be able to - how do I do it now???

  • SF200 vs C3560-X and per-VLAN RSTP: Turn off STP on SF200s?

    I have a network with pairs of 3560-X switches servicing nearly 150 access switches (44 access switches per pair) and several hundred clients. The access switches are a mixture of SF100-D (unmanaged) and SF200 (managed). I have an odd business requir

  • About Mac os 10.8

    Hi! I've bought my macbook pro in august this year. And I've just read that I may update my Mac OS X to 10.8 version. May I do it now, or you can't give such present for me, because 30 days after bying are gone? Thanks to read this. Waithing for answ