on 07-24-2014 7:22 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.