on 04-27-2006 4:20 PM
Dear Brian / Thomas,
I bought the Advanced BSP Programming book and from the CD which came along with it, instead of importing the request, I created the CLASSES, BSP EXTENSIONS, VIEW, CONTROLLER. I created the Extensions - ZDIALOG, ZDOWNLOAD, ZF4HELP; and the related CLASSES from these folders. Also created the dummy.htm, InputHelpV2.bsp, simpleTest.htm and InputHelpV2.do in my own BSP application.
Everything seems to be fine, except InputHelpV2.bsp, which is giving as error in all the locations on the page, where it's mentioned - "model->". For Eg. model->iframe_id, it says, Field "IFRAME_ID" is unknown.
I have specified the following in the Page Attributes - model TYPE REF TO ZCL_BSP_M_INPUT_HELP.
In ZCL_BSP_M_INPUT_HELP, I have pasted the definition part of the code given in the CD under Local Class Definition and the implementation part in Local Class Implementations.
Can you please tell me, why the error on the View pops up?
Thank you.
Regards
Gladson
If you look at the class ZCL_BSP_M_INPUT_HELP in the class editor, do you see the attribute iframe_id? Is the class activated? It sounds as though from error message that you are missing the attribute.
I now see something in your question that doesn't sound quite right:
>I have pasted the definition part of the code given in the CD under Local Class Definition and the implementation part in Local Class Implementations.
These descriptions shoudl be local class defintion or implementation. That would create a local class within your global class. These should be attributes and methods of your global class directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well ZCL_ES_BSP_ELMNT_INPUT_HELP_V2 is the handler class for a BSP Extension Element. The class will be generated automatically. You then use SE80 (the class builder) to add your method implementation.
It sounds like you should perhaps spend some time reading up on the ABAP Workbench and ABAP OO before you spend too much time in the BSP world. Some of the examples from the book are quite advanced (such as the value help) and rely on a good foundation in ABAP OO - as does using BSP in general. It would be wise to invest this time and avoid frustation.
Here are some links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/ca/c035baa6c611d1b4790000e8a52bed/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/18/773e0f778211d1b4510000e8a52bed/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c9/0a1f3cb7ff2057e10000000a11402f/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/33/6a0b3c4669931ce10000000a11402f/frameset.htm
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.