Receiver FCC Problem

Hi all,
My Scenario is IDOC to File.
My Requirment is to produce the Sample Text File as
f1*f2*f3
f4*f5*f6
f7*f8*f9
f4*f5*f6
f7*f8*f9
f4*f5*f6
f7*f8*f9
Here Body1, Body2 Values are coming in alternative side.
Based on the Occurences of E1MARAM Segments, We should have as many as Body1 , Body2 Values repeated as an alternative node.
But I am getting the Output as
f1*f2*f3
f4*f5*f6
f4*f5*f6
f4*f5*f6
f7*f8*f9
f7*f8*f9
f7*f8*f9
Here Body1,Body2 Values are grouped together.
I Created the Datatype as
RecordSet
    Header    1-1
      f1,f2,f3
    Body1     0-unbounded
      f4,f5,f6
    Body2     0-unbounded
      f7,f8,f9
    Is there Any Possible Solution to have Alternate Segments Body1,Body Values in text File.
Thanks
Gabriel

Hi Gabriel,
Change the Structure in data type as
RecordSet
    Header    1-1
      f1,f2,f3
    Body         0-unbounded
      Body1     0-1
       f4,f5,f6
      Body2     0-1
       f7,f8,f9
so that you can get alternative values, as Body repeats as many times as your condition is true.
in FCC, provide the RecordSet Structure as Header,Body1,Body2
Thanks & Regards,
Pragathi.

