4 Replies Latest reply: Sep 8, 2009 8:07 PM by Christian Ableiter RSS

Enhance Method Problem

Christian Ableiter
Currently Being Moderated

I try to enhance a Method like described in this Thread...

Re: Sending Email using the Outlook Client

 

What I did so far...

1) In Transaction "bsp_WD_CMPWB"  I choosed Component "BP_ADDR" and created a copy in our "Z_CRM" EnhancementSet

2) I used the right Mousebutton to Enhance the "BP_ADDR/StandardAddress" View

 

Two things had been automatically generated/created...

- Table Contents BSPWD_CMP_C_REPL

- Object ZL_BP_ADDR_STANDARDADDRES_CTXT

 

3) I doubleclick on the enhanced View "BP_ADDR/StandardAddress"

    (-> In the "View Layout" node the StandardAddress.html is still using the Super Classes / Implementation Class CL_BP_ADDR_STANDARDADDRES_CN01 )

4) If I go to Implemetation Class CL_BP_ADDR_STANDARDADDRESS_CN01

5) Select method "GET_P_E_MAILSMT" (and look into the coding)

   The enhancement Functions there are not working for meu2026

   I tried the Button with the (Sprial / helix)

   and the Menu "Edit"-> "Enhancement Operations"

 

Where is my error?! (I think I have to create a ZClass for the CL_BP_ADDR_STANDARDADDRES_CN01?!?!? But how to???)

 

 

I will give all possible points for good answers

Thanks for helpingu2026

  • Re: Enhance Method Problem
    Masood Imrani
    Currently Being Moderated

    Hi Chris,

    First generate a Z class for the Context Node class, selecting option REGENERATE GET_I methods by right click on the context node. Then go ahead and replace the Z class with CL in the HTML page in attributes section and save. This will save a copy of the HTML page in your BSP Application.

     

    Regards,

    Masood Imrani S.

    • Re: Enhance Method Problem
      Sijo john
      Currently Being Moderated

      Hi,

       

      In CRM 6.0  right click on the corresponding context node and  and select Regenerate GET_I Methods to change it to ZContextnode class.

       

      In CRM 7.0  right click on the corresponding context node and select Enhance to change the std context node class to ZContextnode class.

       

      such a way you will get the ZContext classes in the view layout page attributes.

       

      Regards,

      Sijo.

  • Re: Enhance Method Problem
    Ismail Shaik
    Currently Being Moderated

    hi,

     

    Some times I also faced problems to create Zclass for standard ones. But you can do one trick to create Zclass.

     

    Try to create one dummy attribute in your context node, then it will creates  automatically Zclass for that node. Later you can delete that attribute.

     

    If you get any problems to create P-getter method, then copy the IF_BSP_WD_MODEL_SETTER_GETTER~_GET_P_XYZ template method and rename to GET_P_E_MAILSMT.

     

    regards

     

    Ismail

  • Re: Enhance Method Problem
    Christian Ableiter
    Currently Being Moderated

    Thanks to you ALL...

     

    I finaly solved the Problem.

    Aftert enhancing the Context node - the ZImp. Class was not updated in my Treeview. (I opend the Transaction in the morning and found the ZImpl. Class... )

     

    Ismail: If you search in the SAP Notes (OSS) for the transaction bsp_WD_CMPWB -> you will find some notes which sound like your "Some times I also faced problems"

     

     

    Again - thanks to all...

Actions