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

Similar Messages

  • How to ignore a recordset in receiver file adapter

    Hi, all.
    I am trying to get PI to write a fixed length file via the reciever file adapter. Here is a test data structure I put together:
    In the output file, I want the file adapter to ignore the recordset PAYPERIOD and field PERIOD. Only fields in DATA will be written to the file. Here is what I configure in the CC:
    The problem is that the CC will not work unless I put in the recordset PAYPERIOD which starts printing the data in the PERIOD field. The data in PERIOD is only used to generate the output file name as a perameter.
    Here is the error:
    Attempt to process file failed with java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value 'Y1406' too long (>4 for 0. column) - must stop', probably configuration error in file adapter (XML parser error)'
    Please help. Note that Y1406 is the data in the field PERIOD. The PI file adapter is a rather primitive tool to use.
    Thanks,
    Jonathan.

    Hi Jonathan,
    can you try using the paramter ignoreRecordsetName = TRUE. refer the below sap help
    https://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    ignoreRecordsetName
    A
    <Recordset> element is inserted in the XML structure for each recordset
    structure. This level is not always required, particularly if the recordset only
    contains one structure definition.
    If you set the
    parameter to true, the <Recordset> element is not
    inserted.
    regards,
    Harish

  • How to map Idoc fields with external file

    Hi All,
    How to map Idoc fields with external file.
    I want to check the settings where Idoc fields are mapped with external file.
    Thanks in advance.
    Regards,
    Govind.

    If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment

  • Database filled fields to a pdf form, how can i setup fields to receive ?

    have a database that has a pdf form filler that can send filled fields to a form designed pdf, how can i setup fields to receive the specific fields ?

    Hi housesboat,
    Welcome!
    Please try this to get you started: http://forums.adobe.com/docs/DOC-2412
    Let us know if you have other questions.
    Kind regards, Stacy

  • How to make some fields in ALV tree editable

    Hello All,
    Can any one tell me how to make some fields in ALV tree editable.
    If possible please post some code.
    Regards,
    Lisa.

    Hi Lisa,
    I want to make 3 fields in the ALV tree editable and update the saved values in ztable.
    I tried making the wa_fieldcat-edit = 'X' But in vain.
    Also i made the layout fields  wa_layout-edit = 'X'  and wa_layout-edit_mode = 'X'.
    But still the alv tree field appears as display.
    As you have mentioned in the post as answered, So please guide me to make the field editable.
    I am using oops method.
    Please provide me code if any.
    Thanks & Regards,
    Mozila

  • How i get some informations about audio file?

    Hi to all,
    i would like to know how i get some informations about audio file, such as its artist, bitrate, file type, duration, ecc...
    Any help me?

    Ok, but which are the docs of audio format?Again, what does that have to do with Java?
    Where i can found these documents?Again, what does that have to do with Java?
    Thank you...For nothing.
    db

  • How to ignore 1st row form the file(csv) sender CC

    Hi,
    I have a CSV File (File sender) that I need to load with PI.I want to Ignore 1st row from the file.
    For example the File contains 10 rows  but PI  need to read  the data from 2nd row.
    because in the 1st row contains header data like name, number, mobile, address, etc., I don't want to read this 1st row. I want to read only the data which starts from the 2nd row.
    can you pls tell me the ignore command File Receiver CC
    I am using these commands.
    Record structure: item,*
    item.fieldSeparator: ,
    item.endSeparator : 'nl'
    item.fieldNames:   Name, Number, Address, Mobile
    Thanks in Adv
    Vankadoath

    Hi Vankadoath,
    In your content conversion use the field document offset which ignores the number of lines to be ignored.
    for example if you provide the value as "1" for document offset it will ignore the first line in your file.
    (Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing.
    Regards,
    Naveen.

  • How to handle the whitespace in receiver file content converion

    Hi Experts,
    In Receiver file content conversion we are facing issue with white space charecters- lets example  value -999, but in receiver field fixed lengh we have defined as 20 lengh as per the requirement. But, in the output file we are getting [negative sign taking as first char and value filling last] - ********* 999.       ****** are white space charecters.
    Is there any content conversion paramter for avoiding this type of white space charecters in receiver file content conversion ?
    Best Regards.
    Krushi.

    hi All,
    I presume that there is something missing UDF coding as per the below.
    please advise on this.
    input to conversion of 437.72- to -437.72 is mapping is executing correclty. but, receiver file content conversion we have defined as amout value as 20.
    so -ve sign taking first place char and remaining moving to last charecters, and whitespaces are filling in the middle.
    Now i need to do the trailing of white space charecters. I have tried all above suggested options but nothing works.
    for(int count=0;count<input.length; count++)
        if(input[count].endsWith("-"))
        result.addValue("-"+input[count].substring(0,input[count].length()-1));
        else
        result.addValue(input[count]);
    Thanks and Regards,
    Krushi.

  • How to make some fields mandatory for a custom screen we have added

    Hi All,
    Please let me know how can I make some fields mandatory through coding in PBO for only some fields of a screen.
    Say if I have 4 fields in my screen(module pool not selection screen) i want to make mandatory 2 fields based on some conditions how to do this? I tried using screen-group but this will make mandatory all the fields of that screen mandatory.
    I want only specific fields based on condition in run time.
    Regards
    Mahesh

    Hi Mahesh,
             Try this ..
      Assign the same group to those fields , say GRP
           in  PAI
             IF <CONDITION>
                Loop at screen.
                   if screen-group1 = 'GRP'.
                      screen-required = '1'.
                      modify screen.
                   endif.
                 endloop.
              ENDIF.

  • How to make some fields disable mode in BAPI?

    Dear sir,
    I want to know in Bapi, In Import parameters of output display screen as we are entering values i want to make some fields disable mode (as in report program, in output screen, suppose 2 entry fields are der so i need only one and another one in disable mode)how to do in BAPI?  please explain with example by taking 2 or 3 predefined tables? and in Bapi how to do ranges programs.. please explain with example? is it posiible in bapi to display the output in ALV_GRID method?
    regards
    patil

    Hi Rachu Patil,
    I think there is no posibility to disable fields in import parameter of bapi but you can select optional check box to make the field as an optional field in import parameter. Like wise you cant set range. If you want to set range than declare two variable for low and high.
    Regards,
    Harish

  • Export_to_Excel_pkg - How to exclude some fields in the export?

    While it does generate an excel spreadsheet, it includes all the columns of my report even though I have conditions on most of them. I allow the user to select the columns he/she wants in the report. So I want the Excel spreadsheet to have the same fields as the report. How can this be accomplished?
    <br><br>
    I use APEX 3.0.1 not APEX 3.1 and I don't use a report server.
    <br>
    <br>
    Please help!
    <br>
    Regards,
    Robert

    I was able to create an Excel spreadsheet excluding some fields based on the column's condition. I accomplished this by modifying the Export_to_Excel_pkg package. I added a new procedure and modified an existing one (print_report_header). I bolded the area where I changed or added code.<br><br>
    FOR c IN (SELECT   column_alias, NVL (heading, column_alias) heading,
                       format_mask
    ,condition_type,condition_expression1,condition_expression2
                  FROM apex_application_page_rpt_cols
                 WHERE page_id = p_page_id
                   AND application_id = p_app_id
                   AND region_id = TO_NUMBER (LTRIM (p_region, 'R'))
      -- AND include_in_export = 'Yes'
    AND (column_link_text is null or
    (column_link_text is not null and
    UPPER(column_link_text)=UPPER(column_alias))
    )            -- and column_is_hidden = 'No'
              ORDER BY display_sequence)
         LOOP
    if upper(c.condition_type) = 'PLSQL_EXPRESSION' then
    export_excel_pkg.get_include_in_report(p_page_id
    ,p_app_id
    ,p_region
    ,c.column_alias
    ,c.condition_expression1
    ,v_include_in_report);
    if v_include_in_report <> 'YES' then
    goto next_field;
    else
    null;
    end if;
    else
    null;
            end if;
            v_number_of_cols := v_number_of_cols + 1;
            v_column_header_list :=
                    v_column_header_list || ';' || REPLACE (c.heading, ';', ' ');
            v_column_alias_list := v_column_alias_list || ';' || c.column_alias;
            -- apply column formatting
            IF c.format_mask IS NOT NULL
            THEN
               v_column_select_list :=
                     v_column_select_list
                  || ',to_char('
                  || c.column_alias
                  || ','''
                  || c.format_mask
                  || ''') '
                  || c.column_alias;
            ELSE
               v_column_select_list :=
                                   v_column_select_list || ',' || c.column_alias;
            END IF;
    <<next_field>>
    null;     END LOOP;
    The new procedure:<br>
    PROCEDURE get_include_in_report (
    p_page_id IN number,
    p_app_id IN number,
    p_region IN VARCHAR2,
    p_column_alias IN VARCHAR2,
    p_condition_expression1 IN VARCHAR2,
    p_include_in_report OUT VARCHAR2)
    AS
    v_condition varchar2(20) := 'PLSQL_EXPRESSION';
    v_query varchar2(32767);
    v_include varchar2(3) := 'NO';
    v_cur_hdl INT;
    v_rows_processed INT;
    begin
    v_query :=
    'SELECT ''YES'' '
    || 'FROM apex_application_page_rpt_cols '
    || 'WHERE page_id = :g_page_id '
    || 'AND application_id = :g_app_id '
    || 'AND region_id = TO_NUMBER (LTRIM (:g_region, ''R'')) '
    || 'AND condition_type = :g_condition '
    || 'AND column_alias = :g_alias '
    || 'AND ' || p_condition_expression1 ;
    -- open cursor
    v_cur_hdl := DBMS_SQL.OPEN_CURSOR;
    -- parse the query
    DBMS_SQL.PARSE(v_cur_hdl,v_query,DBMS_SQL.NATIVE);
    -- Supply binds (bind by name)
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_page_id',p_page_id);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_app_id', p_app_id);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_region', p_region);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_condition',v_condition);
    DBMS_SQL.BIND_VARIABLE(v_cur_hdl, 'g_alias',p_column_alias);
    -- Describe defines
    DBMS_SQL.DEFINE_COLUMN(v_cur_hdl, 1, v_include, 3);
    -- Execute
    v_rows_processed := DBMS_SQL.EXECUTE(v_cur_hdl);
    -- Fetch a row
    IF DBMS_SQL.FETCH_ROWS(v_cur_hdl) > 0 THEN
    -- Fetch columns from the row
    DBMS_SQL.COLUMN_VALUE(v_cur_hdl, 1, v_include);
    -- Process
    ELSE
    null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR(v_cur_hdl); -- close cursor
    p_include_in_report := v_include;
    end;
    <br>
    <br>
    I hope this helps others as well.
    <br>
    <br>
    Regards,<br>
    Robert

  • How we remove some fields from SAP standard one's

    Hi,
    i am very new to SAP SD .if the client do not want some fields from standard one's how we can remove those fields.(example u take Standard sales order).

    HI, you cannot hice many fields in SAP, since they all need for something.
    try to explain this to your customer; furthermore many fields are filled form the master data so the users don't have do mind of them.
    Anyway you can alter the screens using the transaction variants: go to IMG
    Spro: SAPNetwaever->general settings->Field Display Characteristics->Configure Application Transaction Fields
    Reward if helpful
    Regards
    Roberto

  • How to skip one field from the file by using sqlldr

    Hi ,
    i'm using DB 10g R2 on Redhat ,
    my control file hereunder ,
    LOAD DATA
    INTO TABLE reber.AAA_BILL
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    EXCEPTIONS reber.AAA_BILL
    FIELDS TERMINATED BY '|'
    (Streamnumber ,
    MDN ,
    USERNAME ,
    DOMAIN ,
    USERIP ,
    CORRELATION_ID ,
    ACCOUNTREASON ,
    STARTTIME ,
    PRIORTIME ,
    CURTIME ,
    SESSIONTIME  ,
    SESSIONVOLUME ,
    RATEPOLICYIDX ,
    FEE ,
    GROUPID ,
    SERVICEID)and this is one records of the file ,
    222|1|0664363446|12D0DC90||10.15.6.45|007b8aa5|3|20111029204824|20111029204824|20111029211504|1600|0|147|0|4000|10154|really i want to skip the first field in the file which is (222|) and starting from the second field ,
    any help please

    Thank you for you reply ,
    really i know the Filler to skip colomn from the table , is the Filler working also to skip field from the File . i'll read the link to check this

  • How to pass ascii values in receiver file contentversion

    Hi ,
    How to define a ascii vlaues in file content conversion(eg ASCII13) in file reciver adapter.
    Regards
    Swathi

    hi,
    Special Characters in the FCC:
    In all strings for separators (NameA.fieldSeparator, NameA.beginSeparator, and NameA.endSeparator), you can specify non-printable ASCII characters. These characters can each be inserted individually in the strings in the form ´0xHH´ (including the quotation marks), where HH represents the character coded as a hexadecimal value. A line break can be entered using the character ´nl´ (including the quotation marks); nl stands for new line. The special character ´0´ is not a separator character.
    and
    Specify the File Type of the document.  :  Binary/ Text
    Under File Encoding, specify a code page.
    The default setting is to use the system code page that is specific to the configuration of the installed operating system. The content of the message is then converted to the corresponding code page before the message is saved as a file.
    You should use this conversion only for plain text and not for XML documents. If you want to change the encoding of an XML document, then select the File Type as Binary and apply XMLAnonymizerBean as an additional module in the Module tab page.
    Permitted values for the code page are the existing charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
    US-ASCII
    Seven-bit ASCII, also known as ISO646-US, or Basic Latin block of the Unicode character set
    please refer sap.help:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    thanks,

  • How to make some fields of a view non editable

    Hi experts,
    I need to make some fields like system user, system time and system date of a view non editable and after saving values for all other editable fields, the system should fill the values for the non editable fields as well.
    Kindly help in this regard.

    I am assuming that you created a maintenance view for your table. Under view fields there is a column called 'Maintenance Attribute for view field' (one character field with 'P' in the column. Set that column value to 'H' for the fields that you want to hide.
    You then have to go to SE54, give your maintenance view name, in the menu, 'Environment-->Events' create an event 01 with your own code to fill in those hidden fields. Look with key words 'Table Events' in this forum and you will get a lot of examples.

Maybe you are looking for

  • Error while doing GI to cost center (201 Mvt type)

    Hi, While I tried to do Goods Issue to Cost center through mvt type 201. I get the following error. "Account type K is not defined for document type WA" Kindly help reg it. Regards, Vimal

  • NLS data conversion – best practice

    Hello, I have several tables originate from a database with a single byte character set. I want to load the data into a database with multi-byte character set like UTF-8, and in the future, be able to use the Unicode version of Oracle XE. When I'm us

  • How to determine the changes in Acrobat SDK version.

    Hi Please let me know how to determine the changes in an Acrobat SDK version w.r.t. the previous one.

  • ITunes refuses to play certain songs?

    I've had some songs in my iTunes library for quite some time but all of a sudden, several tracks (usually in the same album) refuses to play. When I delete those tracks from the library and try to re-add them, iTunes refuses to add those tracks but t

  • Display  queue in message mapping

    Hi , I need to know the function of ' display queue ' in message mapping . How do i go about it. Please help. Thanx nd regards , Srestha