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

Similar Messages

  • How to ignore some fields on Receiver File?

    Hi folks,
    I have this inbound structure example:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ObrasAdjud_Out xmlns:ns0="http://pt.edp/r3/obrasadjudicadas">
      <codforn>123543</codforn>
      <numdoc>000003</numdoc>
      <tipodoc>CAO</tipodoc>
      <encoding_scheme>UTF-8</encoding_scheme>
      <filetype>pdf</filetype>
      <filedata>01010101001001</filedata>
    </ns0:MT_ObrasAdjud_Out>
    Using File Conversion with my Receiver File Adapter I want to convert this xml file to a flat file, but only using the element <b><filedata></b> and ignore the others. However, I also need the others elements to use as variable substitution.
    Anybody knows how to do it?
    Thanks in Advance,
    Ricardo.

    Hi Ricardo,
    >>>>Using adapter specific attributes I can use the elements of source message to do it?
    or course!!! that's the idea and you do it all in message mapping
    (very small advanced function as shown in many blogs)
    >>>>But using variable substitution, I can’t ignore those fields with file conversion?
    don't know I stopped working with variable substitution
    as soon as I learned about adapter specific attributes
    as they are sooo much better
    >>>>I can do a map excluding all the others elements for target message, my target message will be one element <filedata>.
    that's the main idea
    Regards,
    michal

  • 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

  • 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

  • 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.

  • 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

  • How do I add a number from one field to another then clear out the first field

    In a form I am creating I have a field or a series of fields that have variable numbers in them. I would like to create another set of fields that when I click on a button (or some other method) will add whatever number is placed in another field to that first field.
    For example:
    Text1a is normally a variable field. I have another field (text2a)  that I input another number into. I normally add these two numbers together manually and the total replaces what was in Text1a.
    Text1a = 4, I enter in a 2 in Text2a, so now Text1a will become a 6. I would like to have it so that when I click on a button it automatically adds the two numbers together and then replaces the current number in Text1a with the new total and also clears out the number in Text2a.
    Note: Text1a and Text2a are columns where the next filed down is Text1b and Text2b and so on.
    Can someone please help me on this?
    Bruce

    If you have a nanoSIM that is for your cell provider just activate it and it should set it up.

  • How do I have Adobe Acrobat 9.0 calculate the minimum of 10 fields BUT ignore empty fields?

    How do I have Adobe Acrobat 9.0 calculate the minimum of 10 fields BUT ignore the field if it is empty? Currently it counts blanks as 0 so when it comes up with the minimum it will always show 0 unless all 10 fields have values in them.

    You could loop through the fields and add the non-blank values to an array, and use the Math.min method to get the minimum. Here's an example custom Calculate script:
    // Custom calculate script
    (function () {
        // Array to hold non-blank field values
        var fa = [];
        // Loop through the fields...
        for (var i = 1; i < 11; i += 1) {
            // ...get the current field value, as string...
            var v = getField("text1." + i).valueAsString;
            // ...if not blank, add value to the array, as a number
            if (v) fa.push(+v);
        // Set this field's value to the minimum value in the array, otherwise blank
        event.value = fa.length > 0 ? Math.min.apply(null, fa) : "";
    This assumes the fields are named "text1.1", "text1.2", ..."text1.10" and that they're numeric. This type of field naming simplifies the code, so it would be good to use something similar and adjust the getField statement to match.

  • Hw to skip first field of input file in ctl file and map other fields- cols

    I need to write a ctl file where in my input file has 3 fields by comma separated.
    My table has 2 columns. In my ctl file I am using
    LOAD
    INFILE *
    TERMINATED BY ','
    COL1 need second field in the file
    COL2 need third field in the file
    Not sure how to skip the first field.

    Not sure abt it as
    load data
    infile *
    into table [table name]
    terminated by ','
    (COL1 has to be filled wth second field of the data file,
    COL2 has to be filled wth third field of the data file )
    i need to skip first field of the data file.

  • 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...

  • How to make OWB ignore a field that is not mapped.

    Hi,
    We're using OWB 10.1.
    I'm just doing a simple load from a flat file to a regular table.
    I discovered that the data file is missing an entire field or column of data.
    The field is not necessary so I'm continuing the load.
    I just remapped the OWB map so it doesn't not pull data from the last field in the data file.
    When it created the control file to do the load, the last field that was unmapped in the OWB map was re-designated as 'DECIMAL EXTERNAL'.
    Then when the map runs to load the data, I get an error message of
    Record 1: Rejected - Error on table "STAGING"."TCMBBX", column "PAID_AMOUNT".
    Column not found before end of logical record (use TRAILING NULLCOLS)So it looks like OWB is still trying to include the last field in the load for some reason when I had unmapped the field in OWB.
    My question is how can one un-map a field or not map a field in OWB and then have OWB ignore the field when running the load?
    This is regarding removing the map line drawn from a field in the data file to a field in the staging table.
    Thanks!

    Hi,
       Declare a range as :
    ranges : r_hkont for bseg-hkont.
    fill in the values
    r_hkont-sign = 'I'.
    r_hkont-option = 'BT'.
    r_hkont-low = '26000000'.
    r_hkont--high = '2999999'.
    append r_hkont.
    Select sgtxt from bseg into text
    where bseg-hkont in r_hkont.
    Regards,
    Srini.

  • Please Help: Ignore first Character in a String.

    How do you ignore the first Character in a String?
    String a = JTable.getValueAt(row,column).toString();
    //Ignore first Char of a? ('$')
    double b = Double.valueOf(a).doubleValue();Any help would be appreciated!

    Ok,so I do that. Now I have the Char '$'. But I don't want '$', I want everything after it. Must I loop throught the rest of the string or can I just remove the first Char?

  • Dynamic data on  Screen -Display data Based On the First Field

    hello Helping Minds..
    I have Two Fields In MODULEPOOL SCREEN.
    1--- BUKRS
    2--- BELNR ..... Both From BKPF table.
    My requirement is When i select a CompanyCode ( BUKRS ) In d first field,all the DocumentNO ( BELNR ) related to that CompCOde Shd be displayed in the 2nd field,
    For Ex-
    If i choose BUKRS = 1000,
    and Then clicked the Belnr field, All d DocumentNO for BUKRS 1000 will be populated in d Dropdown list..
            BUKRS = 0001,
    then BELNR = 0100000000 ,
                          0100000001 in d dopdown. 
    source code will be Appreciated...
    Thnks in advance To D helping Minds

    Process on value-request.
    filed Bukrs module f4_bukrs.
    field belnr module f4_belnr.
    *module f4bukrs input.*_
    if belnr is not initial.
    select belnr bukrs from bkpf whre belnr = belnr.   
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.               ""   Hey both these Condition lead to same thing...den Whts d use??
    Firstly Belnr will be always Intial. cos it will be populated after we select the BUKRS.  , Here am confused?
    if t_bkpf is not initial.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'        "  No idea Abt dis FUncn module, pls explain
    endif.
    end module.
    module f4_belnr input.
    if bukrs is not initial.
    select belnr bukrs from bkpf where bukrs = bukrs.
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.
    if t_bkpf is not initial.          ""   What is t_bkpf and y its used
    call fm to CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    endif.
    end module.

  • DYnamic Screen -Display data Based On the First Field

    hello Helping Minds..
    I have Two Fields In  MODULEPOOL SCREEN.
    1--- BUKRS
    2--- BELNR     ..... Both From BKPF table.
    My requirement is When i select a CompanyCode ( BUKRS )  In d first field,all the DocumentNO ( BELNR ) related to that CompCOde Shd be displayed in the 2nd field,
    For Ex- If i choose BUKRS = 1000,
                and Then clicked the Belnr field, All d DocumentNO for BUKRS 1000 will be populated in d Dropdown list..
            BUKRS = 1000,
    then  BELNR = 0100000000 ,
                           0100000001   in d dopdown.
    <<don't cross post/Duplicate else thread will be locked or deleted>>
    Thnks in advance To D helping Minds
    Edited by: Vijay Babu Dudla on Apr 25, 2009 4:57 AM

    Process on value-request.
    filed Bukrs module f4_bukrs.
    field belnr module f4_belnr.
    *module f4bukrs input.*_
    if belnr is not initial.
    select belnr bukrs from bkpf whre belnr = belnr.   
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.               ""   Hey both these Condition lead to same thing...den Whts d use??
    Firstly Belnr will be always Intial. cos it will be populated after we select the BUKRS.  , Here am confused?
    if t_bkpf is not initial.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'        "  No idea Abt dis FUncn module, pls explain
    endif.
    end module.
    module f4_belnr input.
    if bukrs is not initial.
    select belnr bukrs from bkpf where bukrs = bukrs.
    else.
    select belnr bukrs from bkpf whre belnr = belnr.
    endif.
    if t_bkpf is not initial.          ""   What is t_bkpf and y its used
    call fm to CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    endif.
    end module.

Maybe you are looking for

  • Error while connecting to RMAN

    Hi Gurus, DB_VERSION=11.1.0.6 OS_VERSION=Win 2003 Server when i try to connect RMAN , i am facing following error : E:\Oracle11g\11g\BIN>set oracle_sid=DB1 E:\Oracle11g\11g\BIN>rman target sys Recovery Manager: Release 11.1.0.6.0 - Production on Tue

  • Camera Raw Plug-In for CS4

    Cannot open NEF files using CS4.  Error message "... Not the right kind of document."  Went to HELP, About Plug-In. Camera Raw and get Icon showing Green Plug and Version 5.7.0.213.  Any help in using CS4 to Post Process Nikon ( NEF) file greatly app

  • Error Upgrading to Latest Version of iTunes.

    When I tried to upgrade to the latest version of iTunes, after around 30 minutes of installing it came up with this error: *The cabinet file iTunes.cab required for this installation is corrupt and cannot be used.* *This could indicate a network erro

  • My ipod is stuck on a pic of the charger help?

    when i turn on my ipod it shows a pic of the charger with an arrow pointing to itunes and i need help? please

  • Live video for presentations

    Hey guys, i hope you understand my question: I know, that the Socialize webcam got a feature, you are able to create live videos while a picture / (powerpoint) presentation is running. So you can talk next to the presentation and everybody see you in