Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?

Thank you.

Regards

Gladson

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:

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question