Records fetch which not exist in both tables

hi all
i have 2 tables like zlease and zcust. the common field is zempno and i want to get the records which are no similar in both records eg:
records of both the tables
i_emp|zempno
VMX020|
3      |
1      |
10     |
10522  |
i_cust  empno
10522
3
vmx020
and i supposed to get 2 records like : 1 and 10.
i hav written the code but that doent give me just see my code pls
loop at i_cust.
  read table i_cust with key zempno = i_emp-zempno.
  if not i_cust-zempno = i_emp-zempno.
    move i_cust  to itab.
    append itab.
    endif.
    endloop.
loop at itab.
    write : / itab-zempno, itab-zcustnumber, itab-zcustname, itab-zcustbd, itab-zno_chil.
endloop.
records of both the tables
i_emp|zempno
VMX020|
3      |
1      |
10     |
10522  |
i_cust  empno
10522
3
vmx020
and i supposed to get 2 records like : 1 and 10.

to get record from i_emp which  are not similar to i_cust
loop at i_emp.
read table i_cust with key zempno = i_emp-zempno.
if i_cust-zempno = ' '.
move i_emp to itab.
append itab.
endif.
endloop.
and if u want records from i_cust also do the same
loop at i_cust.
read table i_emp with key zempno = i_cust-zempno.
if i_emp-zempno = ' '.
move i_cust to itab.
append itab.
endif.
endloop.
loop at itab.
write : / itab-zempno, itab-zcustnumber, itab-zcustname, itab-zcustbd, itab-zno_chil.
endloop.
thanks
anil
Edited by: anil chaudhary on Sep 4, 2008 12:14 PM

