Skip to Content
0
Former Member
Apr 18, 2012 at 12:14 AM

how to copy CL_BP_CONT_CONTACTNEWDETA_CN03 to zclass?

41 Views

Hi Experts,

I need to provide F4 help for field FUNCTION and DEPARTMENT under CONTACT TAB in Corporate Account.

I am new to CRM and OOPS concept. I read some forums regarding how I can create ZCLASS by inheriting SUPER CLASS

EX:


1.se24, enter Class name ZHY_BSP_WD_TREE_NODE_PROXY, click Create button,

2.select Class, click green tick,

3.click on the "Create inheritce" button beside my class name, this brings Superclass field, and enter CL_BSP_WD_TREE_NODE_PROXY, leave everything as defaulted: Usual ABAP Class, and Final, click save button,

4.On Methods tab, locate IF_BSP_WD_TREE_NODE~GET_CHILDREN, and put cursor on it, and click button "Redefine"

5.Now it brings me to the coding change screen, and I am able to add codings freely, and activate and save is possible and succeeded.

I found the component BP_CONT and view BP_CONT/ContactQuickCreateEF under the page attribute

builcntstdaddress TYPE REF TO CL_BP_CONT_CONTACTNEWDETA_CN03 . I need to created method in this class for FUNCTION and DEPARTMENT to create F4 help but as it the standard class I think I need to copy the super class into zclass and i need to implement code.

If I am wrong can anyone please help me how to create f4 help for these 2 fields. Do I need to really copy the class into zclass?