Similar Messages

  • JMS Receiver FCC Problem After Upgraded from SP19 to SP22 in XI3.0

    Hello,
    I am facing a problem in my Receiver JMS adapter in FCC just after the upgrading it from SP19 to SP22 in XI 3.0 by our basis consultant. Before that everything was working perfect in DEV.
    I am getting the below mentioned error in CC monitoring.
    > MP: Exception caught with cause com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    This problem is happening in other scenario too in our DEV system.
    But at the same time since we have not applied any upgrade in QA therefore same scenario is working fine.
    Regards,
    Sarvesh

    Ok Friends...
    I got the solution from SAP.. there was a problem in the SP22 for XI 3.0 which I donloaded from Service Market Place. Now I have applied the correct SP22 to my system and now it is working fine...
    I hope this may help you...
    Regards,
    Sarvesh

  • Problem in Receiver FCC

    Hi Experts,
                       We need to do a file content conversion in the Receiver File Adapter for a fixed length file, format of which is like:
    MT_Message
      Shipment..........1..1
         field1
         field2
         field3
    Order.................1..1
         field1
         field2
         field3
      Tare..................0..unbounded
         field1
         field2
         field3
         Item...............0..unbounded
            field1
            field2
            field3
    occurrence of all field level elements are 0..1. Shipment, Order and Tare are at the same level and Item is under Tare, which can occur multiple times.
    I have tried using the normal File receiver FCC, the localejbs/AF_Modules/MessageTransformBean bean and the StrictXml2PlainBean but am not getting the desired output, where each segment is to occur on a separate line.
    Any help would be highly appreciated.
    Regards

    Hi Sarkar,
    I think the structure you are using is not correct. It should have one root node above all these Segment, Order nodes etc.
    Probably like this:
    MT_Message
    <Recordset>
    Shipment..........1..1
    field1
    field2
    field3
    Order.................1..1
    field1
    field2
    field3
    </Recordset>
    check this blog as well
    File Receiver with Content Conversion
    Sachin

  • FCC problem:  Empty document found. Proceed without sending message

    Hi all,
    I am doing FCC to FCC scenario.
    In that I am getting the following message in Communication channel Monitoring.
    <b>Channel CC_File_FILBAS009_Sender</b>: Entire file content converted to XML format
    <b>Channel CC_File_FILBAS009_Sender</b>: Empty document found. Proceed without sending message
    File "/temp/xidelivery/send/FILBAS009_input.txt" archived after processing
    and My File structure is as follows..
    RS
    -HEADER
    Field1
    Field2
    Field3
    -DATA
    Field4
    Field5
    Field6
    -TRAILER
    Field7
    Field8
    Field9
    FCC Parameters are:
    RecordsetName : RS
    HEADER.fieldFixedLengths                   :  5,1,5
    HEADER.fieldNames                            :  Field1,Field2,Field3
    HEADER.keyFieldName                       :  Field2
    HEADER.keyFieldValue                       :  'H'
    HEADER.endSeparator                        :  'nl'
    In the same way I gave conversion parameters to DATA and TRAILER also.
    Can any one tell me what is the problem?
    Regards,
    Pavani

    hi pavani,
    excuse me about my previous reply.
    I was just checking your FCC parameters. I see fieldseparator missing and also is it possible to paste sample input data.
    I fieldsepartor is also not necessary since you have fiexedlengths. Since you say FCC to FCC and you paste the receiver FCC parameters
    regards
    Ramesh P
    Message was edited by:
            Ramesh P

  • Tab Delimited File Using Receiver FCC

    Hi Experts,
    I need to generate a Tab Delimited File Using Receiver FCC. I have achieved the same by copying the tab length from a notepad and used the same in name.fieldSeparator parameter.
    The other below mentioned values for name.fieldSeparator didnu2019t produce the expected result:
    name.fieldSeparator=u2019htu2019
    name.fieldSeparator=u2019\tu2019
    name.fieldSeparator=u2019 0x09u2019
    So just need to know if my approach for achieving this is fine or not.
    Thanking you in advance.
    Aditya.

    Verma,
    name.fieldSeparator=u2019 0x09u2019
    I see a space after the first comma. Try removing it and give a try.
    '0x09' with no spaces.
    Regards,
    ---Satish

  • Put Date Before Header Line in Receiver FCC

    Hi,
    I have to create a csv file with format :
    Date : dd/mm/yyyy to dd/mm/yyyy
    PRODUCT_CODE,NAME,ADDRESS
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    How should i achieve putting the date before header line?
    What should be my target structure format?
    What parameters to enter in receiver FCC?

    Hi,
    have you tried..
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    ● NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    ● NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    ● NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    ● NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    ● NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Thanks,
    Vijaya.

  • Receiver FCC Structure For Header and Trailer

    Hi Guys ,
    I need to go for receiver FCC for header and trailer  in PI .How the FCC in communication channel needs to be configured if I am taking a separate node for header and trailer in mapping .Output of the file should be as the file attached.
    Thanks.
    Regards.

    Hi,
    If you are using File communication channel as a reciver you can go with FCC.
    Use record set structure as : Header,detail,trailer.
    https://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Otherwise if you are going for SFTP to create the file ... follow the Indrajit suggestion..
    Still facing any issue.. Please let us know..
    Thanks,
    Sreenivas...

  • Diplaying segment name in output file using receiver FCC

    Hi,
    we have a idoc to file scenario. we are using FCC at the receiver. the flat file generated should have the segment names before the values .
    for example, if the structure is  something like this
    <root tag>
       <serment1>
          field1
          field2
       <segment2>
            field1
            field2
       <segment2>
               field1
               field2
    the output should be in the below format
    segment1   field1value,field2value
    segment2   field1value,field2value
    segment2   field1value,field2value
    can some one guide me how to achieve the same. Also if the segment repeats, in the output also it shoukld appear
    Best Regards
    Deepika

    In mapping, output structure, create an extra field at the beginning and
    map that field to a constant value same as the source segment name.
    In Receiver FCC, use following configuration.
       Recordset Structure:      segment1,segment2(specify all segments seperated by comma)
      segment1.fieldSeparator :   , (it is comma)
      segment1.endSeparator :'nl'
      segment2.fieldSeparator :   ,
      segment2.endSeparator :'nl'
    specify the same fieldSeparator and endSeperator for the other segments also

  • Removing the empty line during Receiver FCC!

    Hi, Guys,
    I used file content conversion in receive FCC. My data type is like this:
    <TextFromSAP_DT>
    <FileName>
      <FileName>abc.txt</FileName>
    </FileName>
    <Record>
      <TEXT>dasfafaf</TEXT>
    </Record>
    <Record>
      <TEXT>qqqqqqqq</TEXT>
    </Record>
    <Record>
      <TEXT>fgfffff</TEXT>
    </Record>
    </TextFromSAP_DT>
    I need to get file name from <FileName> and output a flat file with the value in <TEXT>. But I always got an empty line at the file beginning. And I tried to move <FileName> to the end. And I got an empty line at the file end. My custom said they are having trouble to read the file with the empty line no matter it is in the beginning or end.
    I followed sample as link below but does not work. 
    https://wiki.sdn.sap.com/wiki/display/profile/2007/07/30/Removing%20the%20empty%20line%20during%20Receiver%20FCC!
    Does any body can give a help?
    Thanks a lot!
    Meiying
    Edited by: Meiying Yang on Aug 14, 2009 11:16 PM

    Hi Yang,
    You create the value udf GetFileName with one input value say a. Add this code:
    Imports: java.*;
    Add this code:
       //write your code here
    DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http:" + "/" + "/" + "sap.com/xi/XI/System/File", "FileName");
    conf.put(key, a);
    return "";
    Map like this:
    FileName --> GetFileName(udf) --> target_mt
    Map other fields like:
    Record --> Record
    TEXT ---> TEXT
    Save it and activate it. When you test in mapping you will get an error so dont worry. I go the error like:
    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:Target_MT. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._TestFileName_ method file1$[abc.txt, com.sap.aii.mappingtool.tf3.rt.Context@32dcebf1]
    Dont worry about this activate and do the rest of the configuration.
    In your receiver communication channel for file name put as FileName and check the file name in adapter specific message attributes. Then test it and it should work and you will get the file with file name abc.txt. I tested the whole end to end scenario and I am getting the file name abc.txt and the output what you want. If you still could not get it send me a m ail to my i d from my business card. I will send you the screen shots.
    Regards,
    ---Satish

  • Receiver FCC: Ignore first field

    Hi Experts,
    Is it possible to ignore only the first field in receiver fcc?
    Thanks,
    Vishal

    Hi Vishal,
    Always the best option is in this case to create a new segment and use it for varibale substituion and trim it in communication channel
    else
    Pass the value to a segment and you can use that in communication channel.
    Regards,
    ---Satish

  • Receiver FCC: endSeparator now working

    Hi,
    I am having an issue while doing file content conversion at receiver side.
    My XML structure is as below:
    <ROOT>
    <MASTER>
       <DATA1>data1</DATA1>
       <DATA2>data2</DATA2>
    </MASTER>
    <MASTER_DETAIL>
       <DATA3>data3</DATA3>
       <DATA4>data4</DATA4>
    </MASTER_DETAIL>
    <MASTER>
       <DATA1>dataA</DATA1>
       <DATA2>dataB </DATA2>
    </MASTER>
    <MASTER_DETAIL>
       <DATA3>dataC</DATA3>
       <DATA4>dataD</DATA4>
    </MASTER_DETAIL>
    </ROOT>
    Now entries in Receiver FCC were
    ROOT,MASTER,MASTER_DETAIL
    MASTER.fieldSeparator=|
    MASTER_DETAIL.fieldSeparator=|
    MASTER.endSeparator='nl'
    MASTER_DETAIL.endSeparator='nl'
    ROOT.endSeparator='nl'
    ROOT.fieldSeparator='nl'
    Output got:
    data1|data2|data3|data4
    dataA|dataB|dataC|dataD
    Expected output :
    data1|data2
    data3|data4
    dataA|dataB
    dataC|dataD
    Please let me know what to specify?
    Regards, Anirudh
    Edited by: Anirudh Vyas on Sep 17, 2008 3:05 PM

    Problem solved!
    I was supposed to do 2 stage mapping to map the parent and child segment of Idoc to Parent and child XML structure and then do mapping to have parent and child nodes as siblings of ROOT.
    As below
    MAP1: Idoc to XML1
    MAP2: XML1 TO XML2
    XML1:
    <ROOT> *
    <MASTER>
    <DATA1>...</DATA1
    <MASTER_DETAIL>*
    <DATA3>...</DATA3>
    </MASTER_DETAIL>
    </MASTER>
    </ROOT>
    XML2:
    <ROOT>*
    <MASTER>
    <DATA1>...</DATA1>
    </MASTER>
    <MASTER_DETAIL>
    <DATA3>...</DATA3>
    </MASTER_DETAIL>
    </ROOT>
    I was doing content conversion with XML1.
    I didn't add MAP2 in interface mapping.
    Now my output is as expected.
    Thank you all for your help.
    regards,
    Anirudh.

  • Problem with Receiver FCC

    Hi,
    Our receiver file has the following structure:
    <Record>
      <header>
         <head1>
         <head2>
         <Item>
              <item1>
              <item2>
         </Item>
      <header>
    </Record>
    I have defined my Receiver file adapter as:
    ReceordsetStructure: Header,Item
    header.fieldFixedLengths
    Item.fieldFixedLengths
    item.fieldSeparator
    item.endSeparator
    header.fieldSeparator
    header.endSeparator
    But when I test this it is throwing an error in Receiver CC saying that
    Error occurred while connecting to the FTP server :java.lang.Exception: Exception in XML Parser (format problem?):'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 '8')', probably configuration error in file adapter (XML parser error)'
    The value '8' here is the first element in the Item node.
    Idon't know why it is taking only the header lelements and throwing error for Item node.
    can somebody throw a light on this.
    Thanks in advance
    With Regards
    Deepika.

    Hi Carme,
    Thanks for the reply.
    As you said with this it will work fine but my target file should be a fixed length file, means I should get empty spces if the data in the field is not matching with length of the field.
    My o/p data is as below:
    @12@23@56@89@45@12@65@98@458@87@12
    But I need it in this format:
    @      12@23@      56@    89@   45@12@    65@   98@   458@87@  12
    The empty spaces are getting trimmed if  fixed lengths are not used.
    Also I need header and item in seperate lines.
    With Regards
    Deepika.

  • Error in Receiver FCC: Unknown structure ... found in document

    Hi Experts,
    I have a problem with the Receiver File Adapter. I want to use Content Conversion to generate a plain file.
    Input to receiver file adapter:
    <?xml version="1.0" encoding="utf-8" ?>
    <PlainFile>
      <filename>filename.txt</filename>
      <line>Line 1</line>
      <line>Line 2</line>
    </PlainFile>
    Wanted result: a file filename.txt with this content:
    Line 1
    Line 2
    FCC settings:
    RecordSet Structure: line, filename
    line.fieldSeparator:'nl'
    filename.fieldFixedLengths:0
    filename.fixedLengthTooShortHandling:Cut
    Problem is: the adapter throws error "Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'PlainFile' found in document'"
    If I use:
    RecordSet Structure: PlainFile, line, filename
    and add:
    PlainFile.fieldSeparator:'nl'
    ... the lines are printed, but also the unwanted filename. The XML input results from an 1:n mapping, therefore I want to set different filenames by variable substitution from the payload.
    Many thanks for your help,
    Ralf

    Since you want to the filename to be sent in the payload, check out the below Variable Substitution Method. This information is available in help.sap.com.
    Advanced Tab Page
    Variable Substitution (Target Directory/File Name Scheme)
    If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    &#9679;      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    &#9675;       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    Note
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    &#9675;       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,... corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    Example
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (“Example Value”) is set as the value for a specified variable.
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>

  • Sender and Receiver FCC

    Hi All,
    At sender side i have structure as
    <Recordset>       1--1
      <header>           0--1
        <id>
      </header>
      <details>           1---unbound
        <nameA>
        <nameB>
      </details>
      </recordset>
    i have used FCC at sender side but not able to create header in my message.
    Then at Receiver side i m using FCC for generating csv file. File is created successfully but i m not able to put heading to each column.
    Please guide me to solve this problem.
    Regards,
    Manisha

    Manisha Dahatonde wrote:
    > Hi All,
    >
    > At sender side i have structure as
    >
    > <Recordset>       1--1
    >   <header>           0--1
    >     <id>
    >   </header>
    >   <details>           1---unbound
    >     <nameA>
    >     <nameB>
    >   </details>
    >   </recordset>
    >
    > i have used FCC at sender side but not able to create header in my message.
    what is the header that you want? what is the FCC you have given?
    > Then at Receiver side i m using FCC for generating csv file. File is created successfully but i m not able to put heading to each column.
    >
    > Please guide me to solve this problem.
    >
    > Regards,
    > Manisha
    use the option
    NameA.addHeaderLine
    Specify whether the text file will have a header line with column names. The following values are permitted:
    ·        0 u2013 No header line
    ·        1 u2013 Header line with column names from the XML document
    ·        2 u2013 As for 1, followed by a blank line
    ·        3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied
    ·        4 u2013 As for 3, followed by a blank line
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

  • I am receiving a "Problem loading page (The connection was reset)" error when I open certain websites. Sometimes I can only open the homepage and not the log in section for a website, othertimes the other way around.

    Amongst other things, I've updated all Firewalls to grant Mozilla access, rebooted the computer, checked your FAQs but I am now running Trend Micro Titanium Internet Security (not the original Trend Micro, which your FAQ is out-of-date for anyways) and you don't have any advice in regards to that program. I receive the same error page when I try to update any of the Plugins which are indicated as requiring an update in Firefox's Plugin Check & Updates page.

    ''iamjayakumars [[#answer-685843|said]]''
    <blockquote>
    What security software (firewall, anti-virus) do you have? <br>
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program. <br>
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process. <br>
    See: <br>
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating
    </blockquote>
    Re: my security software: I use Windows Firewall and Microsoft Security Essentials (also Malwarebytes Anti-Malware, if that helps).
    I've now tried the above link's instructions for configuring Windows Firewall to allow Firefox access. It may have helped slightly with the error (which seems to be happening a bit less often); however, the primitive-looking-web-page problem is if anything worse, pages are INCREDIBLY slow to load, and the error remains frequent (can't tell if this possible respite is just temporary, or even mere wishful thinking on my part). In any case, though, my original problem hasn't been solved yet.

Maybe you are looking for

  • GR for import Vendor before Invoice verification of Customs clearing agent

    Dear MM Gurus, I have a client requirement as follows, Its a Import purchase with Batch management The Import PO is created without taxes because the client does not know the exact taxes applicable. The client gets invoice from the vendor only after

  • PlugPlug DispatchEvent() takes too long

    Hi all, I'm using the PlugPlug interface to send events between my native Photoshop plug-in and my CEP extension. I've a slightly modified version of the code provided in the Adobe Illustrator SDK (SDKPlugPlug.[h|cpp]) and I'm able to communicate suc

  • How to restore the content window in Apple mail?

    On OS 10.8.4, I had Mail set so a window at the top of the list of messages in my inbox showed the content of the selected messages. This morning that window mysteriously vanished. Now I just see a list of messages, and by double clicking on any mess

  • XML example file in a comment

    Hi, i need to know how to put a little XML example file in a comment. This is what i have : * to be consulted. Next you can see an example of a configuration file : *<P> * blablablablalbablablabla *</p> * <br> * <?xml version="1.0" encoding="utf-8" ?

  • New Lion Mac Mail

    Not too sure how much I really like this new app - but perhaps I can change a few settings around so I like it.  Can anyone help? 1) Am I able to have my emails NOT group in my inbox according to the subject line?  Sometimes I have responses with the