Ignoring a record

Hi
the scenario is RFC -> File
the filename is sent in the third field of very first record every time,
so i'm using the variable substitution to get the filename from third field of very first record,
but i dont want to write the first record (the record with the file name) in the target file.
please help me in this,
thanks.
Saravanan

Hi,
Better option indtead of using variable substitution is to use Adapter Specific identifiers.
Look into this link to get the code to set the file name in your mapping.
In the receiever file adapter, select Adapter Specific Identifiers --> FileName.
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
Regards
Bhavesh

Similar Messages

  • Ignore duplicate records for master data attributes

    dear  experts ,
                   how & where can i  enable "ignore duplicate records" when i am running my DTP to load data
                     to master data attributes.

    Hi Raj
    Suppose you are loading master data to InfoObject and in PSA you have more than one records for Key.
    Let's assume you are loading some attributes of Document NUmber ( 0DOC_NUMBER) and in PSA you have multiple records for same document number. In PSA this is not a problem, as Key for PSA table is technical key and which is different for every record in PSA. But this is a problem for InfoObject attribute table as more than  one records for primary key ( here 0DOC_NUMBER) will create Primary Key consraints in database.
    This issue can be easily avoided by selecting "Handle Duplicate Records" in DTP . You will find this option under *update" tab of DTP.
    Regards
    Anindya

  • Query to ignore the records which are 6 months older

    I need a query to ignore the records which are 6 months older . my table is having a column named quote_date . I need to ignore the records whose quote date is 6 months older . Can any one help me in this regard.
    thanks in advance
    rakesh

    Hi:
    SELECT *
      FROM table_name
    WHERE MONTHS_BETWEEN (SYSDATE, quote_date) > 6HTH
    Saad,

  • How to create an XSD for file adaptor which will ignore the records that are not required.

    Hi All,
       I have a requirement, the Fixed Length file contains
    30013742387462382938742      82347023984623087   
    30037348237  983743  9837423098  98347 
    10108472398   98034702398409238 9838472398   09823409238
    300163527 387462398746 38746293874693746324763
    101037642873643 37438724683746837648 873648736
    200138743986493874398
    2002738469837246
    10003784629837469283746937463987469387
    I need to select only the records that startswith 3001 and 3003 which are of different types and ignore the remaining records like 1010,2001,2002,1000.
    Can any one help me on this.

    You can make use of "conditionValue" or "startsWith" attributes while designing you native XSD.
    Check this example - Native Format Builder Wizard - 11g Release 1 (11.1.1.6.3) for better understanding.

  • Import: Ignore blank records

    Hi Team,
    While automatic import, I am getting few blank records from the source system (All the fields are blank)
    These records are getting imported in MDM.
    Please suggest on how to ignore importing them.
    Thanks,
    Priti

    Hi,
    Incase you want to skip certain records from being imported you can in the Import Manager, Matching records right click on every individual record in the bottom source records pane and select skip record while allowing update all mapped fields for the other record.
    In order to skip records having null values during the auto import you can set the null value handling to ignore.
    Its important to note that multiple null entries can be there in a unique column in the MDM table as MDM treats it as a incomplete record.
    If the file is being transfered via PI to MDM distribution folder you can have this check put in PI as well to remove these entries in the xml file that is being generated.
    Regards,
    Aditya.

  • Ignoring Error Records

    Hi all,
    I have a scenario like this
    If i have 100 records in the file then in the idoc there will be 100 data segments to be created.
    if say 5 records were error then i need to create an idoc with 95 data segments. and ignore the 5 error  records.
    how can we do this?
    Actually,
    As soon as the file is picked by XI, it does a lookup in the XI itself
    I have a lookup table with the fields
    CodeDomain Group
    Code DomainID
    ORIGID
    DESTID
    CURRVALUE
    MAPPED VALUE
    if the file doesnot contain a CURRVALUE then those records needs to be ignored and proceed processing the other subsequent records.
    Please advice.
    Thanks in advance..
    Regards,
    Kumar

    Hey Kumar,
    It is very simple. you can do it very easly.
    In you mapping, just validate the parent node of surce before mapping to the parent node of target (i.e.<b>IDOC</b>).
    Say your source parent name is <b>ROOT</b> or <b>Records</b>, now as per your requirement do like this.
    Use <b>IF without Else</b> function
    <b>CURRVALUE -
    > EQUALS ---> SPACE ---> NOT -
    > IF, THEN ---> ROOT ---> IDOC</b>
    By doing this, it will create the IDOC only for those records which will be having a value in CURRVALUE field.
    Regards,
    Sarvesh

  • Ignore certain records types

    I have a file with two types of records, but I only want to process one of the record types. I have tried using the xsd to ignore the second record without any success and I have tried using a transformation also without success. Is there a way to do this?
    Thanks

    If you're using a transformation.
    Can't you use a filteroption to process only the recordtypes you want?
    something like if test="/element[@attribute='record1']"

  • BI 7.0 - Duplicate Record Error while loading master data

    I am working on BI 7.0 and I am trying to load master data to an info object.
    I created an Infopackage and loaded into PSA.
    I created transformation and DTP and I get an error after I execute the DTP about duplicate records.
    I have read all previous threads about duplicate record error while loading master data and most of the them suggested to check 'Ignore duplicate records' option in the infopackage. But in 7.0, I can only load to PSA with infopackage and it doesn't have any option for me to ignore duplicate records.
    My data is getting loaded to PSA fine and I get this error while loading to info object using DTP.
    I would appreciate your help to resolve this issue.
    Regards,
    Ram.

    Hi,
    Refer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/2a8430131e03c3e10000000a1553f6/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d0/538f3b294a7f2de10000000a11402f/frameset.htm
    With rgds,
    Anil Kumar Sharma .P

  • Crystal 2008 problem with Record Select Expert

    I had a Crystal 10 report that worked fine where the Record Select Expert had a database table ID equal to a parameter... it was only supposed to report on 1 record.  After using Crystal 2008 on the same report it completely ignores this Select Record Expert setting.  I have tried deleting and re-adding the parameter.  It acts like there is no record select setting.
    Here is the formula that it shows me it is using:    {Components.ID} = {?@ID}
    If I go to the application opening the same record on a different machine using the old crystal, it works fine.
    This used to only show me the 1 record, now it shows me the report on every record in the table.  I tried upgrading the report to a 2008 report and it still does the same thing.  The report filter no longer works.   Do I need to do something different to select only 1 record in 2008 ?
    After installing Crystal 2008 on my computer none of my reports work correctly anymore - all of them are ignoring my Record Select ...they worked fine before I installed 2008.  The reports are older reports... they worked fine when I had Crystal XI R2 installed.  This all started after installing Crystal 2008
    Thanks,
    Jeff
    Edited by: Jeff Dressing on Aug 27, 2008 12:06 PM

    Hello, Jeff;
    I noticed the Record Selection Formula uses a Stored Procedure parameter:
    {Components.ID} = {?@ID}
    A parameter created in the report (not by a stored procedure) would be:
    {Components.ID} = {?ID}
    A report based on a Stored Procedure does not need a Selection formula for the Stored Procedure parameter. Connecting to the Stored Procedure automatically creates the parameter in the report and the value is passed automatically when the report is run.
    Does the report work in the Crystal Reports 2008 designer?
    Open the report in the designer. Go to Database Set Datasource location. Are the properties of the database at runtime still the same as what is saved in the report.
    If the database is different at runtime, just as a test, change to the new database in a copy of your original report. Do a Database|Verify Database. Does it come back the "Database is uptodate" or are there changes?
    Elaine

  • How to ignore Recordset name in XML(Sender JMS Adapter)?

    Hi All.
    I am using Sender JMS Adapter along with content conversion.
    I have put in Parameter:
    Plain2XMLService xml.ignoreRecordsetName true
    still the Inbound payload in SXI_MONITOR has Node Recordset, which should not be the case.
    Please advice, does this ignoreRecordsetName works in JMS adapter, if Yes does it works same way as in File Adapter content conversion?
    Thanks in Advance

    >
    Gowtham Peddi wrote:
    > Hi All.
    >
    > I am using Sender JMS Adapter along with content conversion.
    >
    > I have put in Parameter:
    > Plain2XMLService xml.ignoreRecordsetName true
    >
    > still the Inbound payload in SXI_MONITOR has Node Recordset, which should not be the case.
    >
    > Please advice, does this ignoreRecordsetName works in JMS adapter, if Yes does it works same way as in File Adapter content conversion?
    >
    > Thanks in Advance
    can you try
    ignoreRecordsetName true instead of xml.ignoreRecordsetName
    also try to not give any value for the xml.recordsetName parameter.
    I actually doubt if we can ignore the record set name using the module.

  • Ignore Numeric error with EXCEPTION

    Hi,
    I've got a PROC that reads all records from one table and INSERT them in another table, quite simple. The Only thing is that I want to IGNORE Numeric errors. So, if a get an error (numeric), I want Oracle to IGNORE the error and continue in my FOR LOOP (Selecting records) and Inserting in the table. What seems to happen is that if I get a NUMERIC error, it exits out of the FOR LOOP... Here's the Code:
      PROCEDURE Insert_Current_Data(
       p_create_date                 IN         DATE,
       p_StatusId                      OUT      NUMBER
    ) IS
    e_constraint_error               EXCEPTION;
    e_numeric_error                 EXCEPTION;
       PRAGMA EXCEPTION_INIT (e_constraint_error, -2291);
       PRAGMA EXCEPTION_INIT (e_numeric_error, -1722);  
    /*   to_number(NOC_CODE) NOC_CODE,
                      to_number(ECONOMIC_REGION_CODE) ECONOMIC_REGION_CODE, */
    CURSOR ei_claimant_ext_cur
          IS
          SELECT NOC_CODE,
                      ECONOMIC_REGION_CODE,
                      CASE EI_PROV_CODE
                        WHEN '00' THEN 1
                        WHEN '01' THEN 4
                        WHEN '02' THEN 2
                        WHEN '03' THEN 3
                        WHEN '04' THEN 5
                        WHEN '05' THEN 6
                        WHEN '06' THEN 7
                        WHEN '07' THEN 8
                        WHEN '08' THEN 9
                        WHEN '09' THEN 10
                        WHEN '10' THEN 11
                        WHEN '11' THEN 12
                        ELSE 13
                      END EI_PROV_CODE,
                      POSTAL_CODE
            FROM ei_claimant_external
            WHERE ei_prov_code <> 12
            AND     economic_region_code <> 99
            AND     postal_code is NOT NULL;
    --        AND     ROWNUM < 1000;
            ei_claimant_ext_rec ei_claimant_ext_cur%ROWTYPE;
            v_create_date       VARCHAR2(20);
            v_econ_reg_prov     NUMBER;
        BEGIN
         dbms_output.put_line('Date passed: '||p_create_date); 
         dbms_output.put_line('INSERT Current Data ');
    --        p_StatusId := 0;
            FOR claimant_row IN ei_claimant_ext_cur LOOP
    /*        OPEN ei_claimant_ext_cur;
            LOOP
                FETCH ei_claimant_ext_cur
                INTO ei_claimant_ext_rec;
                -- v_staging_count := v_staging_count + 1;
                EXIT WHEN ei_claimant_ext_cur%NOTFOUND;      */
                BEGIN
                    --- Get Econ Region Province
                    SELECT PROVINCE_ID
                    INTO     v_econ_reg_prov
                    FROM    cd_econ_regions
                    WHERE  ECONOMIC_REGION_ID = ei_claimant_ext_rec.ECONOMIC_REGION_CODE;
                EXCEPTION
                    WHEN NO_DATA_FOUND THEN v_econ_reg_prov := 0;
                END;
                BEGIN
                    IF v_econ_reg_prov = ei_claimant_ext_rec.EI_PROV_CODE
                    THEN
                        INSERT INTO ei_claimant_curr_year
                        VALUES  (EI_SEQ.nextval,
                                ei_claimant_ext_rec.noc_code,
                                ei_claimant_ext_rec.EI_PROV_CODE,                           
                                ei_claimant_ext_rec.ECONOMIC_REGION_CODE,
                                p_create_date, --- CURRENT Month
                                ei_claimant_ext_rec.POSTAL_CODE
                                COMMIT;
                    END IF;                                                         
                EXCEPTION
                    WHEN e_constraint_error THEN dbms_output.put_line('CONSTRAINT Error ');
                            fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||'  Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
                            ' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
                                  SQLCODE,
                                  NULL,
                                  'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
                    WHEN e_numeric_error THEN dbms_output.put_line('NUMERIC Error On INSERT');
                            fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||'  Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
                            ' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
                                  SQLCODE,
                                  NULL,
                                  'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
                    WHEN OTHERS
                        THEN
                            fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||'  Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
                            ' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
                                  SQLCODE,
                                  NULL,
                                  'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
                END;
            END LOOP;
    --        CLOSE ei_claimant_ext_cur;       
        EXCEPTION
                        WHEN e_constraint_error THEN dbms_output.put_line('CONSTRAINT Error ');
                            fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||'  Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
                            ' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
                                  SQLCODE,
                                  NULL,
                                  'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
                        WHEN e_numeric_error THEN dbms_output.put_line('NUMERIC Error ON Cursor');
                            fwutil_pkg.logerror (SQLERRM||' '||ei_claimant_ext_rec.noc_code||' Prov Code: '||ei_claimant_ext_rec.EI_PROV_CODE||'  Econ Region: '||ei_claimant_ext_rec.ECONOMIC_REGION_CODE||
                            ' Postal Code: '||ei_claimant_ext_rec.POSTAL_CODE||' Date: '||p_create_date,
                                  SQLCODE,
                                  NULL,
                                  'Populate_EI_Claimant_Main -- Insert into EI_Claimant_curr_year '
        END Insert_Current_Data;Here's the records that it is reading:
    00094440903E4P1T5
    00000000000000000
    00066230703E1E1G4
    AAAAAAAAAAAAAAAAA
    00012210903E4K2K8
    00082620803E5V1L3
    99999999999999999
    00084410803E5G2J3
    00074120903E4N2E3
    00094630903E4N1B7
    00082620903E4N2J6
    00082620903E4M2C4It is inserting the first 2 records, ignoring the record with '0' (which is good). Then it exits the FOR LOOP when it gets to the record with a bunch of 'A'.
    Please Help !
    Thanks in advance.

    First of all correct your code..FOR LOOP has not been implemented correctly.. I think first u tried with OPEN CURSOR..LOOP..FETCH..EXIT WHEN..END LOOP..CLOSE CURSOR..then converted the same to FOR LOOP..END LOOP and forgot to change the code like
    -- WHERE ECONOMIC_REGION_ID = ei_claimant_ext_rec.ECONOMIC_REGION_CODE;
    try this type of code...
    DECLARE
         TYPE mixed_typ IS TABLE OF VARCHAR2 (1)
                                  INDEX BY PLS_INTEGER;
         mixed_ty          mixed_typ;
         e_numeric_error EXCEPTION;
         PRAGMA EXCEPTION_INIT (e_numeric_error, -6502);
         v_num               NUMBER;
    BEGIN
         mixed_ty (1) := '1';
         mixed_ty (2) := 'A';
         mixed_ty (3) := '2';
         mixed_ty (4) := '3';
         FOR i IN 1 .. mixed_ty.COUNT LOOP
              BEGIN
                   v_num     := TO_NUMBER ('11' || mixed_ty (i));
                   DBMS_OUTPUT.PUT_LINE (v_num);
              EXCEPTION
                   WHEN e_numeric_error THEN
                        DBMS_OUTPUT.PUT_LINE ('Ignore '||SQLERRM);
              END;
         END LOOP;
    EXCEPTION
         WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE (SQLERRM);
    END;

  • How to avoid duplicate record in a file to file

    Hi Guys,
              Could you please provide a soultion
              in order  to avoid duplicate entries in a flat file based on key field.
              i request in terms of standard functions
             either at message mappingf level or by configuring the file adapter.
    warm regards
    mahesh.

    hi mahesh,
    write module processor for checking the duplicate record in file adapter
    or
    With a JAVA/ABAP mapping u can eliminate the duplicate records
    and check this links
    Re: How to Handle this "Duplicate Records"
    Duplicate records
    Ignoring Duplicate Records--urgent
    Re: Duplicate records frequently occurred
    Re: Reg ODS JUNK DATA
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d0/538f3b294a7f2de10000000a11402f/frameset.htm
    regards
    srinivas

  • Total number of records loaded into ODS and in case of Infocube

    hai
    i loaded some datarecords from Oracle SS in ODS and Infocube.
    My SOurceSytem guy given some datarecords by his selection at Oracle source system side.
    how can i see that 'how many data records are loaded into ODS and Infocube'.
                     i can check in monitor , but that not correct(becz i loaded second , third time by giving the ignore duplicate records). So i think in monitor , i wont get the correct number of datarecords loaded in case of ODS and Infocube.
    So is there any transaction code or something to find number records loaded in case of ODS and Infocube .
    ps tell me
    i ll assing the points
    bye
    rizwan

    HAI
    I went into ODS manage and see the 'transferred' and 'added' data records .Both are same .
    But when i total the added data records then it comes 147737.
    But when i check in active table(BIC/A(odsname)00 then toal number of entries come 1,37,738
    why it is coming like that difference.......
    And in case of infocube , how can i find total number of records loaded into Infocube.(not in infocube).
               Like any table for fact table and dimension tables.
    pls tell me
    txs
    rizwan

  • Duplication of Records

    Hi All,
    I am getting the duplicate records.
    I had select the check box "ignore duplicate records at infopackage level".
    still i am getting the duplicate records. is der any alternative solution. Plz help me
    Regards
    KK

    Hi KK,
    First delete the contents from the data target.And run the Info Package again.
    Because there is no other solution i guess.
    Regards,
    Madhu Ponnada

  • How to check whether the new records are inserted or not in SSIS

    Hi All,
    I have a SSIS package which insert data from Table A  to Table B . I need to insert only new records to Table B. If any record is not there it should insert the record if not ignore that record.
    I used Lookup Transformation but it doesn't works from me, which tab should i need to select? Like in General tab we have  ignore failure, Fail Component,Redirect rows to no match output, Redirect rows to error output?
    Please help me on this issue. 
    Thanks, Shyam Reddy.

    On what basis you're doing the lookup? Are you using correct column for the lookup? It should be based on common columns based on which tables are related (mostly primary key column)
    Can you also show the column tab to see how you've done the mapping  ?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Photoshop Elements 6 will not bring in photos from iPhoto

    Hi -- I had Elements 4.0 and just upgraded to Elements 6 (I am running OSX 10.5.4) -- when I go to open a photo it will not let me click on them, they either disappear from the screen or I just simply can't choose a photo. What do I do? Does Elements

  • Directory corrupted cvfsck crashes

    G5 Xsan RAID etc - power failure while deleting some files - when the system came back up it wouldn't mount the Xsan Volume - I tried cvfsk to repair and after a long list of repairable errors it goes into an infinite loop trying to delete a damaged

  • How to switch from Japanese keyboard

    Is there any way to reprogram a MacBook with a Japanese keyboard to English chacters?

  • Upgrading PowerMac G4 to the MAX for video production?????

    I need to know if I can just upgrade my Power Mac G4 (AGP graphics) to the max for video production? I'll be using 4 main programs. 1. Final Cut Studio 2 2. After Affects 3. Protools 4. Photoshop CS 3 Final Cut recommends this for all applications: *

  • Firefox is not loading websites

    I attempted to Google search some images, but the page stopped loading even though the tab said it was still loaded. I tried to do a web search instead, but Firefox wouldn't load Google at all. I then decided to restart my computer and run a disk cle