Skip to Content
Author's profile photo Former Member

BADI Implementation to provide valuehelp to settype attributes

SETTYPE attributes cannot be accessed directly from their context nodes. Neither can those context nodes be enhanced. So to provide value help to context node attributes we can follow one of the following ways:

  1. Mention Value Table while creating the attribute
  2. Manually enhance the context node
  3. Create a Z class with name ZL_PRD_<name of the settype>_CN and change the associated type of the page attribute SETTYPE.
  4. Create a BADI implementation of BADI CRM_PRDGENSET_VALUEHELP.

I described the steps for 3rd approach in my last document. Here is the steps for BADI implementation.

  • Go to SE18 and open BADI CRM_PRDGENSET_VALUEHELP

1.JPG

  • Right click on the Implementations for BAdI definition CRM_PRDGENSET_VALUEHELP and select ‘Create BAdI Implementation

2.JPG

  • Create a new Enhancement Implementation

3.JPG

4.JPG

  • Select the new enhancement created and Create a BAdI implementation

5.JPG

6.JPG

7.JPG

Note:Now if we try to activate the enhancement it gives an error message saying that there are other active implementations. So we need to maintain filter for the BADI implementation. There are two filters: OBJECT_FAMILY and PRODUCT_TYPE. We need to maintain at least one.

8.JPG

  • Redefine the method IF_EX_CRM_PRDGENSET_VALUEHELP~GET_VALUEHELP_DESCRIPTOR to provide value help.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.