on 08-25-2008 2:59 PM
All
Is it possible to call getBOM() from jsp and not from action
// gettting custom BOM
Z_CustomBusinessObjectManager myBOM =
(Z_CustomBusinessObjectManager)userSessionData.
getBOM(Z_CustomBusinessObjectManager.CUSTOM_BOM);
getting run time error when I call from jsp
Murali
Hi,
Yes you still instantiate from a jsp. But this is not a recommended way to call a FM or bom from a jsp.
Try to follow the right way to call i.e. from a Java class.
Regards,
Sateesh Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sateesh
Yes I already imported the classes
(UserSessionData,Basket and BusinessObjectManager)
Thats why I have the doubt whether I can call the getBOM() from jsp
IS IT POSSIBLE?
If yes where I'm going wrong?
Murali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Murali,
Yes, you can call you Z_BOM in JSP. Indeed, SAP standard code does the same for standard BOM.
If you have maintained the import of the Z_BOM class
<%@ page import
in your JSP properly, you should be able to get the instance.
The most probable reason could be that your configuration files are not set or maintained properly
or you did not restart the application after making a change to BOM config.
Check the BOM names in the code and the config and see if there are typos. This is also likely.
FYI, BOM-s are instantiated during application start and hence require application restart after any change.
Easwar Ram
Hi,
Check whether you have imported all the necessary java classes or not.
Regards,
Sateesh Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.