cancel
Showing results for 
Search instead for 
Did you mean: 

how to copy CL_BP_CONT_CONTACTNEWDETA_CN03 to zclass?

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

ajaya_kumar
Active Participant
0 Kudos

Hi Venkat,

Your requirement is to provide an F4 help for fields Department and Function. As per understanding, you need not copy anything in this case. In the same view, there is a context node called 'BUILCONTACTPERSON', you can use this context node's 'DEPARTMENT' and 'FUNCTION' attribute as F4 is already available for these fields (Refer the GET_V method of these attributes). So, you just need to change your view configuration to have these attributes display and F4 help would be there.

Hope this would help!

Regards,

Ajay

Former Member
0 Kudos

Hi Ajay,

Can you please elaborate.. I can see the GET_V_FUNCTION_TEXT and GET_V_DEPARTMENT_TEXT

which are gery in color..Do I need to implement the code?

Can you please help me in sloving this..

ajaya_kumar
Active Participant
0 Kudos

Hi Venkat,

You need not redefine any method for your requirement. Refer the attched screen shot and use the highlighted fields in your view configuration and you will be able to see F4 value help for Department and Function.

Let me know, if it works for you.

Regards,

Ajay

Former Member
0 Kudos

How to give points for ur answer..i cant se anything go gve points

Answers (0)