CONNE_IMPORT_WRONG_COMP_LENG/CX_SY_IMPORT_MISMATCH_ERROR

HI,
Please Help Me
I got 101 dumps of this type in development
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
     not caught in
    procedure "INSERT_TEVEN" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    When importing the object "IFT1", the component 110 in the dataset
    had a different length from the corresponding component of the
    target object in the program "SAPUP50R".
    The length is 220 in the dataset, but 100 in the program.
i am not getting what this error is can anybody provide me the solution for this
Thanks in Advance,
pavan.

correct the length in the program, by supplying same type as appears in database table.

Similar Messages

  • DBACockpit - Dump in DB02

    Hi All,
    After import SAP_BASIS SP12, i had a dump in transaction DB02 (or DB02n) (DB02old no problem).
    The dump is:
    CONNE_IMPORT_WRONG_COMP_LENG
    CX_SY_IMPORT_MISMATCH_ERROR
    Error when attempting to IMPORT object "TAB_GE_OVERVIEW"
    Error in the ABAP Application Program
    The current ABAP program "SAPLS_ORA_COCKPIT_5" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
    not caught in
    procedure "C_ORA_DB_OV_INIT" "(FUNCTION)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    When importing the object "TAB_GE_OVERVIEW", the component 1 in the dataset
    had a different length from the corresponding component of the
    target object in the program "SAPLS_ORA_COCKPIT_5".
    The length is 20 in the dataset, but 10 in the program.
    Information on where terminated
    Termination occurred in the ABAP program "SAPLS_ORA_COCKPIT_5" - in
    "C_ORA_DB_OV_INIT".
    The main program was "SAPLS_ORA_COCKPIT_5 ".
    In the source code you have the termination point in line 36
    of the (Include) program "LS_ORA_COCKPIT_5U20".
    The termination is caused because exception "CX_SY_IMPORT_MISMATCH_ERROR"
    occurred in procedure "C_ORA_DB_OV_INIT" "(FUNCTION)", but it was neither handled locally nor declared in the RAISING clause of its signature.
    The procedure is in program "SAPLS_ORA_COCKPIT_5 "; its source code begins in
    line 1 of the (Include program "LS_ORA_COCKPIT_5U20 ".
    Any idea ?
    Thanks !!!

    Thanks for your reply Bernd.. but not is the case.
    I received the DUMP, when i try to start DB02 or DB02N.
    Before upgrade SAP_BASIS to SP12.... all works fine, but now .. only work trx DB02old (The old DB02).
    If i refresh DB02old... works fine

  • CONNE_IMPORT_WRONG_COMP_LENG error

    Hi All,
    We are at SAP ECC 5.0 SAP_BASIS 640.
    we got " CONNE_IMPORT_WRONG_COMP_LENG" dump WITH THE EXCEPTION "CX_SY_IMPORT_MISMATCH_ERROR". Could you please help me to fix this problem?
    Here is the error info:
    What happened?
    Error in ABAP application program.
    The current ABAP program "RMCY9940" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    data was not the same as the length of the data created
    in the program.
    Error in ABAP application program.
    The current ABAP program "RMCY9940" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR',
    was neither
    caught nor passed along using a RAISING clause, in the procedure
    "%_IMPORT_VARI_CLNT" "(FORM)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    When importing the object "SL_0008", the component 3 in the dataset
    had a different length from the corresponding component of the
    target object in the program "RMCY9940".
    The length is 5 in the dataset, but 2 in the program.
    User and Transaction
    Client.............. 500
    User................ "WKOEIJER"
    Language key........ "E"
    Transaction......... " "
    Program............. "RMCY9940"
    Screen.............. "RMCY9940 1000"
    Screen line......... 3
    Information on where terminated
    The termination occurred in the ABAP program "RMCY9940" in
    "%_IMPORT_VARI_CLNT".
    The main program was "RMCY9940 ".
    The termination occurred in line 82 of the source code of the (Include)
    program "RMCY9940"
    of the source code of program "RMCY9940" (when calling the editor 820).
    The program "RMCY9940" was started as a background job.
    Job name........ "RMCY9940"
    Job initiator... "WKOEIJER"
    Job number...... 06010001
    Processing was terminated because the exception "CX_SY_IMPORT_MISMATCH_ERROR"
    occurred in the
    procedure "%_IMPORT_VARI_CLNT" "(FORM)" but was not handled locally, not
    declared in the
    RAISING clause of the procedure.
    The procedure is in the program "RMCY9940 ". Its source code starts in line 82
    of the (Include) program "RMCY9940 ".
    Internal notes
    The termination occurred in the function "CheckSimpleComponent" of the SAP
    Basis System, specifically in line 1136 of the module
    "//bas/640_REL/src/krn/runt/abconne.c#21".
    The internal operation just processed is "IMPO".
    The internal session was started at 20080915060159.
    Source Code Extract
    Line SourceCde
    52 SELECT-OPTIONS SL_SPTAG FOR S994-SPTAG MODIF ID PER.
    53 SELECT-OPTIONS SL_SPWOC FOR S994-SPWOC MODIF ID PER.
    54 SELECT-OPTIONS SL_SPMON FOR S994-SPMON MODIF ID PER.
    55 SELECT-OPTIONS SL_SPBUP FOR S994-SPBUP MODIF ID PER.
    56 SELECTION-SCREEN END OF BLOCK ZEITRAUM.
    57 RANGES: PERIOTAB FOR S994-SPTAG.
    58 * Erweiterte Selektion: Abgrenzung  er Hierarchie *
    59 INCLUDE RMCS0ES2.
    60
    61 * Parameter *
    62 SELECTION-SCREEN BEGIN OF BLOCK PARAM WITH FRAME TITLE TXT_PARA.
    63 PARAMETERS: SL_WAERS LIKE RMCS0-AWAER1.
    64 * Allgemeine Parameter *
    65 INCLUDE RMCS00SP.
    66 SELECTION-SCREEN END OF BLOCK PARAM.
    67
    68 * AT SELECTION-SCREEN ON-Verarbeitung f  allgemeine Parameter *
    69 INCLUDE RMCS00SO.
    70
    71 * Ablauflogik *
    72 INCLUDE RMCS00AL .
    73
    74 * Globale Formroutinen *
    75 INCLUDE RMCS0F00 .
    76
    77 * Applikationsspezifische Formroutinen *
    78 INCLUDE RMCV0F00.
    79
    80 * Formroutinen f  Analyse 6994 *
    81 INCLUDE RMCY994F.

    programs RSVCHECK and RSVARDOC_610 can help. More info can be found in this SAP note: 153865
    http://service.sap.com/sap/support/notes/153865

  • CONNE_IMPORT_WRONG_FIELD_TYPE with exception CX_SY_IMPORT_MISMATCH_ERROR

    Hi,
    I'm implementing IS-Retail in our landscape. After the EhP4 update I've activated the SAP retail framework and when I'm trying to execute the program RSBRAN03 to change the short text after importing the latest update as per the nore 897714, I'm facing a short dump CONNE_IMPORT_WRONG_FIELD_TYPE with exception CX_SY_IMPORT_MISMATCH_ERROR.
    I've even applied the correction as per the notes 687827 and 737471 but still the problem persists.
    Can anyone of you let me know hoe to resolve this issue ?
    Regards,
    Varadharajan M

    Hi,
    This is the correction that SAP has suggested.
    *& Report  Z_RSBRAN03_DUMP_CORRECTION
    *& THIS REPORT IS USED TO DELETE THE INCORRECT ENTRIES IN TABLE INDTEXT
    *& FOR THE TABNAME = T7RUT2 AND FELDNAME = TAXLTX
    *& DO NOT USE THIS REPORT FOR ANY OTHER PURPSOSES.
    REPORT Z_RSBRAN03_DUMP_CORRECTION NO STANDARD PAGE HEADING.
    TABLES: T7RUT2 .
    DATA INDTEXT_TAB TYPE TABLE OF INDTEXT.
    SELECT *
           FROM INDTEXT
           INTO TABLE INDTEXT_tab
           WHERE SPRSL   = 'E'
           AND BRANCHE   = 'ISR'
           AND TABNAME   = 'T7RUT2'
           AND FELDNAME  = 'TAXLTX'
           AND VBRKZ     = ''.
    IF NOT INDTEXT_TAB[] IS INITIAL.
    WRITE: / 'Entries to be deleted from table INDTEXT:',SY-DBCNT.
    DELETE INDTEXT FROM TABLE INDTEXT_TAB.
    ENDIF.
    UPDATE T7RUT2
    set TAXLTX = 'ARTICLE HELP (P.217 PP.28   )'
    Where SPRSL = 'E'
    AND TAXL =  85
    AND LAND = 'RU'.
    UPDATE T7RUT2
    set TAXLTX = 'ARTICLE HELP (P.217 PP.28 -3)'
    Where SPRSL = 'E'
    and TAXL = 86
    AND LAND = 'RU'.
    After executing this program in SE38 once execute the program RSBRAN03.
    This will resolve the issue.
    NB: I thought SAP might have released a note for this correction already for this issue.
    Regards,
    Varadharajan M

  • DUMP: CONNE_IMPORT_WRONG_COMP_TYPE /CX_SY_IMPORT_MISMATCH_ERROR

    Hi guru,
    i have this dump:
    Errori run-time        CONNE_IMPORT_WRONG_COMP_TYPE 
    Eccezione              CX_SY_IMPORT_MISMATCH_ERROR
           Verific. il     18.04.2008 a  11:52:00
    Error when attempting to IMPORT object "GT_YBKPF_ALV".                        
    Causa dell'errore
    Error in ABAP application program.    
    The current ABAP program "ZAUT_PAGAMENTO_NEW" had o be terminated because one  of the statements could not be executed.
    This is probably due to an error in the ABAP program.  
    When attempting to import data, it was discovered that the data  type of the stored data was not the same as that specified in the 
    program.                                                                      
    Possibili soluzioni
    Print out the error message (using the "Print" function)and make a note of the actions and input that caused the error.                                                                      
    To resolve the problem, contact your SAP system administrator.                
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer termination messages, especially those beyond their normal deletion date.                      
    Analisi errori
    An exception occurred. This exception is dealt with in more detail below      
    . The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR',
    was neither                                                                  
    caught nor passed along using a RAISING clause, in the procedure "PRINT"      
    "(FORM)"                                                                     
    Since the caller of the procedure could not have expected this exception      
    to occur, the running program was terminated.                                
    The reason for the exception is:                                              
    When importing the object "GT_YBKPF_ALV", the component no. 97 in the         
    dataset has a different type from the corresponding component                 
    of the target object in the program "ZAUT_PAGAMENTO_NEW".                                                                               
    The data type is "N" in the dataset, but "P" in the program.                  
    Indic. per la correzione
    The exception must either be prevented, caught within the procedure "PRINT"   
    "(FORM)", or declared in the procedure's RAISING clause.                      
    To prevent the exception, note the following:                                 
    Try to find out why the type of the object is different.                      
    There are several possible reasons:                                           
    |                                                                             
    --- In the ABAP Dictionary, the type of the imported                          
    |   field has changed. Make sure that the type of the imported                
    |   field matches the length of the Dictionary field.                         
    |                                                                             
    |   If the data could not be restored from another source, this data          
    |   must be read with the "old" structure, then converted and exported        
    |   back with the new structure, so that future IMPORTs always work           
    |   with the new structure.                                                   
    |                                                                             
    --- A new program version is active, and it no longer matches the             
        dataset. Try to solve the error by generating the program                 
    "ZAUT_PAGAMENTO_NEW" again                                                   
        as follows:                                                               
        In the SAP System, choose the transaction SE38. Enter the program         
        name "ZAUT_PAGAMENTO_NEW". Then choose the "Activate" function.                                                                               
    If you cannot solve the problem yourself, please send the                     
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                                  
       To obtain this, select the "Print" function on the current screen.         
                                                                                    2. A suitable hardcopy prinout of the system log.                             
       To obtain this, call the system log with Transaction SM21                  
       and select the "Print" function to print out the relevant                  
       part.                                                                      
    3. If the programs are your own programs or modified SAP programs,            
       supply the source code.                                                    
       To do this, you can either use the "PRINT" command in the editor or        
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred            
       or which actions and input led to the error.       
    Informazioni punto di interr.
    The termination occurred in the ABAP program "ZAUT_PAGAMENTO_NEW" in "PRINT". 
    The main program was "ZAUT_PAGAMENTO_NEW ".                                                                               
    The termination occurred in line 2922 of the source code of the (Include)     
    program "ZAUT_PAGAMENTO_NEW"                                                 
    of the source code of program "ZAUT_PAGAMENTO_NEW" (when calling the editor   
    29220).                                                                      
    Processing was terminated because the exception "CX_SY_IMPORT_MISMATCH_ERROR" 
    occurred in the                                                              
    procedure "PRINT" "(FORM)" but was not handled locally, not declared in the   
    RAISING clause of the procedure.                                              
    The procedure is in the program "ZAUT_PAGAMENTO_NEW ". Its source code starts 
    in line 2777                                                                 
    of the (Include) program "ZAUT_PAGAMENTO_NEW ".     
    Can you HELP ME please!
    Best regards.
    Edited by: Diego Garofalo on Apr 18, 2008 4:52 PM

    Hi All,
    For the first time:
    Try to import the data to the IT with old structure (say 32 fields)
             IMPORT ty_data = it_temp_old FROM DATABASE indx(sp) TO wa_indx ID obj.       
       2. Append the data it_temp_old to new structure it_temp_new.         
              EXPORT ty_data = it_temp_new TO DATABASE indx(sp) TO wa_indx ID obj. 
    For the next time:  
    Edit the IMPORT statement.
             Import the data to IT with new structure (40)
             IMPORT ty_data = it_temp_new FROM DATABASE indx(sp) TO wa_indx ID obj.
       2. Perform the required Operations and export the same data with new structure(40).
             EXPORT ty_data = it_temp_new TO DATABASE indx(sp) TO wa_indx ID obj.
    Thanks,
    Shameer.

  • CONNE_IMPORT_WRONG_COMP_LENG

    Dear All,
    I am facing a problem, when my functional goes to SPRO in IMG reference, when he puts a serach term, the screen returns a runtime error: CONNE_IMPORT_WRONG_COMP_LENG.
    I have read a solution for the above on a blog,
    Solution:
    SPRO -> (F5) SAP Reference IMG -> (CTrl+F) Find -> (F7) Refresh search text index
    The above solution does not seem to work, although the scenario is exactly the same.
    Anyone has any other bright ideas????
    I would like to add here that we have just upgraded from 4.6 to ECC6

    Hi Hamid,
    For your problem please follow this link http://www.sdn.sap.com/irj/scn/advancedsearch?query=conne_import_wrong_comp_leng.
    Regards,
    Pravin

  • Abap error with exception CX_SY_IMPORT_MISMATCH_ERROR.

    Hello Everyone,
    I got the abap dump with exception CX_SY_IMPORT_MISMATCH_ERROR.
    The reason for the exception is:
    When importing the object "AUS_S000", the component no. 13 in the dataset has a different type from the corresponding component
    of the target object in the program "SAPLZTEST".
    The data type is "P" in the dataset, but "C" in the program.
    In How to correct Error:
    Try to find out why the data type is 32.
    I dont know what was the issue. When i check in ST22 i saw this message which i mentioned above Error Analysis and How to correct Error.
    Please help me out, Your inputs will be helpufl

    Hi All,
    For the first time:
    Try to import the data to the IT with old structure (say 32 fields)
             IMPORT ty_data = it_temp_old FROM DATABASE indx(sp) TO wa_indx ID obj.    
       2. Append the data it_temp_old to new structure it_temp_new.
             EXPORT ty_data = it_temp_new TO DATABASE indx(sp) TO wa_indx ID obj. 
    For the next time:  
    Edit the IMPORT statement.
             Import the data to IT with new structure (40)
             IMPORT ty_data = it_temp_new FROM DATABASE indx(sp) TO wa_indx ID obj.
       2. Perform the required Operations and export the same data with new structure(40).
             EXPORT ty_data = it_temp_new TO DATABASE indx(sp) TO wa_indx ID obj.
    Thanks,
    Shameer.

  • ABAP DUMP - CX_SY_IMPORT_MISMATCH_ERROR

    Hello Everyone,
    I got the abap dump with exception CX_SY_IMPORT_MISMATCH_ERROR.
    In Error Analasys:
    I got the message. When importing the object "15" , the component 3 in the dataset had the different length from the corresponding component of the target object in the program.
    The length is 32 in the dataset, but 20 in the program.
    In How to correct Error:
    Try to find out why the length of the object is 32.
    I tried to load the data from one SRM ODS to another SRM ODS. all the data load went fine. I was trying to logout then i got this abap dump. I dont know what was the issue. When i check in ST22 i saw this message which i mentioned above Error Analysis and How to correct Error.
    Please help me out,  Your inputs will be helpufl
    Thanks,
    Lasya.

    Hi,
    Can you give solution to this problem.
    Thank You,
    SB.

  • 2LIS_11_VAHDR-CX_SY_IMPORT_MISMATCH_ERROR

    hi gurus,
    I posted a more or less query few days back but was not able to get to the solution thne but now it has become critical then. I am extracting 2LIS_11_VAHDR using RSA3.
    The same function and the extractor is working fine in develoment and fetching records but in Q§A it gives me a short dump and error as follows:
    when importing object mc11VA0HDR_TAB structure did not match the target structure . Error occured in component no 49. possible reasons are
    1 structure is actually different.
    2 same sequence of components were exported and imported but from different include units.
    Now i have compared versions of testing and develoment and i find that everything is same.
    can you please suggest me if u have faced like nething this before?
    thanks in advance,
    Gaurav

    Hi,
    I think you have added some Z fields in your Strut MC
    and the Currecny field is refering to some other structure currency field.
    go to structure MC11VA0HDR
    then in Currency/quantity fields..check whether it is
    reference tabel  field
    MC11VA0HDR     WAERK
    also check out this...
    ABAP Dump after Extending MC02M_0ITM for data source 2LIS_02_ITM
    Regards,
    San!

  • Handling unexpected errors/situations in an ABAP program

    Hi,
    if i come across a situation where i need to handle a runtime error unexpectedly what should be my approach.
    for eg. if i build a dynamic select statement and if my logic goes wrong the program flow should proceed normally as if nothing has happened 'with out giving me a short dump' . what if im not sure about the type of error thats going to show up, is there any way?
    your help will be appreciated.
    Regards,
    ravi.

    Hi Ravi
    Not all exceptions can be overridden. FYI, Below are a list of exceptions that can be handled:
    Alphabetical Overview of Catchable Runtime Errors
    Below you find an alphabetical list of all catchable runtime errors. For each runtime error, the predefined exception class assigned is specified which is used to handle the respective runtime error as of Release 6.10. If an exception class is assigned to more than one catchable runtime error, it may contain as many message texts as required which you can find in the Class Builder on the Texts tab.
    Almost all of the runtime errors listed here are combined together in exception groups. These exception groups are also assigned those ABAP keywords at which the runtime errors contained can be caught.
    ADDF_INT_OVERFLOW
    Overflow at addition, type I ( ADD ... UNTIL / ADD ... FROM ... TO)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    ASSIGN_CASTING_ILLEGAL_CAST
    The components of the source field type and the target type which are strings, tables, or references do not have exactly the same offset and type.
    Exception class: CX_SY_ASSIGN_CAST_ILLEGAL_CAST
    ASSIGN_CASTING_UNKNOWN_TYPE
    The type specified at runtime is unknown.
    Exception class: CX_SY_ASSIGN_CAST_UNKNOWN_TYPE
    ASSIGN_FIELD_NOT_IN_RANGE
    The field is not within the RANGE specified.
    Exception class: CX_SY_ASSIGN_OUT_OF_RANGE
    BCD_FIELD_OVERFLOW
    Overflow at conversion / arithmetic operation (type P, with specified length)
    Exception class: CX_SY_CONVERSION_OVERFLOW
    BCD_OVERFLOW
    Overflow at conversion / arithmetic operation (type P)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    BCD_ZERODIVIDE
    Division by 0 (type P)
    Exception class: CX_SY_ZERODIVIDE
    COMPUTE_ACOS_DOMAIN
    Invalid call of the mathematical function ACOS
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_ASIN_DOMAIN
    Invalid call of the mathematical function ASIN
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_ATAN_DOMAIN
    Invalid call of the mathematical function ATAN
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_BCD_OVERFLOW
    Overflow at arithmetic operation (all operands of type P)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_COSH_DOMAIN
    Invalid call of the mathematical function COSH
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_COSH_OVERFLOW
    Overflow at mathematical function COSH
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_COS_DOMAIN
    Invalid call of the mathematical function COS
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_COS_LOSS
    Inaccurate result of function COS
    Exception class: CX_SY_PRECISION_LOSS
    COMPUTE_EXP_DOMAIN
    Invalid call of the mathematical function EXP
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_EXP_RANGE
    Overflow or underflow at mathematical function EXP
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_FLOAT_DIV_OVERFLOW
    Overflow at division (type F)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_FLOAT_MINUS_OVERFLOW
    Overflow at subtraction (type F)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_FLOAT_PLUS_OVERFLOW
    Overflow at addition (type F)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_FLOAT_TIMES_OVERFLOW
    Overflow at multiplication (type F)
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_FLOAT_ZERODIVIDE
    Division by 0 (type F)
    Exception class: CX_SY_ZERODIVIDE
    COMPUTE_INT_ABS_OVERFLOW
    Integer overflow while calculating the absolute value
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_INT_DIV_OVERFLOW
    Integer overflow at division
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_INT_MINUS_OVERFLOW
    Integer overflow at subtraction
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_INT_PLUS_OVERFLOW
    Integer overflow at addition
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_INT_TIMES_OVERFLOW
    Integer overflow at multiplication
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_INT_ZERODIVIDE
    Division by 0 (type I)
    Exception class: CX_SY_ZERODIVIDE
    COMPUTE_LOG10_ERROR
    Invalid call of the mathematical function LOG10
    Exception classes: CX_SY_ARITHMETIC_OVERFLOW, CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_LOG_ERROR
    Invalid call of the mathematical function LOG
    Exception classes: CX_SY_ARITHMETIC_OVERFLOW, CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_MATH_DOMAIN
    Invalid call of a mathematical function
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_MATH_ERROR
    Error performing a mathematical function
    Exception class: None since this runtime error can no longer be caught
    COMPUTE_MATH_LOSS
    Inaccurate result of a mathematical function
    Exception class: CX_SY_PRECISION_LOSS
    COMPUTE_MATH_OVERFLOW
    Overflow at a mathematical function
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_MATH_UNDERFLOW
    Underflow at a mathematical function
    Exception class: None since exception no longer occurs
    COMPUTE_POW_DOMAIN
    Invalid argument when using powers
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_POW_RANGE
    Overflow or underflow when using powers
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_SINH_DOMAIN
    Invalid call of the mathematical function SINH
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_SINH_OVERFLOW
    Overflow at mathematical function SINH
    Exception class: CX_SY_ARITHMETIC_OVERFLOW
    COMPUTE_SIN_DOMAIN
    Invalid call of the mathematical function SIN
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_SIN_LOSS
    Inaccurate result of the function SIN
    Exception class: CX_SY_PRECISION_LOSS
    COMPUTE_SQRT_DOMAIN
    Invalid call of the mathematical function SQRT
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_TANH_DOMAIN
    Invalid call of the mathematical function TANH
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_TAN_DOMAIN
    Invalid call of the mathematical function TAN
    Exception class: CX_SY_ARG_OUT_OF_DOMAIN
    COMPUTE_TAN_LOSS
    Inaccurate result of the function TAN
    Exception class: CX_SY_PRECISION_LOSS
    CONNE_IMPORT_WRONG_COMP_DECS
    Import error; a component of a structured type in the dataset has wrong decimal places
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_COMP_LENG
    Import error; a component of a structured type in the dataset has the wrong length
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_COMP_TYPE
    Import error; a component of a structured type in the dataset has the wrong type
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_FIELD_DECS
    Import error; a field in the dataset has wrong decimal places
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_FIELD_LENG
    Import error; a field in the dataset has the wrong length
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_FIELD_TYPE
    Import error; a field in the dataset has the wrong type
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_OBJECT_TYPE
    Import error; type conflict between simple and structured data types
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONNE_IMPORT_WRONG_STRUCTURE
    Import error; type conflict between structured objects
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    CONVT_CODEPAGE
    Character set conversion not possible for one or more characters
    Exception class: CX_SY_CONVERSION_CODEPAGE
    CONVT_CODEPAGE_INIT
    Conversion of texts between code pages not supported
    Exception class: CX_SY_CODEPAGE_CONVERTER_INIT
    CONVT_NO_NUMBER
    Value to be converted cannot be interpreted as a number
    Exception class: CX_SY_CONVERSION_NO_NUMBER
    CONVT_OVERFLOW
    Overflow at conversion (all types, not type P)
    Exception class: CX_SY_CONVERSION_OVERFLOW
    CREATE_DATA_ILLEGAL_DECIMALS
    Invalid value for the addition DECIMALS
    Exception class: CX_SY_CREATE_DATA_ERROR
    CREATE_DATA_ILLEGAL_INIT_SIZE
    Invalid value for the addition INITIAL SIZE
    Exception class: CX_SY_CREATE_DATA_ERROR
    CREATE_DATA_ILLEGAL_LENGTH
    Invalid value for the addition LENGTH
    Exception class: CX_SY_CREATE_DATA_ERROR
    CREATE_DATA_LEN_NOT_ALLOWED
    The addition LENGTH was used for a type other than C, N, X, or P
    Exception class: CX_SY_CREATE_DATA_ERROR
    CREATE_DATA_NOT_ALLOWED_TYPE
    The type specified dynamically in the addition TYPE is not typed completely.
    Exception class: CX_SY_CREATE_DATA_ERROR
    CREATE_DATA_UNKNOWN_TYPE
    The type specified in the addition TYPE is unknown.
    Exception class: CX_SY_CREATE_DATA_ERROR
    CREATE_OBJECT_CLASS_ABSTRACT
    You attempted to instantiate an abstract class.
    Exception class: CX_SY_CREATE_OBJECT_ERROR
    CREATE_OBJECT_CLASS_NOT_FOUND
    The class specified in the dynamic CREATE OBJECT was not found.
    Exception class: CX_SY_CREATE_OBJECT_ERROR
    CREATE_OBJECT_CREATE_PRIVATE
    You attempted to create an object of a class defined as 'CREATE PRIVATE'.
    Exception class: CX_SY_CREATE_OBJECT_ERROR
    CREATE_OBJECT_CREATE_PROTECTED
    You attempted to create an object of a class defined as 'CREATE PROTECTED'.
    Exception class: CX_SY_CREATE_OBJECT_ERROR
    DATA_LENGTH_NEGATIVE
    Invalid subfield access: Length negative
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    DATA_LENGTH_0
    Invalid subfield access: Length 0
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    DATA_LENGTH_TOO_LARGE
    Invalid subfield access: Length too large
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    DATA_OFFSET_NEGATIVE
    Invalid subfield access: Offset negative
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    DATA_OFFSET_LENGTH_TOO_LARGE
    Invalid subfield access: Offset + length too large
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    DATA_OFFSET_LENGTH_NOT_ALLOWED
    Invalid subfield access: Inadequate type
    Exception class: CX_SY_OFFSET_NOT_ALLOWED
    DATASET_CANT_CLOSE
    File could not be closed; there might be no more space in the file system.
    Exception class: CX_SY_FILE_CLOSE
    DATASET_CANT_OPEN
    File cannot be opened
    Exception class: CX_SY_FILE_OPEN
    DATASET_NO_PIPE
    OPEN DATASET with the addition FILTER is not supported on the current operating system.
    Exception class: CX_SY_PIPES_NOT_SUPPORTED
    DATASET_NO_POSITION
    Access to current read/write position of file not possible
    Exception class: CX_SY_FILE_POSITION
    DATASET_NOT_OPEN
    File not open
    Exception class: CX_SY_FILE_OPEN_MODE
    DATASET_OFFSET_TO_LARGE
    Offset specified exceeds the system limit
    Exception class: CX_SY_FILE_POSITION
    DATASET_PIPE_CLOSED
    Pipe for file closed
    Exception class: CX_SY_PIPE_REOPEN
    DATASET_READ_ERROR
    Error reading a file
    Exception class: CX_SY_FILE_IO
    DATASET_READ_ONLY
    File opened in read-only mode
    Exception class: CX_SY_FILE_OPEN_MODE
    DATASET_SEEK_ERROR
    Error positioning in a file
    Exception class: CX_SY_FILE_POSITION
    DATASET_TOO_MANY_FILES
    Maximum number of open files exceeded
    Exception class: CX_SY_TOO_MANY_FILES
    DATASET_WRITE_ERROR
    Error writing a file
    Exception class: CX_SY_FILE_IO
    DYN_CALL_METH_CLASSCONSTRUCTOR
    You attempted to call the class constructor.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_CLASS_ABSTRACT
    You attempted to call an abstract method.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_CLASS
    DYN_CALL_METH_CLASS_NOT_FOUND
    You attempted to call a method of a class that does not exist.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_CLASS
    DYN_CALL_METH_CONSTRUCTOR
    You attempted to call the instance constructor.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_EXCP_NOT_FOUND
    You attempted to catch an unknown exception.
    Exception class: CX_SY_DYN_CALL_EXCP_NOT_FOUND
    DYN_CALL_METH_NOT_FOUND
    You attempted to call an unknown method.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_NOT_IMPLEMENTED
    You attempted to call a method not yet implemented.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_NO_CLASS_METHOD
    You attempted to call an instance method through a class.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_PARAM_KIND
    You attempted to pass a parameter with a wrong parameter type.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
    DYN_CALL_METH_PARAM_LITL_MOVE
    You attempted to pass a constant actual parameter to a formal EXPORTING, CHANGING, or RETURNING parameter.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
    DYN_CALL_METH_PARAM_MISSING
    A required parameter was not filled.
    Exception class: CX_SY_DYN_CALL_PARAM_MISSING
    DYN_CALL_METH_PARAM_NOT_FOUND
    You attempted to pass an unknown parameter.
    Exception class: CX_SY_DYN_CALL_PARAM_NOT_FOUND
    DYN_CALL_METH_PARAM_TAB_TYPE
    You attempted to pass a parameter with a wrong table type.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
    DYN_CALL_METH_PARAM_TYPE
    You attempted to pass a parameter with a wrong type.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
    DYN_CALL_METH_PARREF_INITIAL
    An initial data reference was passed for a required parameter.
    Exception class: CX_SY_DYN_CALL_PARAM_MISSING
    DYN_CALL_METH_PRIVATE
    You attempted to call a private method outside.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_PROTECTED
    You attempted to call a protected method outside.
    Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
    DYN_CALL_METH_REF_IS_INITIAL
    You attempted to call a method to an initial reference.
    Exception class: CX_SY_REF_IS_INITIAL
    EXPORT_BUFFER_NO_MEMORY
    The EXPORT data cluster is too large for the application buffer.
    Exception class: CX_SY_EXPORT_BUFFER_NO_MEMORY
    EXPORT_DATASET_CANNOT_OPEN
    The IMPORT/EXPORT statement was unable to open the file.
    Exception class: CX_SY_FILE_OPEN
    EXPORT_DATASET_WRITE_ERROR
    The Export statement could not write the file.
    Exception class: CX_SY_FILE_IO
    GENERATE_SUBPOOL_DIR_FULL
    The system is unable to generate another temporary subroutine pool.
    Exception class: CX_SY_GENERATE_SUBPOOL_FULL
    IMPORT_ALIGNMENT_MISMATCH
    Import error; identical sequence of components but with type conflict or with different integration into structured data types
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    IMPORT_TYPE_MISMATCH
    Import error; only at IMPORT...FROM MEMORY | FROM SHARED BUFFER...
    Exception class: None since this runtime error can not longer be caught
    IMPORT_WRONG_END_POS
    Import error; dataset has a different length.
    Exception class: CX_SY_IMPORT_MISMATCH_ERROR
    MOVE_CAST_ERROR
    Type conflict assigning between object and/or interface references (only MOVE...?TO... or operator ?=)
    Exception class: CX_SY_MOVE_CAST_ERROR
    OPEN_DATASET_NO_AUTHORITY
    No authorization to access a file
    Exception class: CX_SY_FILE_AUTHORITY
    OPEN_PIPE_NO_AUTHORITY
    No authorization to access a file (OPEN DATASET...FILTER...)
    Exception class: CX_SY_FILE_AUTHORITY
    PERFORM_PROGRAM_NAME_TOO_LONG
    Invalid program name in the PERFORM statement
    Exception class: CX_SY_PROGRAM_NOT_FOUND
    REFI_WRONG_SECTION
    Wrong offset/length specification in the REPLACE statement
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    REPLACE_INFINITE_LOOP
    SECTION of length 0 in the REPLACE statement
    Exception class: CX_SY_REPLACE_INFINITE_LOOP
    RMC_COMMUNICATION_FAILURE
    Communication error during Remote Method Call
    Exception class: CX_SY_RMC_COMM_FAILURE
    RMC_INVALID_STATUS
    State error during Remote Method Call
    Exception class: CX_SY_RMC_INVALID_STATUS
    RMC_SYSTEM_FAILURE
    System error during Remote Method Call
    Exception class: CX_SY_RMC_SYSTEM_FAILURE
    STRING_LENGTH_NEGATIVE
    Invalid access with negative length to a string
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    STRING_LENGTH_TOO_LARGE
    Invalid access to a string (length too large)
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    STRING_OFFSET_NEGATIVE
    Invalid access with negative offset to a string
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    STRING_OFFSET_TOO_LARGE
    Invalid access to a string (offset too large)
    Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
    STRING_OFFSET_LENGTH_TOO_LARGE
    Invalid access to a string (offset + length too large)
    Exception class: CX_SY_LOCALIZATION_ERROR
    TEXTENV_CODEPAGE_NOT_ALLOWED
    Character set not released in the system (SET LOCALE...)
    TEXTENV_INVALID
    Error setting the text environment (SET LOCALE...)
    Exception class: CX_SY_LOCALIZATION_ERROR

  • Error in RSA# while extracting 2lis_02_SGR

    Hi ,
    when I tried to run 2lis_02_SGR in r3 side. I get dump. Following are details of dump.
    Runtime Errors         CONNE_IMPORT_WRONG_COMP_LENG
    Except.                CX_SY_IMPORT_MISMATCH_ERROR
    Date and Time          05/15/2009 07:30:07
    Short text
         Error when attempting to IMPORT object "MC02M_0SGR_TAB".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLMCEX" had to be terminated becaus
         come across a statement that unfortunately cannot be executed.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_IMPORT_MISMATC
          not caught in
         procedure "MCEX_BW_LO_API" "(FUNCTION)", nor was it propagated
          clause.
         Since the caller of the procedure could not have anticipated th
         exception would occur, the current program is terminated.
         The reason for the exception is:
         When importing the object "MC02M_0SGR_TAB", the component 21 in
         had a different length from the corresponding component of the
         target object in the program "SAPLMCEX".
         The length is 10 in the dataset, but 6 in the program.
    Please suggest

    Hi,
    Can you please let me know source system details (support patch level), or you trying to execute the transaction for huge no.of records? Did you fill the set up tables with properdata?
    Regards,
    Surya

  • Length error occured in IMPORT statement

    Hello everyone,
    i hv one requirment in PO print(ME23N). in po print asset no nt display without changing other format.
    so that i first copy both smartform and driver program, in that i made certain changes such that i declare the patameter p_ebeln and i comment to data statement of p_ebeln & p_ebeln = nest-objky.
    then i join asset no (anek-anln1) with the help of inner join. then in smartform i gave condition that if bsart = 'ZCAP'
    wa_final-anln1 = gv_anln1.
    endif.
    i import gv_anln1 in smartform and exported in deriver program.
    both are synthetically currect but when i gave print preview dump is occured.
    length error occured in IMPORT statement
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
         not caught in
        procedure "%GLOBAL_INIT" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        During import the system discovered that the target object has
        a different length than the object to be imported.
    what i do?

    Hello,
    can u send me coding for that?
    program line is already created for that
    and their first coding is like that,
    if gv_bsart = 'ZCAP'.
    wa_final-matnr = space.
    endif.
    and in text they fetch matnr no.
    but as per requirement they want asset no when bsart = 'ZCAP'
    how that asset no will come.
    matnr comes there is bsart is other that ZCAP, but bsart = ZCAP they want asset no instead of matnr.

  • Dump in SAPLSTXD

    Here is the short dump that I am getting while generating Z report transaction.
    Can anyone please help me out to resolve the issue?
    The current ABAP program "SAPLSTXD" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
    not caught in
    procedure "READ_TEXTLINES" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Missing RAISING Clause in Interface
    Program SAPLSTXD
    Include LSTXDFDB
    Row 75
    Module type (FORM)
    Module Name READ_TEXTLINES
    Trigger Location of Exception
    Program SAPLSTXD
    Include LSTXDFDB
    Row 106
    Module type (FORM)
    Module Name READ_TEXTLINES
    Source Code Extract
    85 DATA: l_mod LIKE tcp0c-modifier.
    86
    87 refresh rt_lines.
    88 move-corresponding rt_header to stxl_id.
    89 * only for nonunicodesystems:
    90 * the import-statment contains a conversion from internal cp
    91 * to the codepage of language key.
    92 * if the import-process can't assign a codepage it is using
    93 * the actual systzem-codepage. So we make a SET LOCALE
    94 l_unich = CL_ABAP_CHAR_UTILITIES=>charsize.
    95 IF l_unich = 1.
    96 GET LOCALE LANGUAGE l_sypr COUNTRY l_count MODIFIER l_mod.
    97 CATCH SYSTEM-EXCEPTIONS localization_errors = 1.
    98 SET LOCALE LANGUAGE rt_header-tdspras.
    99 ENDCATCH.
    100 IF sy-subrc 0.
    101 SET LOCALE LANGUAGE l_sypr.
    102 ENDIF.
    103 ENDIF.
    104
    105 if rt_header-tdtexttype is initial. "SAPscript format
    >>>>> import tline to rt_lines
    107 from database stxl(tx)
    108 client rt_client
    109 id stxl_id
    110 ACCEPTING TRUNCATION "important for Unicode->Nonunicode
    111 IGNORING CONVERSION ERRORS.
    112 else. "non-SAPscript text
    113 import tline to rt_lines
    Someone please help in finding the solution.
    Regards,
    Vikas

    Hi.,
    The import parameter passing is mismatched from the dump error.,
    check the tline  has structure same as rt_lines  and same fields are passing and get populating.,
    Thanks & Regards,
    Kiran

  • SAP_COLLECTOR_FOR_PERFMONITOR getting cancelled

    Dear All,
    The job SAP_COLLECTOR_FOR_PERFMONITOR is getting cancelled daily at 7.00 AM. It is scheduled to run hourly. All other times it finishes succesfully. But only 1 time at 7 it gets cancelled. The job log is :-
    Date       Time     Message text                                                Message class Message no. Message type                                                                               
    15.11.2007 07:00:17 Job started                                                      00           516          S       
    15.11.2007 07:00:17 Step 001 started (program RSCOLL00, variant , user ID DDIC)      00           550          S       
    15.11.2007 07:00:38 ABAP/4 processor: CONNE_IMPORT_WRONG_COMP_TYPE                   00           671          A       
    15.11.2007 07:00:38 Job cancelled                                                    00           518          A                                                                               
    the Dump is pasted below:-
                                                                                    ShrtText                                                                               
    Error when attempting to IMPORT object "HIST2".                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "RSORAT4M" had to be terminated because one of the                 
        statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                                                                               
    When attempting to import data, it was discovered that the data                             
        type of the stored data was not the same as that specified in the                           
        program.                                                                               
    Error analysis                                                                     
        An exception occurred. This exception is dealt with in more detail below       
        . The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', 
         was neither                                                                   
        caught nor passed along using a RAISING clause, in the procedure               
         "AKT_DAY_HIST2" "(FORM)"                                                      
    Since the caller of the procedure could not have expected this exception       
         to occur, the running program was terminated.                                 
        The reason for the exception is:                                               
        When importing the object "HIST2", the component no. 8 in the                  
        dataset has a different type from the corresponding component                  
        of the target object in the program "RSORAT4M".                                                                               
    The data type is "I" in the dataset, but "P" in the program.                   
    How to correct the error                                                               
        Try to find out why the type of the object is different.                           
        There are several possible reasons:                                                
    --- In the ABAP Dictionary, the type of the imported                               
    field has changed. Make sure that the type of the imported                     
    field matches the length of the Dictionary field.                              
    |   If the data could not be restored from another source, this data               
        |   must be read with the "old" structure, then converted and exported             
        |   back with the new structure, so that future IMPORTs always work                
        |   with the new structure.                                                        
        |                                                                               
    --- A new program version is active, and it no longer matches the                  
            dataset. Try to solve the error by generating the program "RSORAT4M" again     
            as follows:                                                                    
            In the SAP System, choose the transaction SE38. Enter the program              
            name "RSORAT4M". Then choose the "Activate" function.                                                                               
    ===
    It is saying
    The data type is "I" in the dataset, but "P" in the program.                              
    But it runs 23 times correctly except 1 time.
    Can Anyone help me in this please
    Thanks
    Tajinder

    Hi,
    Can u please suggest me what will be the monikey here. below is the dump for that
    154   DATA: FLAG VALUE ' '.                                                       
    155   LOOP AT HIST2.                                                              
    156     IF HIST2-DATE = DATE. DELETE  HIST2. FLAG = '*'. ENDIF.                   
    157   ENDLOOP.                                                                    
    158   IF FLAG NE SPACE. SUBTRACT 1 FROM LOGBUCH-ANZDAYS. ENDIF.                   
    159 ENDFORM.                                                                      
    160                                                                               
    161 FORM AKT_DAY_HIST2.                    " Aktualisiere Tage-Historie           
    162   PERFORM PREPARE_MONIKEY USING 36.    " Lese Historie                        
    >>>>   IMPORT HIST2 FROM DATABASE MONI(DB) ID MONIKEY.                             
    164   IF SY-SUBRC <> 0.                                                           
    165     REFRESH HIST2. CLEAR HIST2.                                               
    166     PERFORM LOGBUCH_INIT USING 1.                                             
    167     PERFORM TRANSFORM_ALL_HISTORIES.   " Strukturaenderung fuer Dynami        
    168     PERFORM PREPARE_MONIKEY USING 36.    " Lese Historie                      
    169     IMPORT HIST2 FROM DATABASE MONI(DB) ID MONIKEY.                           
    170   ENDIF.                                                                      
    171   READ TABLE HIST2 INDEX 1.                                                   
    172   IF SY-SUBRC <> 0.                                                           
    173     REFRESH HIST2. CLEAR HIST2.                                               
    174     PERFORM LOGBUCH_INIT USING 1.                                             
    175   ENDIF.                                                                      
    176   PERFORM DELETE_AKT_DAY_HIST2.        " Delete aktuellen Tag                 
    177   LOOP AT HIST2_DAY.                   " Füge neue Analyse an                 
    178     MOVE-CORRESPONDING HIST2_DAY TO HIST2.                                    
    179     APPEND HIST2.                                                             
    180   ENDLOOP.                                                                    
    181   ADD 1 TO LOGBUCH-ANZDAYS.                                                   
    182   MOVE DATE TO LOGBUCH-LASTDAY.                                               
    Thanks
    tajinder

  • Please help me with this ABAP code!

    Here is my code:
    ===
    REPORT ZCFICO6010
             line-count 65
             line-size 132
             no standard page heading.
    tables: zsopshist, zsops.
    data: old_prezsops like zsops_prev.     "PJCHG10854
    data: new_prezsops like zsops_prev.     "PJCHG10854
    data: old_zzsops like zsops.            "PJCHG10854
    data: new_zzsops like zsops.            "PJCHG10854
    data: long_rec(900) type c.             "PJCHG10854
    data: old_lzsops like long_rec.         "PJCHG10854
    data: new_lzsops like long_rec.         "PJCHG10854
    data: curr_zsops like zsops,
          prev_zsops like zsops_prev.
    data: begin of i_key,
      kostl(5),
      aedat(8),
      cputm(6).
    data:   end of i_key.
    DATA: HEADER like zsops-oprcd,
          header1(92) type c.
        header1 like header.
    data: v_field(18) type c,
          v_old(20)  type c,
          v_new(20)  type c,
          user like zsops-uname,
          date like zsops-aedtm.
    data: begin of table occurs 0,
          text(20) type c,
          oprcd like zsops-oprcd,
          field(15) type c,
          user like zsops-uname,
          date like zsops-aedtm,
          v_old(20) ,
          v_new(20) ,
        end of table.
    data: text(30) type c.
    data: begin of itab occurs 0,
           srtfd like zsopshist-srtfd,
         end of itab.
    *data: ihist like old_zsops occurs 0 with header line,
         nhist like new_zsops occurs 0 with header line.
    data: ihist like zsops occurs 0 with header line,
          nhist like zsops occurs 0 with header line.
    *&      Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK one WITH FRAME TITLE TEXT-200.
    parameters: s_oprcd  like zsops-oprcd obligatory,
                s_oprcdh like zsops-oprcd .
                    s_cputm   for sy-uzeit.
    SELECTION-SCREEN END OF BLOCK one.
    SELECTION-SCREEN BEGIN OF BLOCK three WITH FRAME TITLE TEXT-300.
    parameters:s_aedtm  like zsops-aedtm obligatory,
    s_aedtmh like zsops-aedtm obligatory.
    SELECTION-SCREEN END OF BLOCK three.
    SELECTION-SCREEN BEGIN OF BLOCK TWO WITH FRAME TITLE TEXT-100.
    PARAMETERS: P_REGSRT RADIOBUTTON GROUP RADI,
                P_ACCSRT RADIOBUTTON GROUP RADI.
    SELECTION-SCREEN END OF BLOCK TWO.
    parameters: new_date like sy-datum obligatory default '20051214'.
    *&      Top-Of-Page
    top-of-page.
    BEGIN OF BLOCK INSERTED FOR                              "JJMM20040330
      DATA: CC_LOW LIKE ZSOPS-OPRCD,
            CC_HIGH LIKE ZSOPS-OPRCD,
            FROM_DATE(10) TYPE C,
            TO_DATE(10)   TYPE C.
      WRITE: S_OPRCD TO CC_LOW NO-ZERO,
             S_AEDTM TO FROM_DATE USING EDIT MASK '__/__/____',
             S_AEDTMH TO TO_DATE USING EDIT MASK '__/__/____'.
      IF S_OPRCDH = S_OPRCD.
        CONCATENATE: 'Cost Center'(T02) CC_LOW 'Changed On'(T04) FROM_DATE
                     'To'(T03) TO_DATE 'Sort By'(T05) text INTO HEADER1
                     separated by space.
      ELSE.
        WRITE: S_OPRCDH TO CC_HIGH NO-ZERO.
        CONCATENATE: 'Cost Center'(T02) CC_LOW 'To'(T03) CC_HIGH
                     'Changed On'(T04) FROM_DATE 'To'(T03) TO_DATE
                     'Sort By'(T05) text INTO HEADER1 separated by space.
      ENDIF.
    END OF BLOCK INSERTED FOR                                "JJMM20040330
      PERFORM DISPLAY_PAGE_HEADER(ZCLT0001) USING
                                          header1            "JJMM20040330
                                            HEADER
                                            TEXT-T01
                                            header1.           "JJMM20040330
      Write:/ 'Field Changed'(C01), 25 'Old Values'(C02),
               55 'New Values'(C03), 85 'Cost Center'(C04),
              105 'Changed By'(C05), 120 'Changed On'(C06).
      uline.
    start-of-selection.
      data: time(6),
            v_subrc like sy-subrc,
            prev_format(1),
            srtfd like zsopshist-srtfd,
            srtfdh like zsopshist-srtfd.
      srtfd0(5) = s_oprcd5(5).
      srtfd+5(8) = s_aedtm.
      srtfd+13(6) = '000000'.
       if s_oprcdh is initial.
         s_oprcdh = s_oprcd.
       endif.
      srtfdh0(5) = s_oprcdh5(5).
      srtfdh+5(8) = s_aedtmh.
      srtfdh+13(6) = '999999'.
      select srtfd from zsopshist into table itab
              WHERE  SRTFD >= SRTFD
              AND    SRTFD <= SRTFDH.
    sort itab by srtfd.
      loop at itab.
        IF ITAB+5(8) GE S_AEDTM  AND                            "IJHM00001
            ITAB+5(8) LE S_AEDTMH.                              "IJHM00001
          move: itab+0(5)          to i_key-kostl,
                itab+5(8)          to i_key-aedat,
                itab+13(6)         to i_key-cputm.
          clear: v_subrc, prev_format.
          if itab+5(8) lt new_date.
            prev_format = 'X'.
            perform import_record_prev changing v_subrc.      "PJCHG10854
          else.
            perform import_record changing v_subrc.           "PJCHG10854
          endif.
          if v_subrc = 0.                                     "PJCHG10854
            perform get_final_table.
          endif.
        ENDIF.                                                  "IJHM00001
      endloop.
      if p_regsrt = 'X'.
        sort table by oprcd field date descending.
        text = 'Cost Center'(C04).
      else.
        sort table by field oprcd date descending.
        text = 'Field Changed'(C01).
      endif.
       perform write_report.
          FORM get_final_table                                          *
    form get_final_table.
    move old_zsops to ihist.           "PJCHG10854
    move new_zsops to nhist.           "PJCHG10854
      if prev_format eq 'X'.              "PJCHG10854
        move old_prezsops to ihist.       "PJCHG10854
        move new_prezsops to nhist.       "PJCHG10854
      else.                               "PJCHG10854
        move old_zzsops to ihist.         "PJCHG10854
        move new_zzsops to nhist.         "PJCHG10854
      endif.                              "PJCHG10854
      if ihist-ivcrg ne nhist-ivcrg.
       table-text = 'Invst Charge Base'(F01).
       table-field = 'IVCRG'.
        table-v_old   = ihist-ivcrg.
        table-v_new   = nhist-ivcrg.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-mgtfp ne nhist-mgtfp.
        table-field = 'MGTFP'.
        table-text = 'Mgt Fee %'(F02).
        table-v_old(12)   = ihist-mgtfp.
        table-v_new(12)   = nhist-mgtfp.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-discd ne nhist-discd.
        table-field = 'DISCD'.
        table-text = 'Cash Disc. Passback'(F03).
        table-v_old   = ihist-discd.
        table-v_new   = nhist-discd.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-consc ne nhist-consc.
        table-field = 'CONSC'.
        table-text = 'Subsidy Calc'(F04).
        table-v_old   = ihist-consc.
        table-v_new   = nhist-consc.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-payfart ne nhist-payfart.
        table-field = 'PAYFART'.
        table-text = 'Payroll Fringe'(F05).
        table-v_old(12)   = ihist-payfart.
        table-v_new(12)   = nhist-payfart.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-frbpb ne nhist-frbpb.
        table-field = 'FRBPB'.
        table-text = 'Rebate Pass Back'(F06).
        table-v_old(12)   = ihist-frbpb.
        table-v_new(12)   = nhist-frbpb.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-exlca ne nhist-exlca.
        table-field = 'EXLCA'.
        table-text = 'Excl Source27'(F07).
        table-v_old   = ihist-exlca.
        table-v_new   = nhist-exlca.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
      perform write_report.
        append table.
      endif.
      if ihist-exlcb ne nhist-exlcb.
        table-field = 'EXLCB'.
        table-text = 'Excl Source11'(F08).
        table-v_old   = ihist-exlcb.
        table-v_new   = nhist-exlcb.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
      perform write_report.
        append table.
      endif.
      if ihist-trnrate ne nhist-trnrate.
        table-field = 'TRNRATE'.
        table-text = 'Payroll Training'(F09).
        table-v_old(12)   = ihist-trnrate.
        table-v_new(12)   = nhist-trnrate.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-mgffa ne nhist-mgffa.
        table-field = 'MGFFA'.
        table-text = 'Mgt Fee Amt'(F10).
        table-v_old(12)   = ihist-mgffa.
        table-v_new(12)   = nhist-mgffa.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
      perform write_report.
        append table.
      endif.
      if ihist-mgtfi ne nhist-mgtfi.
        table-field = 'MGTFI'.
        table-text = 'Mgt Fees Indicator'(F11).
        table-v_old   = ihist-mgtfi.
        table-v_new   = nhist-mgtfi.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
      perform write_report.
        append table.
      endif.
      if ihist-eqres ne nhist-eqres.
        table-field = 'EQRES'.
        table-text = 'Eqip Res Accrual'(F12).
      table-v_old = ihist-eqres.                             "JJMM20040331
      table-v_new = nhist-eqres.                             "JJMM20040331
        table-v_old(12) = ihist-eqres.                         "JJMM20040331
        table-v_new(12) = nhist-eqres.                         "JJMM20040331
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-ovrhd ne nhist-ovrhd.
        table-field = 'OVRHD'.
        table-text = 'OverHead Amt'(F13).
        table-v_old(12)   = ihist-ovrhd.
        table-v_new(12)   = nhist-ovrhd.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
        if ihist-xaccural ne nhist-xaccural.
        table-field = 'XACCUARAL'.
        table-text = 'Exclude Accrual'(F14).
        table-v_old(12)   = ihist-xaccural.
        table-v_new(12)   = nhist-xaccural.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
      if ihist-ovrrt ne nhist-ovrrt.
        table-field = 'OVRRT'.
        table-text = 'OverHead Rate'(F15).
        table-v_old(12)   = ihist-ovrrt.
        table-v_new(12)   = nhist-ovrrt.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
        if ihist-ztbd01 ne nhist-ztbd01.
        table-field = 'ZTBD01'.
      table-text = 'Char1'.                                  "JJMM20040330
        table-text = 'Meal Allowance'(F16).                    "JJMM20040330
        table-v_old   = ihist-ztbd01.
        table-v_new   = nhist-ztbd01.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    BEGIN OF BLOCK INSERTED FOR                            "JJMM20040330
      if ihist-earlybil ne nhist-earlybil.
        table-field = 'EARLYBIL'.
        table-text = 'Early Billing'(F17).
        table-v_old   = ihist-earlybil.
        table-v_new   = nhist-earlybil.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
      if ihist-combined ne nhist-combined.
        table-field = 'COMBINED'.
        table-text = 'Combined Billing'(F18).
        table-v_old   = ihist-COMBINED.
        table-v_new   = nhist-COMBINED.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    END OF BLOCK INSERTED FOR                                "JJMM20040330
        if ihist-rate1 ne nhist-rate1.
        table-field = 'RATE1'.
        table-text = 'Rate 1'(F19).
        table-v_old(12)   = ihist-rate1.
        table-v_new(12)  = nhist-rate1.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate2.                            "JJMM20040330
      table-field = 'RATE1'.                                 "JJMM20040330
    if ihist-rate2 ne nhist-rate2.                            "JJMM20040330
        table-field = 'RATE2'.                                 "JJMM20040330
        table-text = 'Rate 2'(F20).
        table-v_old(12)   = ihist-rate2.
        table-v_new(12)   = nhist-rate2.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate3.                            "JJMM20040330
    if ihist-rate3 ne nhist-rate3.                            "JJMM20040330
        table-field = 'RATE3'.
        table-text = 'Rate 3'(F21).
        table-v_old(12)   = ihist-rate3.
        table-v_new(12)   = nhist-rate3.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate4.                            "JJMM20040330
    if ihist-rate4 ne nhist-rate4.                            "JJMM20040330
        table-field = 'RATE4'.
        table-text = 'Rate 4'(F22).
        table-v_old(12)   = ihist-rate4.
        table-v_new(12)   = nhist-rate4.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate5.                            "JJMM20040330
    if ihist-rate5 ne nhist-rate5.                            "JJMM20040330
        table-field = 'RATE5'.
        table-text = 'Rate 5'(F23).
        table-v_old(12)   = ihist-rate5.
        table-v_new(12)   = nhist-rate5.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate6.                            "JJMM20040330
    if ihist-rate6 ne nhist-rate6.                            "JJMM20040330
        table-field = 'RATE6'.
        table-text = 'Rate 6'(F24).
        table-v_old(12)   = ihist-rate6.
        table-v_new(12)   = nhist-rate6.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate7.                            "JJMM20040330
    if ihist-rate7 ne nhist-rate7.                            "JJMM20040330
        table-field = 'RATE7'.
        table-text = 'Rate 7'(F25).
        table-v_old(12)   = ihist-rate7.
        table-v_new(12)   = nhist-rate7.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate8.                            "JJMM20040330
    if ihist-rate8 ne nhist-rate8.                            "JJMM20040330
        table-field = 'RATE8'.
        table-text = 'Rate 8'(F26).
        table-v_old(12)   = ihist-rate8.
        table-v_new(12)   = nhist-rate8.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate9.                            "JJMM20040330
    if ihist-rate9 ne nhist-rate9.                            "JJMM20040330
        table-field = 'RATE9'.
        table-text = 'Rate 9'(F27).
        table-v_old(12)   = ihist-rate9.
        table-v_new(12)   = nhist-rate9.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate10.                           "JJMM20040330
    if ihist-rate10 ne nhist-rate10.                          "JJMM20040330
        table-field = 'RATE10'.
        table-text = 'Rate 10'(F28).
        table-v_old(12)   = ihist-rate10.
        table-v_new(12)   = nhist-rate10.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    *if ihist-rate1 ne nhist-rate11.                           "JJMM20040330
    if ihist-rate11 ne nhist-rate11.                          "JJMM20040330
       table-field = 'RATE11'.
        table-text = 'Rate 11'(F29).
        table-v_old(12)   = ihist-rate11.
        table-v_new(12)   = nhist-rate11.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      perform write_report.
      endif.
    The following lines of code have been added per change IJHM00001
    if ihist-rate12 ne nhist-rate12.
       table-field = 'RATE12'.
        table-text = 'Rate 12'(F30).
        table-v_old(12)   = ihist-rate12.
        table-v_new(12)   = nhist-rate12.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate13 ne nhist-rate13.
       table-field = 'RATE13'.
        table-text = 'Rate 13'(F31).
        table-v_old(12)   = ihist-rate13.
        table-v_new(12)   = nhist-rate13.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate14 ne nhist-rate14.
       table-field = 'RATE14'.
        table-text = 'Rate 14'(F32).
        table-v_old(12)   = ihist-rate14.
        table-v_new(12)   = nhist-rate14.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate15 ne nhist-rate15.
       table-field = 'RATE15'.
        table-text = 'Rate 15'(F33).
        table-v_old(12)   = ihist-rate15.
        table-v_new(12)   = nhist-rate15.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate16 ne nhist-rate16.
       table-field = 'RATE16'.
        table-text = 'Rate 16'(F34).
        table-v_old(12)   = ihist-rate16.
        table-v_new(12)   = nhist-rate16.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate17 ne nhist-rate17.
       table-field = 'RATE17'.
        table-text = 'Rate 17'(F35).
        table-v_old(12)   = ihist-rate17.
        table-v_new(12)   = nhist-rate17.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate18 ne nhist-rate18.
       table-field = 'RATE18'.
        table-text = 'Rate 18'(F36).
        table-v_old(12)   = ihist-rate18.
        table-v_new(12)   = nhist-rate18.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    The following lines of code have been added per change IJHM00002
    if ihist-rate19 ne nhist-rate19.
       table-field = 'RATE19'.
        table-text = 'Rate 19'(F37).
        table-v_old(12)   = ihist-rate19.
        table-v_new(12)   = nhist-rate19.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate20 ne nhist-rate20.
       table-field = 'RATE20'.
        table-text = 'Rate 20'(F38).
        table-v_old(12)   = ihist-rate20.
        table-v_new(12)   = nhist-rate20.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate21 ne nhist-rate21.
       table-field = 'RATE21'.
        table-text = 'Rate 21'(F39).
        table-v_old(12)   = ihist-rate21.
        table-v_new(12)   = nhist-rate21.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-rate22 ne nhist-rate22.
       table-field = 'RATE22'.
        table-text = 'Rate 22'(F40).
        table-v_old(12)   = ihist-rate22.
        table-v_new(12)   = nhist-rate22.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-intcrb ne nhist-intcrb.
       table-field = 'INTCRB'.
        table-text = 'Intcrb'(F47).                             "IJHM00002
       table-text = 'Intcrb'(F37).                            "IJHM00002
        table-v_old   = ihist-intcrb.
        table-v_new   = nhist-intcrb.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-intcrr ne nhist-intcrr.
       table-field = 'INTCRR'.
        table-text = 'Intcrr'(F48).                             "IJHM00002
       table-text = 'Intcrr'(F38).                            "IJHM00002
        table-v_old(12)   = ihist-intcrr.
        table-v_new(12)   = nhist-intcrr.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-zwktran ne nhist-zwktran.
       table-field = 'ZWKTRAN'.
        table-text = 'Data Trans End Unit'(F49).                "IJHM00002
       table-text = 'Data Trans End Unit'(F39).               "IJHM00002
        table-v_old   = ihist-zwktran.
        table-v_new   = nhist-zwktran.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-zwkbud ne nhist-zwkbud.
       table-field = 'ZWKBUD'.
        table-text = 'Wkly Budget Ind'(F50).                    "IJHM00002
       table-text = 'Wkly Budget Ind'(F40).                   "IJHM00002
        table-v_old   = ihist-zwkbud.
        table-v_new   = nhist-zwkbud.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-bcycle ne nhist-bcycle.
       table-field = 'BCYCLE'.
        table-text = 'Bcycle'(F51).                             "IJHM00002
       table-text = 'Bcycle'(F41).                            "IJHM00002
        table-v_old   = ihist-bcycle.
        table-v_new   = nhist-bcycle.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    if ihist-ovind ne nhist-ovind.
       table-field = 'OVIND'.
        table-text = 'Ovind'(F52).                              "IJHM00002
       table-text = 'Ovind'(F42).                             "IJHM00002
        table-v_old   = ihist-ovind.
        table-v_new   = nhist-ovind.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    *New code for PRSID -
    "ZN032106
      if ihist-prsid ne nhist-prsid.
       table-field = 'PRSID'.
        table-text = 'PRSID'(F53).
        table-v_old   = ihist-prsid.
        table-v_new   = nhist-prsid.
        table-user    = nhist-uname.
        table-date    = nhist-aedtm.
        table-oprcd = nhist-oprcd.
        append table.
      endif.
    *End of new code----
    "ZN032106
    endform.
          FORM write_report                                             *
    form write_report.
    loop at table.
      write:/1 table-text,   25 table-v_old(12) left-justified,
             55 table-v_new(12) left-justified, 85 table-oprcd,
             106 table-user, 120 table-date.
      uline.
    endloop.
    skip 5.                                                    "JJMM20040330
    write:/35 TEXT-R01.                                        "JJMM20040330
    reserve 1 lines.                                           "JJMM20040330
    endform.
    *&      Form  import_record
    form import_record changing p_subrc.
         import i_key
               old_zsops to old_zzsops
               new_zsops to new_zzsops
               from database zsopshist(Z1)
               id i_key.
         p_subrc = sy-subrc.
    endform.                    " import_record
    *&      Form  import_record_prev
    form import_record_prev changing p_subrc.
         import i_key
               old_zsops to old_prezsops
               new_zsops to new_prezsops
               from database zsopshist(Z1)
               id i_key.
         p_subrc = sy-subrc.
    endform.                    " import_record_prev
    *&      Form  import_record_long
    form import_record_long changing p_subrc.
         import i_key
               old_zsops to old_lzsops
               new_zsops to new_lzsops
               from database zsopshist(Z1)
               id i_key.
         p_subrc = sy-subrc.
    endform.                    " import_record_prev
    ===
    <b>Here is the dump I am getting:</b>
    ====================
      Error when attempting to IMPORT object "OLD_ZSOPS".
    An exception occurred that is explained in detail below.                      
    The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was  
      not caught in                                                                
    procedure "IMPORT_RECORD" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the         
    exception would occur, the current program is terminated.                     
    The reason for the exception is:                                              
    The object "OLD_ZSOPS" has a different object type in the dataset from        
    that in the target program "ZCFICO6010".                                      
       Try to find out why the type of the object is incorrect.                            
       There are various possible options:                                                                               
    1. The type of the imported object has changed in the Data Dictionary.              
          Make sure that the type of the imported object matches the type                  
          of the object in the Data Dictionary.                                            
          If the data cannot be restored from another source, the data must be             
          read by the 'old' structure, converted und again eported with the new            
          structure, so that future IMPORTs will always function with the new              
          structure.                                                                               
    2. A new program version is active, which no longer fits the dataset.               
          Try to solve the error generating the program "ZCFICO6010" again. This           
          works as follows: Select transaction SE38 in the SAP system. Enter               
          the program name "ZCFICO6010". Then activate the function 'Generate'.                                                                               
    If the error occures in a non-modified SAP program, you may be able to              
       find an interim solution in an SAP Note.                                            
       If you have access to SAP Notes, carry out a search with the following              
       keywords:                                                                               
    "CONNE_IMPORT_WRONG_OBJECT_TYPE" "CX_SY_IMPORT_MISMATCH_ERROR"                      
       "ZCFICO6010" or "ZCFICO6010"                                                        
       "IMPORT_RECORD"                                                                               
    If you cannot solve the problem yourself and want to send an error                  
       notification to SAP, include the following information:                                                                               
    1. The description of the current problem (short dump)                              
        To save the description, choose "System->List->Save->Local File           
    (Unconverted)".                                                                               
    2. Corresponding system log                                                                               
    Display the system log by calling transaction SM21.                       
        Restrict the time interval to 10 minutes before and five minutes          
    after the short dump. Then choose "System->List->Save->Local File            
    (Unconverted)".                                                                               
    3. If the problem occurs in a problem of your own or a modified SAP          
    program: The source code of the program                                      
        In the editor, choose "Utilities->More                                    
    Utilities->Upload/Download->Download".                                                                               
    4. Details about the conditions under which the error occurred or which      
    actions and input led to the error.                                                                               
    The exception must either be prevented, caught within proedure               
    "IMPORT_RECORD" "(FORM)", or its possible occurrence must be declared in the 
    RAISING clause of the procedure.                                             
    To prevent the exception, note the following:                                
    ==============
    Sorry forthis lengthy post but I was having difficulty explaining in previous post. All answers will be rewarded..
    Thanks.
    Mithun

    What is the structure for zsops ?
    There seems to be a compatibility issue....

Maybe you are looking for

  • What's wrong with my vi

    What's wrong with my VI? When i'm using a string control to select on the case structure, my vi  is working as expected. But when i'm using the output of the read visa which outputs exactly the same string as the one i used in control string, the vi

  • Applying XSLT to XSLT result in Java

    I want to apply a 2nd XSLT to results of ProcessXSL. I started from JDeveloper sample code: TransformedShoppingCart.java. After I have applied one XSL I want to apply another. Code snip: //Up to here have read in an xml file, //parsed it and read an

  • Oracle 9i database on slackware linux 8.0 - SOLUTION

    DO NOT GIVE UP !!! I've found the solution !!!!! You have to have glocale.tgz installed to run installer !!! Other problems are solved here: http://www.slackware.com/forum/read.php?f=2&i=106071&t=105746 http://www.slackware.com/forum/read.php?f=2&i=1

  • Trigger too Large

    Hi! friends I got a problem on my trigger. I use trigger to solve working flow control. Today,I have a problem,My Trigger program body is too large cause pls-00123 error. I look for solution on document. It said to modualize my trigger. But How to us

  • Taking family macbook to college, can I restore it to factory settings?

    My mom has a macbook air with mountain lion that the whole famly uses (1.86 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3). We all have a login with documents, files etc stored on it. To save money I'm going to take it to college instead of buying a new o