Similar Messages

  • Spool numbers are not exist in TBTCP table but can be visible at SP01 trans

    HI folks,
                    I could see four spool errors in SP01 transaction .But i couldn't able to find which job/program had generated that spool. I have checked TBTCP table also..but those spool numbers are not exist in that table.
    Can any one please help me on this.

    Hi Manj,
    There is no error in SP01 tcode.
    You need to check the tables TSP01 and so on and find the sppol numbers and then the user name and the times generated.
    It works with a different mechanism.it's a RDBMS Concept and normalisation.
    you can even use the FM RSPO_FIND_SPOOL_REQUESTS. or look for FMS RSPO* and explore.

  • [nQSError: 59014] The  requested column does not exist in this table.

    Hi
    As you know this error has been discussed in other threads.. the difference in mine is that not only the time series measures but all the columns are giving me the error...none of the columns are being displayed... The rpd has no consistency errors. can anyone suggest what may be going on?
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT column1 saw_0 FROM Paint3 ORDER BY saw_0
    Thank you
    mm58

    I guess you have the column in RPD, and it is available for queries.
    are you using any time measures? if so check you chronological keys.

  • The requested column does not exist in this table

    Hi All,
    I am getting the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT "Customers - Dim".CITY FROM MVDEMO ORDER BY 1
    When I tried viewing data online I am able to view the data in the physical Layer. Also I tried connecting thru ODBC Client and issued the same SQL (above) and it returns the data.
    I am using Oralce BIEE 10.1.3.2.1 version.
    Please let me know if any faced this kinda issue and how to resolve this.
    Thank you.

    Check your column mapping in the BMM layer in your Customers - Dim logical table. Does the CITY column point to a physical table column?

  • Error in ALV : Field Does not exists in Output table .

    Hi All,
    In my ALV report, program get dumped and showing error when i tried to put a col named Distribution channel ion the alv.
    I have put the Distribution cannel field in the IT_FInal table , but still getting folwong errors :
    Error : Field Symbol is not been assigned.
    As Instructed i have passed            I_INTERFACE_CHECK              = 'X'.
    By this i am getting detail error that :
    Field Distribution channel does not exists in Output table & Heading for List is missing .
    But i have maintained the distribition channel in IT_Final table
    Please suggest wheather we have to define dis channel in any other place.
    Thanks in advance.
    Can any one help me regrarding this.
    Thanks in advance.

    Hello,
    You have to populate the same in the fieldcatalog as well, i think you have not maintained this field there.
    BR,
    Suhas
    PS: Also make it a point to follow-up on your previous post: [Error in ALV : Field Symbol not been assigned.|Error in ALV : Field Symbol not been assigned.]

  • Entry SE01 1890 does not exists in T005G(Table)

    Hi,
    We are getting Bdoc error "Entry SE01 1890 does not exists in T005G(Table)" in CRM system.We are using CRM 7 and ECC 6.
    Please help me in resolving this issue.
    Thanks,
    Rahul

    Hi,
    Thanks for the reply.
    We are getting this error in BDOC monitoring.Similarly we haev more errors related to same error like" Entry SE01 1880 does not exists in T005G(Table)".
    .Actually when i check this table city code 1880 is mentioned under region 18 in the country key SE.
    Please help me

  • Entry does not exists in check table -- Validation

    Hi friends..,
      I am able to create new entries in my table with INSERT statement through a function module.
    But, the problem is..,
    I am having one key field in my table, and T1(another table) is check table for this.
    So while creating the entries through SE11, its giving error message like ENTRY DOES NOT EXISTS IN CHECK TABLE. But the same entry i am able map through my function module..!
    Any extra settings reuired for this..?
    Or.,
    Am i need to write validation code?
    Thanks,
    Naveen.I

    Hi...Rama chary..,
    I am having separate function modules to do this..!
    So here I can't to update two table at time.
    My function module updating a table field with out checking it wrt its check table..!
    Even i write code to check table , it will not meet the functionality of SE11 error..!??
    so what can i do..?
    Thanks,
    Naveen.I

  • Entries in Dimension table (Dim Id's) which do not exist in Fact table

    Hello all,
    We have a strange situation when we run the Report SAP_INFOCUBE_DESIGN. I expected that the Dimension table could have max 100 % compared with Fact tables. However we have a dimension with 587% entries compared with fact tables.
    ZOEEMRW            /BIC/DZOEEMRW3      rows:  2.416.567    ratio:        587  %
    ZOEEMRW            /BIC/DZOEEMRW5      rows:      2.464    ratio:          1  %
    ZOEEMRW            /BIC/DZOEEMRWP      rows:          4    ratio:          0  %
    ZOEEMRW            /BIC/DZOEEMRWT      rows:        520    ratio:          0  %
    ZOEEMRW            /BIC/DZOEEMRWU      rows:         18    ratio:          0  %
    ZOEEMRW            /BIC/EZOEEMRW       rows:    399.160    ratio:         97  %
    ZOEEMRW            /BIC/FZOEEMRW       rows:     12.520    ratio:          3  %
    Consider dimension /BIC/DZOEEMRW3.
    For this Dimension, we could not find an entry in the tables /BIC/EZOEEMRW or /BIC/FZOEEMRW for the following dim idu2019s.
    There are many DIM ids which exist in the Dimension table but do not exist in the Fact tables.
    Is it normal that this can happen? If so in which cases and is there any way to clean up these entries in the Dimension table which do not exist in the fact table.
    Any help or insight on this issue will be appreciated.
    Best Regards,
    Nitin

    Hey,
    there is a program with which you can clean up your dimension table. Search forum. But also try RSRV there is a option especially for that.
    Backround is that using process chains and you delete data from cube, dimensions are not deleted. So there could be data in the dimension which have no relation to fact table. This is many times discussed in this forum.
    Best regards,
    Peter

  • Sync: UPDATE on records that do not exist

    I have to similar cases that occur now and then:
    1. user syncs from PDA, record ends up in EQ with "Update/delete error :: no data found". (EQ DML: UPDATE)
    2. user syncs from PDA, record ends up in EQ with "integrity constraint (MIPSS.FK_EVENT__INSPECTION) violated - parent key not found" (EQ DML: INSERT)
    Data ending up in EQ is deleted from the PDA according to the user.
    Data is not accessible for deletion by anyone on the server side or on the PDA. I know that the last time this happened, the PDA user INSERTED (created) a new record (INSPECTION) and then UPDATED (edited) it before he did the sync. Is it possible that olite/Mobile server skips an INSERT when syncing or could there be something wrong with my publication?
    Marius
    Edited by: Marius H on Mar 24, 2009 4:08 AM

    The uniqueness of the seqno$$ values is within clientid and tranid$$, so it is possible for the same seqno$$ values to be in a ceq$ table for different users and/or transactions.
    In your example (assuming they are for the same clientid), tranid$$ 258 is the first upload (the tranid$$ increased for each sync for the same user), and therefore will need to be processed first. The seqno$$ value for the record for tranid$$ 258 looks like an update, rather than an insert from the range value (higher than the type I for tranid$$ 263) did you change the U to I when trying to fix the problem?
    the version$$ values in the cfm$/ceq$ tables do not always have real values
    if the record was uploaded as dmltype$$=I, the version$$ will normally be 1 (ie: first version of the record), but when the apply is done then if the PK does not exist, the record will be created and the cvr$ table inserted with version 1. If the PK does exist, then the record will be updated and the version value in the clg$ table added to.
    if a record was downloaded to the client it would have a version number from the server, and update to this would normally include this version number so that the apply can check that the update is for that version of the record when checking for conflicts where the data has changed on both the server and the client.
    If a record was created on the client and then updated, the version would probably be null as it is likely that this update would be changed to an insert when it is applied
    the -1 is possibly a second update to the same record
    When the apply process is done, the dmltype$$ from the upload is only used as a guide. for both I and U it tests if the PK exists and if so does an update, if not does an insert. for type D it checks the PK and if it exists, deletes the record, if it does not, then it ignores the record.
    The processing order is clientid, tranid$$, seqno$$

  • Display records that do not exist in another

    Hi
    I have two tables with one more than 2,00,000 and another 1,00,000 records. Both have one common filed ID. I wanan display allt eh records in table A that do not exist in table B. If i use 'not in', the system hangs. Is there anyother way to do this?
    Thanks

    I would use SomeoneElse's and Centinul's idea before trying this, but ...
    Outer join, filtering out rows where the join column isn't NULL on the outer side. If you can get this method to work it probably won't be efficient. I liked SomeoneElse's ideas best, but Centinul's idea of the MINUS is good too.
    Edited by: riedelme on May 8, 2009 12:01 PM

  • Display the date witch is not exist in my table

    Dear Sir
    I want to get the date which is not exist in this field C_DATE, when I compare between tow date, that is I let user enter from_date and to_date ,to get the date which is not exist in the CHEMICAL_CONSUMPTION table ,
    And my table structure as the flowing:
    SQL> DESC CHEMICAL_CONSUMPTION
    Name Null? Type
    C_DATE DATE
    C_JOB_NO NUMBER(8)
    C_BLOCK_TYPE VARCHAR2(10)
    C_COLOR_TYPE VARCHAR2(10)
    C_RUN_TIME NUMBER(6,2)
    C_OPER_CODE VARCHAR2(10)
    REMARKS VARCHAR2(450)
    C_YEAR NUMBER(4)
    C_DAY_REMARKS VARCHAR2(2000)
    ORDER_CODE NUMBER(12)
    RRQ_DOC_CODE NUMBER(12)
    Can I compare this table with the dual table to display the date witch is not in CHEMICAL_CONSUMPTION .
    Waiting for your valuable answer with example
    Best regards
    Jamil Alshaibani

    something like
    SELECT *
      FROM CHEMICAL_CONSUMPTION
    WHERE C_DATE BETWEEN (:BLOCK.FROMDATE AND :BLOCK.TODATE)
        OR C_DATE IS NULL;Just a guess.

  • Field does not exists Error - INSTALLATION TABLE

    We have applied ML MP9 on system database for our eRecruit Instance. We are getting a "Field does not exists" (for eg., INSTALLATION.GL) error for the components which refers to INSTALLATION table.
    The error gets resolved if we introduce a .value in PeopleCode.
    Note: Our Dev Instance is working fine which has ML MP9 applied on it.
    Please find the PeopleBooks Comments for the .value Property:
    Considerations Using INSTALLATION or OPTIONS Tables
    When using the INSTALLATION or OPTIONS table, you cannot use the Value property. You must use the old style format, not the field object format. For example, the following code is invalid:
    If %Page = Page.GP_RUN_TYPE And
    INSTALLATION.TL.Value = "N" Then
    &RS2.HideAllRows();
    Thanks & Regards
    Sudha

    Hello,
    You have to populate the same in the fieldcatalog as well, i think you have not maintained this field there.
    BR,
    Suhas
    PS: Also make it a point to follow-up on your previous post: [Error in ALV : Field Symbol not been assigned.|Error in ALV : Field Symbol not been assigned.]

  • Best approach to delete records that are not in the source table anymore.

    I have a situation where I need to remove records from dimensions that are not in the source data anymore. Right now we are not maintaing history, i.e. not using SCD but planning for the next release. If we did that it would be easy to figure the latest records. The load is nightly and records are updated and new added.
    The approach that I am considering is to join the dimension tables the the sources on keys and delete what doesn't join. However, is there perhaps some function in OWB that would allow to do this automatically on import so it can be also in place for the future?
    Thanks!

    Bear in mind that deleting dimension records becomes problematic if you have facts attached to them. Just because this record is no longer in the active set doesn't mean that it wasn't used historically, and so have foreign key constraints on it in your database. IF this is the case, a short-term solution would be to add an expiry_date field to the dimension and update the load to set this value when the record disappears rather than to delete it.
    And to do that, use the target dimension as a source table, outer join it to the actual source table on the natural key, and so your update will set expiry_date=nvl(expiry_date,sysdate) to set to sysdate if this record has not already been expired on all records where the outer join fails.
    Further consideration: what do you do if the record is re-inserted into the source table? create a new dimension key? Or remove the expiry date?
    But I will say that I am not a fan of deleting records in most circumstances. What do you do if you discover a calculation error and need to fix that and republish historical cubes? Without the historical data, you lose the ability to do things like that.

  • Action &OBJECT_ID& does not exist - when Filtering Table

    Hey Everyone,
                             I am trying to implement filtering on a table (not alv).. i have followed the example in DEMO_TABLE.
    - have put the method in WDDOMODIFYVIEW, bound the filtervalue of each column, and implememented a toggle button to show and hide filter row and gave it a filtering function.. - basically exactly like DEMO_TABLE.
    but, when i enter a filter value.. i get this error.
    The following error text was processed in the system LXA : Action &OBJECT_ID& does not exist
    The error occurred on the application server vmsaple07_LXA_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_RR_CONTROLLER~GET_ACTION of program SAPLWDR_RUNTIME_REPOSITORY
    Method: GET_ACTION_INTERNAL of program CL_WDR_CONTROLLER=============CP
    Also, something else thats not right is.. if i put an action under ONFILTER of the table.. The filter row appears when i am on Workbench... BUT when i test the application on the browser, the filter row doesnt appear!.. it did appear once, but its not appearing anymore.
    Thanks...

    hey, i figured it out.. My problem was in this part of WDDOMODIFYVIEW...
    Set or cancel the table's filter action
    IF l_is_filter_on = abap_true.
    l_table->set_on_filter( 'FILTER' ).
    ELSE.
    l_table->set_on_filter( '' ).
    ENDIF.
    You must pass the name of filtering action in the above code.. Just create an action(like below), and pass the action name to the - l_table->set_on_filter( 'FILTER' ) - in WDDOMODIFYVIEW.
    method ONACTIONFILTER.
    wd_this->table_method_hndl->apply_filter( ).
    endmethod.
    Edited by: imatari on Jul 24, 2010 7:25 PM

  • JDBC receiver error: field not exist in the table

    But the field does exist.
    Columns  Name Data Type Size Scale Not NULL Default Value
    EMPID VARCHAR2 10
    EMPNAME VARCHAR2 30
    EMPAGE VARCHAR2 3
    FLAG VARCHAR2 1
    The Database is Oracle.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'emp' (structure 'Statement1'): java.sql.SQLException: FATAL ERROR: Column 'flag' does not exist in table 'emp'.

    Does it have the field flag?? XI is case sensitive!!Check you have the correct spelling and case.
    Even if not workig use this same thread JDBC Problem Part III (SQL error?)
    Edited by: Dharamveer Gaur on Oct 10, 2008 7:56 AM

Maybe you are looking for

  • Cisco CP (ccp) on different subnets

           Hello! We currently have lots of branches around the world (at about 20) using a class A subnet segmented in many different subnets. The point is that we would like to use Cisco CP (professional) to perform some monitoring on our routers, but

  • CS5 Media Encoder - black bars of DOOOOOM

    Hi Folks, Need a little help from my Friends: When I put a 720 x 576 .mov file through the video encoder, it's got black bars on the left and right of the actual video. I've got a feeling that Adobes Encoder doesn't particularly like anything other t

  • Need help with Critical Patch Update (CPU)

    Dear experts, can someone please help me with below 2 questions : 1. Is there a way that I can find out what is included in the CPU's for application and database? I tried going through readme files but they do not list details of what part of the ap

  • Integrate system call in htmldb page

    can you please show what have to be done to display unix system command in htmldb. for example - how can i show the output for the "ls" unix command in htmldb ? Please direct to some examples. Thanx

  • Safari can't find Mail?

    Strange things happening with Safari. WHen I try to email a link to a page or the contents of a page I getting an error message stating the Safari cannpt locate Mail. However, when I click and email link in Safari Mail opens with an email ready to go