Copying Classes

Hi,
Can anybody help in copying the entire class to a text or word file with code and everything

Hello Gowri
If you have class CL_OO_SOURCE available in your system create an instance of this class (testing framework of SE24) with IMPORTING parameter CLSKEY = <name of your class>.
Its public attribute SOURCE holds the entire coding of the class.
Regards
  Uwe

Similar Messages

  • Problem in generic value copier class / reflection and generic classes

    Hello experts,
    I try to archive the following and am struggling for quite some time now. Can someone please give an assessment if this is possible:
    I am trying to write a generic data copy method. It searches for all (parameterless) getter methods in the source object that have a corresponding setter method (with same name but prefixed by "set" instead of "get" and with exactly one parameter) in the destination object.
    For each pair I found I do the following: If the param of the setter type (T2) is assignable from the return type of the getter (T1), I just assign the value. If the types are not compatible, I want to instantiate a new instance of T2, assign it via the setter, and invoke copyData recursively on the object I get from the getter (as source) and the newly created instance (as destination). The assumption is here, that the occurring source and destination objects are incompatible but have matching getter and setter names and at the leaves of the object tree, the types of the getters and setters are compatible so that the recursion ends.
    The core of the problem I am struggling with is the step where I instantiate the new destination object. If T2 is a non-generic type, this is straightforward. However, imagine T1 and T2 are parametrized collections: T1 is List<T3> and T2 is List<T4>. Then I need special handling of the collection. I can easily iterate over the elements of the source List and get the types of the elements, but I can not instantiate only a generic version of the destinatino List. Further I cannot create elements of T4 and add it to the list of T2 and go into recursion, since the information that the inner type of the destination list is T4 is not available at run-time.
    public class Source {
       T1 getA();
       setA(T1 x);
    public class Dest {
       T2 getA();
       setA(T2 x);
    public class BeanDataCopier {
       public static void copyData(Object source, Object destination) {
          for (Method getterMethod : sourceGetterMethods) {
             ... // find matching getter and setter names
             Class sourceParamT = [class of return value of the getter];
             Class destParamT = [class of single param of the setter];
             // special handling for collections -  I could use some help here
             // if types are not compatible
             Object destParam = destination.getClass().newInstance();
             Object sourceParam = source.[invoke getter method];
             copyData(sourceParam, destParam);
    // usage of the method
    Souce s = new Source(); // this is an example, I do not know the type of s at copying time
    Dest d = new Dest(); // the same is true for d
    // initialize s in a complicated way (actually JAX-B does this)
    // copy values of s to d
    BeanDataCopier.copyData(s, d);
    // now d should have copied values from s Can you provide me with any alternative approaches to implement this "duck typing" behaviour on copying properties?
    Best regards,
    Patrik
    PS: You might have guessed my overall use case: I am sending an object tree over a web service. On the server side, the web service operation has a deeply nested object structure as the return type. On the client side, these resulting object tree has instances not of the original classes, but of client classes generated by axis. The original and generated classes are of different types but have the identically named getter and setter methods (which again have incompatible parameter types that however have consistent names). On the client side, I want to simply create an object of the original class and have the values of the client object (including the whole object tree) copied into it.
    Edited by: Patrik_Spiess on Sep 3, 2008 5:09 AM

    As I understand your use case this is already supported by Axis with beanMapping [http://ws.apache.org/axis/java/user-guide.html#EncodingYourBeansTheBeanSerializer]
    - Roy

  • Copy class of a Functional Location

    Hi All,
    I have to copy the class and characteristics of one functional location to another. Found a function module PM_COPY_SUBOBJECTS but this only copies the class but not the characteristics. Kindly suggest a function module or BAPI or any method where I can get all the characteristics copied from one FL to another.
    Thanks

    Hi rakesh,
    Thanks,
    But my requirement is by changing functional location catagory,Status profile  has to change with respect to  catagory
    Thanks in advance
    VIshal

  • After copied class from standard class program getting dump.?

    HI
    Expert
    I copied to a zclass from standard class (CL_SPROJECT_SOLAR_BASE_REPORT).. if calling program through zclass program getting dump, if calliing program through above standard class then it works fine...
    error is
    The function module interface allows you to specify only fields of particular type under i_so_report. The field "ME" specified different here......
    Note:- Totaly i copied from standard class and activated it also.. even i did not changed any code inside method .but facing this dump why..
    How to achieve this...pls help me out
    Thanks
    Susanta

    I did wt ever was there given solution but still not resolved pls help me ..thanks
    showing error
    Call Method XXXXX
    DATA: lo_grid TYPE REF TO CL_SPROJECT_SOLAR_BASE_REPORT.
    lo_grid = me.
      CALL FUNCTION 'SPROJECT_EVAL_SET_SELSCREEN'
        EXPORTING
          i_o_data_container     = a_o_data_container
          i_v_reptype            = global_reptype
          i_o_sa_report          = lo_grid
          i_v_category           = category
          i_o_data_cont_lnk_docu = a_o_data_cont_lnk_docu "MP 21.07.05
    syntax error - The type of "ME" cannot be converted to the type of "LO_GRID". ..why..? did i coded incoreclty or tell me where to define that data type...

  • Copy Resources at a Class Level

    I need help. I have a requirement from our users to be able to acopy resources pertaining to a class. I am looking at the OTA User's guide and it is being mentioned that this can be done through copying an activity. I search for this functionality on OLMS and I was not able to find it. I am very new to OLMS and Im wondering if this can be done through a different responsibility or maybe there is something I need to reconfigure. The copy functionality only copy the class but not the resources.

    Hi All,
    I think that resources and sessions should be copied/edited while copying a class type object. This is a very basic and logical functionality and it should be provided
    in OLM - without this functionality there is no real use of the sessions functionality within a class object if these sessions cannot be copied along with the class.
    Due to this restriction, I would not be able to use the session's functionality but rather create a number of courses and classes achieve this but with a lot more steps/transactions.
    Anders, please tell us about your views on this functionality and its availability in the future releases.
    Others are welcome for their respective views on these functionalities.
    <<ER 3418075>>, COPY CLASS NEEDS OAF UI FLOW DUPLICATION TEMPLATE
    <<ER 3408912>>, COPYING A CLASS WITHIN A OFFERING DOES NOT COPY THE SESSIONS OF THE CLASS
    <<ER 3253567>>, COPY CATALOG ENTITES SHOULD USE TEMPLATE DUPLICATION
    <<ER 450558>>, REQUEST FOR A THE ABILITY TO COPY SCHEDULED EVENTS
    <<ER 7415888>>, COPY/EDIT RESOURCES WHILE COPYING THE CLASS
    Regards,
    Bilal Khan

  • How to replace a whole class?

    Hello,
    What is the best and fastest way to replace a whole LabView class by another one?
    I have developed an application based using a LV class. Then I have copied the class to a new location and improved it and I have developed new VIs in the copied class. Now I would like to bring that class back to the application with a simple "replace with...". But in the context menu it is grayed out.
    The reason why I copied the class to a new location is that I wanted to keep a running version of my project and to make some minor changes in the main VI. The changes in the LV class took more time and where some basic changes in concept but without affecting the names and the connector of the subVIs. So a simple replace all VI would do. Does anyone knows whether there is such a tool? Or how do I perform this?
    Regards, Jörn

    I am aware of changing a SubVI with Find and Replace. But the class which I have created consists of about 40 VIs whereby some of them are used about 10 times in the main program. So changing them manually takes some awful time. (The last time when I tried to do it this way LabView 8.6 crashed multiple times so I need to spend this awful time repeatedly.) While replacing the VIs of one class by the VIs of the new class both classes get mixed up. Easily VIs of the old class get overwritten by mistake. 
    Do you think it is reasonable to
    1. change inheritance to make the old class an ancestor of the new class
    2. change the class Ctls (which by the way cannot be searched using CTRL + F) from ancestor/old class to child/new class
    3. save the main VI
    4. undo the inheritance
    Regards, Jörn

  • Problems when reading Payroll with class CL_HRPAY99_PRR_4_PNP_REPS.

    I'm triyng to use the above class to read Payroll results.
    I'm using the code as advised, on note 699276.
    However, i'm getting an "Read Error", when executing method GET_PERNR_PAYR_RESULTS_ALLIN1.
    After some debugging, i discovered that in method Read_from_buffer (class Cl_hr_pay_buffer), the system does a direct reading to table PCL2, in search for the cluster entry key. The thing is, that instead of looking for CLUSTERID 'RP' (as it's stated on table T500L, for our MOLGA), the system look for CLUSTERID 'RX', because that value is hard-code on the CONSTRUCTOR method of class CL_HR_PAY_RESULT_99.
    As anyone been thru this kind of problem? Is this some kind of class or method bug?
    Thanks in advance for your cooperation.
    Sincerely,
    Hugo Ferreira
    PS - Here's the code of the program, so far:
    data: go_prr type ref to cl_hrpay99_prr_4_pnp_reps,
          gt_pernr_pr type H99_HR_PAY_RESULT_TAB,
          go_pernr_pr type ref to CL_HR_PAY_RESULT_PT.
    field-symbols <pernr_pr> type ref to CL_HR_PAY_RESULT.
    start-of-selection.
      call method CL_HRPAY99_PRR_4_PNP_REPS=>GET_INSTANCE
        EXPORTING
          IM_PN_BEGDA             = pn-begda
          IM_PN_ENDDA             = pn-endda
          IM_MOLGA                = '19'
          IM_ADD_RETROES_TO_RGDIR = 'X'
        IMPORTING
          ex_prr                  = go_prr
        EXCEPTIONS
          INVALID_ENTRIES         = 1.
    get pernr.
      call method go_prr->GET_PERNR_PAYR_RESULTS_ALLIN1
        EXPORTING
          im_pernr                      = pernr-pernr
        IMPORTING
          EX_PERNR_PAYROLL_RESULTS      = gt_pernr_pr
        EXCEPTIONS
          COUNTRY_VERSION_NOT_AVAILABLE = 1
          NO_AUTHORIZATION              = 2
          NO_ENTRIES_FOUND              = 3
          READ_ERROr                    = 4.
      loop at gt_pernr_pr assigning <pernr_pr>.
        go_pernr_pr ?= <pernr_pr>.
      endloop.

    Hi,
    I have to do the same thing. May I know your approach?
    This is what I thought..
    I can create a custom method in the copied class and change the clusted id and molga and replace the CONSTUCTOR method call in our custom payroll driver program.
    But I cannot see this method anywhere in our payroll driver program when I hit the Where Used List.
    I am not sure how to proceed.
    Please suggest.

  • Passing collection or array to function: shallow copy or not?

    Hello all,
    When passing a collection or an array to a function, what is most used practice to store the given collection in some class member field: reference-copy or a shallow copy?
    I believe it's frustrating to see that there is no real 'standard' about this: some developers copy the whole collection/array, others prefer to simply copy the reference. I tend to agree with the latter group:
    - it's the user's responsibility if he wants the class to use a copied version instead of the 'original' version of the collection/array.
    - most of the times, a copy is not needed, and therefor a shallow copy is pure waste of resources.
    - when nothing is known about the given collection, and there are also no restrictions on the collection to be given, it could be everything: ArrayList? HashSet? SortedSet? AnUnknownImplementation?
    reference copy:
    class ComeClass
        private ArrayList list;
        public SomeClass(ArrayList list) { this.list = list; }
    }shallow copy:
    class ComeClass
        private List list;
        public SomeClass(List list) { this.list = new ArrayList(list); }
    }What are your thoughts about this?

    basically, it's how much access you want to provides.
    public SomeClass(ArrayList list) { this.list = list; }to me, if some other class has a reference to the list object and start modifying it..Someclass internal data (the list) is also modified...thus breaking encapsulation.
    yes, in multithread enviroment, sharing the list(by reference can lead to some hard bug to debug), so it;s much safer to copy (clone) the list. Java does this and provides you the MultiCaster class to make thing easier for you.
    even with synchronization, there are issues you have to look at (such as deadlock)..you can synchronize the list, but can still run into a dead lock
    list is synchronized in class A
    class B have object (that's in list and call the list (wait due to class A synchronization)
    list tries to invoke method of class B, but wait (class B is lock)..thus..deadlock.
    it's a crued exapmle..but i think you get the point.
    the saying is that to make a safer application..declare all you object immutable or restrict access to your private data. Of course, performance wise, we have to comprise sometime.
    example..a list with over 500,000 objects..you might not want to to clone the reference.

  • How to add compiled classes for EJBs in 10.1.3

    Hi there,
    I have a problem when migrating to 10.1.3.
    I have a big library of EJBs which I use in everal projects just by copying precompiled classes and adding them in ejb-jar.xml
    In previous JDeveloper I used ant as default build procedure. My build.xml didn't compile anything. just copied precompiled classes to output dir. Thus, the new project didn't care if classes were really build from source or not.
    The problem is that new JDeveloper doesn't allow setting a ant task as defualt build procedure and, so, building and then performing a ejb-jar.xml "verify enterprise beans" I get plenty of errors saying it can't find classes. (I have to copy them manually, or run the ant task manually).
    It is very tedious to copy classes manually as they are changed often... also, the deployment profile invokes nternal building procedure (an ant task before that copied classes) but now does nothing.
    I have tried to add these classes to the src dir, the resource dirs and even classpath, but they never get copied to output directory.
    Can I solve this or JDeveloper is only prepared to handle EJBs which source code is owned in the project itself?
    Thanks,
    Ignacio

    That link is to an older version of Jdev. There is no 'Common' section in project properties and no html input path either. There is a 'Project Content' section and within that section there is a 'Web Application' option. However i get "ArrayIndexOutOfBoundsException" whenever i click on the 'Web Application' option. I suspect this is the area where i can configure the .jsp portion of my project. I can't get to it though due to the exception.

  • Changing delivered class/function module.

    Hello All,
    Can I change delivered ABAP class "CL_HRMSS_RECRUITING_WF" (add functionality to a method "CREATENBOBJECT"). Also can I change a delivered function module "HRWPC_EREC_CREATE_EREC_OBJECT" .
    My original problem.
    I am trying to pass the my object (with few attributes read from tables) using CREATENBOBJECT as a parameter to the function module "HRWPC_EREC_CREATE_EREC_OBJECT" (CREATENBOBJECT calls HRWPC_EREC_CREATE_EREC_OBJECT).
    The "CREATENBOBJECT" is called as an activity in the workflow (personnel requisition workflow).
    Kind regards.
    Srinivas

    Hi Srinivas,
    Using SE24 to copy CL_HRMSS_RECRUITING_WF  to say  Z_CL_HRMSS_RECRUITING_WF
    Copy Class:
    Path:
    1> Goto SE24
    2> Type in CL_HRMSS_RECRUITING_WF  in screen field  Object Type
    Menu path
    3> Object Type/More Functions/Copy. Here you mention your class name (ex: Z_CL_HRMSS_RECRUITING_WF)
    Copy FM:
    Path
    1> SE37
    2> Type in HRWPC_EREC_CREATE_EREC_OBJECT in screen field 'Function Module'
    Menu Path
    3> Goto Function Module/ Other Functions /Copy. TYpe in your FM say Z_HRWPC_EREC_CREATE_EREC_OBJECT
    I hope this solves your problem of copying. Herewith make your changes with these new objects.
    Please reward points if it has satisfied your requirement.
    AKJ

  • How to call Copy.GetItem Method in Excel vba function

    Hi,
    I want to use sharepoint copy services to download/upload or retreive field information of a sharepoint file.
    For that i want to sharepoint web services. One class among them is copy. I want to call the GetItem method present in that class.
    Think that modules are not installed or not found in excel vba editor tools reference library list to enable.
    So please provide me the steps from scratch to install the sharepoint library. and call the Copy class methods in my script.
    Just send me a sample vba code to accomplishes the same requirement. I appreciate the help.
    Regards,
    SUBBA

    Hi SUBBA,
    The following articles for your reference:
    VBA - Download files from sharepoint
    http://ckannan.blogspot.com/2012/09/vba-download-files-from-sharepoint.html
    Using Microsoft Windows SharePoint Services with the Microsoft Office System
    http://msdn.microsoft.com/en-us/library/office/aa159897(v=office.11).aspx
    How to download a file from a Sharepoint server via Excel VBA?
    http://www.justanswer.com/computer-programming/7ntq7-download-file-sharepoint-server-via-excel-vba.html
    About the Excel VBA questions, you can also post it to Excel for Developers Forum, you will get more help and confirmed answers from there.
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev<o:p></o:p>
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Value class implementations stomped

    Forgive me if this question has been posted before; I'm relatively new here and there's so much traffic it's hard to keep up with everything. Also forgive me if this is a stupid question; I'm new to JAX-RPC and Web services and there hasn't been a lot of documentation to help me get up to speed.
    I'm trying to understand whether some behavior I'm seeing is intentional or a bug, and if intentional, why it's happening.
    Let's say for a moment that I have a class called Foo that does some work and I want to make it into a Web service. Foo has one interesting method, doSomething(), that returns an instance of class Bar. I create new FooServiceIntf and FooServiceImpl classes that define a doSomething() method that turns around and calls Foo.doSomething() to do the actual work. [I'm trying to simulate wrapping an existing API.]
    The problem is that while Bar conforms to the "value type" restrictions in the JAX-RPC spec, it isn't a simple bearer of data; it includes some implementation that's used by Foo.doSomething() to create the return values.
    I use deploytool (J2EE 1.4 beta 2) to create a portable WAR file with Foo, Bar, FooServiceIntf, and FooServiceImpl (plus the requisite XML files). This seems to work fine. Deploying it with deploytool also appears to work fine, but when I try to call the service, it barfs with a NoSuchMethodError because Foo is trying to call a method on Bar that no longer exists. I investigate and discover that this is because deploytool has overwritten my version of Bar with its own version of Bar that just includes the getter and setter methods for the data members that get sent over the wire.
    In other words, it appears that instead of just using the Bar.class file from the original WAR file, it's creating a whole new Bar.class from the WSDL description in the WAR file. I've noticed wscompile does this too. It appears to only happen if Bar happens to exist in the package where wscompile writes all the classes it generates (specified by config.xml when you're running wscompile; I'm guessing deploytool defaults this to the location of the service endpoint interface class [FooServiceIntf in my case]).
    If I'm writing a client and all I have is the WSDL file, this is what I'd want wscompile to do, and I can imagine situations where I'd want wscompile and deploytool to do this with the server as well. But it doesn't seem like this is what it should ALWAYS do; if I've supplied a perfectly good Bar.class, it should just use it.
    Is this a bug in wscompile and deploytool, or is this intentional? And if it's intentional, why is this the right behavior and what am I doing wrong?
    Thanks in advance for any help you can give...
    --Rich Gillam
    Language Analysis Systems, Inc.

    Rich,
    I can't anwser your deploytool questions because I always use Ant to build and deploy my apps. However, I have a few suggestions that may help:
    wscompile will only stomp your files if you run it with the "-gen:client" option. Check deploytool for an option you can set to ensure that wscompile runs only with "-gen:server".
    In your previous post, you mention that you can't use Ant. However, JWSDP's JAX-RPC tools are all command-line oriented. Just add JWSDP_HOME/jaxrpc/bin to your PATH and you can run wscompile and wsdeploy (which is just a wrapper for "wscompile -gen:server") from a shell script, batch file, or makefile.
    Basic deployment sequence using JWSDP RI:
    1. Write and compile service interface, service implementation and supporting classes.
    2. Copy classes to WEB-INF/classes and jar WEB-INF into a war file.
    3. Run wsdeploy (which reads from the war file created in step 2) to create WSDL and service ties in deployable war file (wsdeploy reads config info from jaxrpc-ri.xml).
    4. Deploy the new war file using your app server's usual technique.
    The JWSDP tutorial's JAX-RPC section has a good overview of these steps. See http://java.sun.com/webservices/tutorial.html
    For details on wscompile and wsdeploy, see http://forum.java.sun.com/thread.jsp?thread=298464&forum=331&message=1185325
    Hope this helps,
    Mike

  • Error in class

    Hi All,
    i' have copy class CL_ALV_TABLE_CREATE into Y_CL_ALV_TABLE_CREATE by the use of tool bar option.
    but when i use y class then i got a error n when i use original class then it's working fine.
    i debugged my application n find that in y class i'm not getting dy_table values.
    pls suugest me possible solution.
    call method y_cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = ifc
                   importing
                     ep_table        = dy_table.
    regards,
    anuj

    Hi,
    Check this code.
    TYPE-POOLS: slis.
    DATA: it_fcat TYPE slis_t_fieldcat_alv,
    is_fcat LIKE LINE OF it_fcat.
    DATA: it_fieldcat TYPE lvc_t_fcat,
    is_fieldcat LIKE LINE OF it_fieldcat.
    DATA: new_table TYPE REF TO data.
    DATA: new_line TYPE REF TO data.
    FIELD-SYMBOLS: <l_table> TYPE ANY TABLE,
    <l_line> TYPE ANY,
    <l_field> TYPE ANY.
    * Build fieldcat
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_structure_name = 'SYST'
    CHANGING
    ct_fieldcat = it_fcat[].
    LOOP AT it_fcat INTO is_fcat WHERE NOT reptext_ddic IS initial.
    MOVE-CORRESPONDING is_fcat TO is_fieldcat.
    is_fieldcat-fieldname = is_fcat-fieldname.
    is_fieldcat-ref_field = is_fcat-fieldname.
    is_fieldcat-ref_table = is_fcat-ref_tabname.
    APPEND is_fieldcat TO it_fieldcat.
    ENDLOOP.
    * Create a new Table
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = it_fieldcat
    IMPORTING
    ep_table = new_table.
    * Create a new Line with the same structure of the table.
    ASSIGN new_table->* TO <l_table>.
    CREATE DATA new_line LIKE LINE OF <l_table>.
    ASSIGN new_line->* TO <l_line>.
    * Test it...
    DO 30 TIMES.
    ASSIGN COMPONENT 'SUBRC' OF STRUCTURE <l_line> TO <l_field>.
    <l_field> = sy-index.
    INSERT <l_line> INTO TABLE <l_table>.
    ENDDO.
    LOOP AT <l_table> ASSIGNING <l_line>.
    ASSIGN COMPONENT 'SUBRC' OF STRUCTURE <l_line> TO <l_field>.
    WRITE <l_field>.
    ENDLOOP.
    Regards,
    Shailaja

  • "cannot resolve symbol" when compiling a class that calls methods

    I am currently taking a Intro to Java class. This problem has my instructor baffled. If I have two classes saved in separate files, for example:
    one class might contain the constructor with get and set statements,
    the other class contains the main() method and calls the constructor.
    The first file compiles clean. When I compile the second file, I get the "cannot resolve symbol error" referring to the first class.
    If I copy both files to floppy and take them to school. I can compile and run them with no problem.
    If I copy the constructor file to the second file and delete the "public" from the class declaration of the constructor, it will compile and run at home.
    At home, I am running Windows ME. At school, Windows 2000 Professional.
    The textbook that we are using came with a CD from which I downloaded the SDK and Runtime Environment. I have tried uninstalling and reinstalling. I have also tried downloading directly from the Sun website and still the error persists.
    I came across a new twist tonight. I copied class files from the CD to my hard drive. 4 separate files. 3 of which are called by the 4th.
    I can run these with no problem.
    Any ideas, why I would have compile errors????
    Thanks!!

    Oooops ... violated....
    Well first a constructor should have the same name as the class name so in our case what we have actually created is a static method statementOfPhilosophy() in class SetUpSite and not a constructor.
    Now why does second class report unresolved symbol ???
    Look at this line
    Class XYZ=new XYZ();
    sounds familiar, well this is what is missing from your second class, since there is no object how can it call a method ...
    why the precompiled classes run is cuz they contain the right code perhaps so my suggestion to you is,
    1) Review the meaning and implementation of Constructors
    2) Ask your instructor to do the same ( no pun intended ... )
    3) Check out this for understanding PATH & CLASSPATH http://www.geocities.com/gaurav007_2000/java/
    4) Look at the "import" statement, when we have code in different files and we need to incorporate some code in another it is always a good idea to use import statement, that solves quite a few errors.
    5) Finally forgive any goof up on this reply, I have looked at source code after 12 months of hibernation post dot com doom ... so m a bit rusty... shall get better soon though :)
    warm regards and good wishes,
    Gaurav
    CW :-> Mother of all computer languages.
    I HAM ( Radio-Active )
    * OS has no significance in this error
    ** uninstalling and reinstalling ? r u nuttttttts ??? don't ever do that again unless your compiler fails to start, as long as it is giving a valid error it is working man ... all we need to do is to interpret the error and try to fix the code not the machine or compiler.

  • Homogeneous copy error Import Error

    Hi guys,
    I am making astyle='mso-spacerun:yes'>  homogeneous class=SpellE>copy for a NetWeaver
    7.0 SR2 (update hardware),style='mso-spacerun:yes'>  the class=SpellE>source system is
    OS400 V5R4, SAP ID=BWP, and the target class=SpellE>system is V6R1, SAP ID=PBI (class=SpellE>choose a  class=SpellE>different ID).The target class=SpellE>system in the past
    was the ERP PRD, class=SpellE>but it was
    uninstalled.
    The installation
    process (copy class=SpellE>process), in the target class=SpellE>system, stops in class=SpellE>the step 8 of 29 IMPORT ABAP, class=SpellE>the error is:
    ERROR 2009-06-06 09:48:58
    CJS-30023  class=SpellE>Process call 'class=SpellE>usrsapPBISYSclass=SpellE>exerunR3load -class=SpellE>dbcodepage 4102 -i test_MIGKEY.cmd -l test_MIGKEY.log -K' class=SpellE>exits with error class=SpellE>code 2. For details
    see log file(s)
    test_MIGKEY.log.
    The test_MIGKEY.log class=SpellE>is:
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: START OF LOG:
    20090606083155
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>sccsid @(#) $Id: //class=SpellE>bas/700_REL/src/R3ld/R3load/R3ldmain.c#14
    $ SAP
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>version
    R7.00/V1.4
    Compiled Feb
    23 2008 04:10:29
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load -class=SpellE>dbcodepage 4102 -i test_MIGKEY.cmd -l test_MIGKEY.log -K
    DbSl Trace: SQL-Error -204 in class=SpellE>function db_open
    DbSl Trace: SQL-Error -204 in class=SpellE>function db_open
    (DB) INFO: connected class=SpellE>to DB
    (TFH) ERROR: Unable class=SpellE>to open N: mpEXPHMABAPDATASAPAPPL1_1_1.TOC
    (TFH) ERROR: OS error message: No class=SpellE>such file or
    directory
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>job finished with
    1 error(s)
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: END OF LOG:
    20090606083155
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: START OF LOG:
    20090606083450
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>sccsid @(#) $Id: //class=SpellE>bas/700_REL/src/R3ld/R3load/R3ldmain.c#14
    $ SAP
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>version
    R7.00/V1.4
    Compiled Feb
    23 2008 04:10:29
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load -class=SpellE>dbcodepage 4102 -i test_MIGKEY.cmd -l test_MIGKEY.log -K
    DbSl Trace: SQL-Error -204 in class=SpellE>function db_open
    DbSl Trace: SQL-Error -204 in class=SpellE>function db_open
    (DB) INFO: connected class=SpellE>to DB
    (TFH) ERROR: Unable class=SpellE>to open N: mpEXPHMABAPDATASAPAPPL1_1_1.TOC
    (TFH) ERROR: OS error message: No class=SpellE>such file or
    directory
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>job finished with
    1 error(s)
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: END OF LOG:
    20090606083451
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: START OF LOG:
    20090606083456
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>sccsid @(#) $Id: //class=SpellE>bas/700_REL/src/R3ld/R3load/R3ldmain.c#14
    $ SAP
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>version
    R7.00/V1.4
    Compiled Feb
    23 2008 04:10:29
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load -class=SpellE>dbcodepage 4102 -i test_MIGKEY.cmd -l test_MIGKEY.log -K
    DbSl Trace: SQL-Error -204 in class=SpellE>function db_open
    DbSl Trace: SQL-Error -204 in class=SpellE>function db_open
    (DB) INFO: connected class=SpellE>to DB
    (TFH) ERROR: Unable class=SpellE>to open N: mpEXPHMABAPDATASAPAPPL1_1_1.TOC
    (TFH) ERROR: OS error message: No class=SpellE>such file or
    directory
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>job finished with
    1 error(s)
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: END OF LOG:
    20090606083456
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: START OF LOG:
    20090606083608
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>sccsid @(#) $Id: //class=SpellE>bas/700_REL/src/R3ld/R3load/R3ldmain.c#14
    $ SAP
    /usr/sap/PBI/SYS/class=SpellE>exe/run/R3load: class=SpellE>version
    R7.00/V1.4

    Hi Alberto,
    I still think access to this file is not as it should be.
    Can you open it from the windows host ?
    Should it not be: /tmp/EXPHM/ABAP/DATA/SAPAPPL1_1_1.TOC ??
    Another error is the DbSl Trace: SQL-Error -204 in function db_open
    Is it the NT client that can not connect to the db2/400 DB?
    Have you tried deleting the SQL packages?
    And updating the target kernel lib?
    Including R3load
    What does any OS job log tell you?
    Kind regards,
    Paul Hoogendoorn

Maybe you are looking for