Hi all,
Currently, we're implementing CRM2007 WebClient -- Service Transaction.
In the past(CRM4.0 Version), we used the function 'CRM_INTLAY_GET_PROCESS_MODE' in the BADI of SAVE Service Order to identify it's a new create order or changed order.
CALL FUNCTION 'CRM_INTLAY_GET_PROCESS_MODE'
IMPORTING
ev_process_mode = l_dialog_mode. " A created, B changed
Now, this function does not work in Web Client. So, I turned to another function 'CRM_ORDERADM_H_READ_OW' try to get the flag of process mode.
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
EXPORTING
iv_orderadm_h_guid = lv_guid_ref
IMPORTING
ES_ORDERADM_H_WRK = l_CRMT_ORDERADM_H_WRK
EV_MODE = l_dialog_mode
Yes, function 'CRM_ORDERADM_H_READ_OW' works in WebClient. But when creating new service order, the l_dialog_mode = 'B' which is same to changing an exsiting order.
So would anyone kindly help me, How to get the process mode properly in WebClient, especially in Service Order. I need to identify the order is new created or is changed.
Your comments is really appreciated.
Best Regards,
Tony