Quantcast
Channel: SCN : Popular Discussions - SAP CRM: Master Data & Middleware
Viewing all articles
Browse latest Browse all 1113

Custom fields giving error while replicating Equipment

$
0
0

Dear All,

 

In our IBASE we have included few Custom Fields, for that we have created SET TYPE and ATTRIBUTES. The set type now availble for 0401(Equipment). After this i have enhanced the structure CRMT_EQUI_MESS. In this structure i have included our Z fileds.

 

Now in the BADI : CRM_EQUI_LOAD, i have implemented with our Custom logic in ENLARGE_SET_TYPES. The code like below,

 

  DATA : ls_cust_set TYPE comxif_pr_s_product_set.
  DATA : ls_cust TYPE comxif_pr_product_set_cust.
  DATA : lt_cust_settype TYPE comxif_pr_product_set_cust_t.
  DATA : ls_product_s_admin  TYPE comxif_product_s_admin .


  ls_cust_set-settyp_id = 'ZSETMAX'.
  ls_product_s_admin-task = 'I'.

  ls_product_s_admin-logsys = 'RFC_ECC'.

  ls_product_s_admin-upname = sy-uname.
  ls_cust_set-s_admin = ls_product_s_admin.
  ls_cust-attr_id = 'ZMINIMAX'.
  ls_cust-value = '48000'.

  APPEND ls_cust TO lt_cust_settype.

  ls_cust_set-attributes = lt_cust_settype.
  APPEND ls_cust_set TO ct_customer_set.

Now while changing or creating new equipment in ECC side we are getting error in BDOC, the error is : User-defined set type ZSETMAX does not exist in BDOC structure

 

Can anyof one guide me, is i need to enhance anything?

 

Reg

Anandhan


Viewing all articles
Browse latest Browse all 1113

Trending Articles