cancel
Showing results for 
Search instead for 
Did you mean: 

problems with java class SomeBol.java in sample

Former Member
0 Kudos

hi all,

I try to create a webdynpro with a table by using a sample of the tutorials. I have a problem to create the java class SomeBOL.java. Even when I copy the sample class it does not work.

What is my problem and how do I solve it.

My sample is:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/ap... of context programming and data binding.pdf

Kind Regards,

Richard Middelburg

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Richard,

Write this line of code in the Begin others of the <yourview>.java


  //@@begin others
      public SomeBol someBol = new SomeBol(); 
  //@@end

And now check whether the method initialise is available or not.

Regards,

Jaydeep

Former Member
0 Kudos

Good hint.

If you use the class itself, you will only see static public members. If you use an instance of the class, you'll see all public members.

Richard, is this the first time you develop a Java application? If so, I suggest you go through some Java tutorials on http://java.sun.com first.

Message was edited by: Pascal Willemsen

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Pascal,

Your name sounds dutch, This is not my first java application. almost a year ago I had a car accident that cost my a brain damage. I was a long time out of the running, but now I'm trying to get back in the SAP developer world. So I need al lot of help.

Kind Regards,

Richard

Former Member
0 Kudos

Hey Richard,

you are most welcome in getting all the tips and suggestions you want. Its wonderful to be here...

Welcome again to the SAP Developer world!!!

Shubhadip

Former Member
0 Kudos

Sorry about that... Have fun developing!

Former Member
0 Kudos

Hi All,

Problem is solved!, Thanks.

Former Member
0 Kudos

Hi all,

I tried everything but nothing helps. I copied the someBOL.java to my own application and I create the file by myself. When I looked in the outline view the both everything is the same.

I made the correct declaration in the implementation sourch. but when I try to get someBOL.initialize(); it is still not in the list. I only get a list with

SomeBOL.class

customer

order

street

Only what I see as a different is that the use someBOL instead of SomeBOL. I never declared this and I don't were to do that.

Richard

Former Member
0 Kudos

Hi,

Please check weather your SomeBOL.java constains that method or not.

Please oncegaian copy whole contents into the file and try

Regards, Anilkumar

Former Member
0 Kudos

Hi all,

thanks for your quick reply. I fasing the next problem. When I created the file, I copied the text to this new file. It has the same name and the same input. Only the package is different. I have declared the package import in the webdynpro implementatiion. But when I try to get someBOL.initialize();, someBOL. gives no list containing initialize() only customer, street and order.

Please tell me what I did wrong or what did I forget?

Kind Regards

Richard Middelburg

Former Member
0 Kudos

Hi,

As mentioned page no 17 of the documnet , you need to create the file manually .

Regards, Anilkumar

Former Member
0 Kudos

Hi Richard,

For creating that class you have to do it in the navigator view which will be besides web dynpro explorer. Here right click on the package where you want to create this class, then select new-> other -> Java -> Class and then write the code.

The package will be under src->Packages->your package name

in the navigator view.

Hope this helps.

Regards,

Jaydeep

Message was edited by: Jaydeep Kalmankar