Hi,
please find the attachment ....
In servicespro side when user select the particular quatation error messages will display by using this badi crm_order_status and using this method before_change.i passing some parameters but field not showing in the debugging mode.i checked this functionmodules, crm_order_read, crm_order_read_ow,but our not shows that field in debugging mode ....(or) for eg.: status field is blank error message display. not blank condition successful what code i write in before_change method in badi crm_order_status......
DATA: lt_header TYPE crmt_object_guid_tab,
lt_status TYPE crmt_status_wrkt,
lt_order type CRMT_ORDERADM_H_WRKT,
lt_custmer type CRMT_CUSTOMER_H_WRKT.
IF is_status_wrk-active = 'X'.
INSERT is_status_wrk-guid INTO TABLE lt_header.
data : obj_msg type REF TO cl_bsp_wd_message_service.
CALL METHOD CL_BSP_WD_MESSAGE_SERVICE=>GET_INSTANCE
RECEIVING
RV_RESULT = obj_msg.
CALL METHOD OBJ_MSG->ADD_MESSAGE
EXPORTING
IV_MSG_TYPE = 'E'
IV_MSG_ID = 'ZMSG1'
IV_MSG_NUMBER = '000'.
ENDIF.