Hi buddy,
Base on our biz requirement, I corrected the field 'customer_type' in BADI 'CRM_COND_COM_BADI~ITEM_COMMUNICATION_STRUCTURE'. The field is filled from the sold-to's, and I change it to payer's.
When I changging the payer, debugged the BADI, it get the field correction as design. But the conditions in the order can't get changed.
The source code is as following:
CLEAR lv_partner.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ls_partner_wrk-partner_no
IMPORTING
output = lv_partner.
SELECT SINGLE bpkind INTO lv_customer_type FROM but000 WHERE partner = lv_partner.
IF lv_customer_type IS NOT INITIAL.
cs_acs_i_com-customer_type = lv_customer_type.
ENDIF.
Bobo Liu