cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer configuration data to subitems in quote in CRM

0 Kudos

Hi All,

    We are using the method CHANGE_FIELDS_AFTER_CONFof the  BADI CRM_CONFIG_BADI to transfer values from configurator to Quote. Only the main items are transferred. Can anyone suggest how to transfer it to the subitems also.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anil,

I am not sure wether it will work or not but you can try.

You get IV_ITEM_GUID in this method.

You can call CRM_ORDER_READ to get all items and then you can change the configuration.

You can use below code to get all the items from buffer.

field-symbols: <gt_orderadm_h_wrk>         type crmt_orderadm_h_wrkt.
  assign ('(SAPLCRM_ORDERADM_I_OB)GT_ORDERADM_I_WRK')   to FIELD-SYMBOL(<gt_orderadm_i_wrk>).
  if sy-subrc ne 0.
    CALL FUNCTION 'CRM_ORDERADM_I_READ_OB'
      EXCEPTIONS
        others = 3.
    assign ('(SAPLCRM_ORDERADM_I_OB)GT_ORDERADM_I_WRK')   to <gt_orderadm_i_wrk>.
  endif.

After you have got all the items you can try adding configuration values in it.

Regards,

Naresh