Skip to Content

In the first part of this blog series, I gave you background information on how to use external libraries in the SAP DC world. Now it’s time for a real example. I will show you step by step how to create and use a standalone external library and use it in your own application.

 

image

 

image

 

image 

image 

image 

image

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

  1. FAHAD HAMSA
    Hi Raphael,
    This is a very helpful blog and this was the one that I was looking for.
    But I am facing one problem while doing this. When I used the library DC in my application, It is not giving any error in design time, but at runtime, I am getting classnot found Exception.
    Can you tell me where I am missing.

    Thanks,
    Fahad Hamsa

    (0) 
  2. FAHAD HAMSA
    Hi,
    First I will clarify myself, what I did. 🙂
    1. Created Library Project and copied the jar file to library folder
    2. Created compilation and assembly public part for this library DC
    3. Added the jar file to both of these public parts as Archive
    4. Created an ear project and added the library dc to the this project with dependency as deploy time and runtime. [The COMPILATION and ASSEMBLY PPs were alredy there with dependency as Buid Time, by default]
    5. Built the ear project and deployed. One thing I noted was
    ja410/extlib/ear

    is not present in the application-j2ee-engine.xml file.
    6. In the webdynpro application, I added the library component with dependency as designtime,Deploytime and runtime as checked.
    Here also, ASSEMBLY and COMPILATION PPs were present with dependency as Build time by default.

    When I deploy and run this webdynpro application, I am still getting classnotfound exception. Can you suggest me where I am doing wrong..
    Thanks,
    Fahad Hamsa

    (0) 
    1. FAHAD HAMSA
      Hi Raphel,
      My problem got solved.
      I created archive of the webdynpro project and deplyed. I was not doing build operation in the webdynpro project.

      Thanks for your helpful blog and support.

      Regards,
      Fahad Hamsa

      (0) 
  3. Srikanth Sagiraju
    I am using Netweaver 7.0 and NOT 7.1

    Do you have a similar document for acheiving the same on 7.0 ? (I am trying to emulate the steps given here and running into problems)

    Any help will be greatly appreciated

    regards
    -Sri

    (0) 
  4. Srikanth Sagiraju
    I am using Netweaver 7.0 and NOT 7.1

    Do you have a similar document for acheiving the same on 7.0 ? (I am trying to emulate the steps given here and running into problems)

    Any help will be greatly appreciated

    regards
    -Sri

    (0) 

Leave a Reply