BOM Class

Hello all,

I have created a class for Bill Of Material creation, and put the logic in run method, then call the run method through main method,then i create i job and call the main method of my class but nothing is happening, then i use the debugger, by using debugger i came to know that it is not going to the main method of my class.

can any one suggest me the solution

Thanks & Regards

Pranav Gupta

If you are calling it from the code try to avoid using the main call direclty rather use another static method to run the business logic. Main is used when class is called from the menuItem.

Hi Kranthi,

First of all thanks for your reply

I have also tried to call the run method directly, but it not sounds good. how should i make it to call my class in the job.

Thanks & Regards

Pranav Gupta