Trouble with View - InputHelpV2.bsp (Advanced BSP Programming)
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?
Thomas Jung replied
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: