Documente Academic
Documente Profesional
Documente Cultură
blog=/pub/wlg/8974
[Difficulty]
I configured a new service process transaction type, and has defined the relevant
item categories. I tested in CRM GUI, it works perfectly. But it is not available in
new WEB UI.
Standard business role SERVICEPRO is used. The navigation bar will look like
Under the first level of "Service Orders", there are "Service Order Quotations" and
"Service Orders" two sub level options.
Nomatter which I tried, and click on New button, my transaction type does not come up.
[Analyzing]
Then I come into an analyzing of the reason, the secret comes out of
Class CL_CRM_UIU_BT_GET_PROCTYPES
Method GET_PROC_TYPE_CUST
The call stack is as following
It checks all the possible transaction types using the business transaction category
BUS2000116 which means service process using function module:
* Retrive the possible proc types for given bus type
CALL FUNCTION 'CRM_BSP_SALES_GET_PROC_TYPE'
After this function module, my new service type is within the importing table.
But later in this method, there is a logic to check whether this is a mixed transaction,
which means a transaction can be both order and quotation.
It is using
Class cl_crm_uiu_bt_get_proctypes
Method is_quotation
to judge this, it will check all the item categories related to one transaction type.
The judging logic is
At this moment, I suddenly releazed what is going on. I have defined item which
could be converted into order item, and another item which need to be copied into
another document to become an order item. This lead this document into a mixed
transaction type. Thus the WEB UI will not show it in either "Service Order Quotations"
or "Service Orders".
[Summary]
Uptil now, the root cause of my trouble should be found.
As a brief summary what I learnt from this analyzing are:
- Mixed transaction can not be handled by WEB UI, but it can be used in CRM GUI;
- the function module CRM_BSP_SALES_GET_PROC_TYPE though it is with name as
SALES, but it can be used for nearly all the business transaction categories, for
example Service process;
- there is good naming rules for the class related to business transaction handling
in new WEB UI;