Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

Some special points in Get_V methods in advance searches

$
0
0

GET_V methods locations:

 

We all know, if we want to add value help to a field, or replace standard value help to a field, we can make use of GET_V method. For example, in the sales order creation screen, the 'Status' field is a DDLB field, it has some values:

1. status ddlb screen.PNG

 

This status field comes from context node BTSTATUSH of view BT115H_SLSO/Details:

2. status get_v method.PNG

If we want to change standard value help, we can make enhancement on component BT115H_SLSO and view 'Details', enhance context node BTSTATUSH and redefine method CL_BT115H_S_DETAILS_CN05->GET_V_STATUS_CURRENT.  In the same way, we can also add value helps by adding GET_V methods to those fields which have no value help originally.

 

However, there are some special cases in which the GET_V methods are not attached to the context node classes. For example, for the search field 'Sales Org. ID' has a value help:

3. sales org field.PNG

This field is attribute STRUCT.SALES_ORG of context node BTQSLSORD in view BT115S_SLSO/SlsOrdSQ. This attribute has no GET_V method:

4 sales org.PNG

This is because there is a method GET_V_SALES_ORG in class CL_BT115S_S_SLSORDSQ_IMPL which actually locates in class CL_BTSLS_ADVS_CNTRL:

5. get_v in IMPL.PNG

Of course, class CL_BT115S_S_SLSORDSQ_IMPL can also redefine its own logics in the GET_V methods. For example, CL_BTSLS_ADVS_CNTRL->GET_V_EMPLOYEE_RESP is redefine into CL_BT115S_S_SLSORDSQ_IMPL->GET_V_EMPLOYEE_RESP.

6 own get_vmethods.PNG

 

In SERVICEPRO business role, in search service order, GET_V methods exist in CL_BT116S_S_ADVANCEDSP_IMPL/CL_BTSRV_ADVS_CNTRL too.

7 service pro.PNG

 

GET_V methods types:

Inside the GET_V methods, there are different types to render the value helps:

  1. make use of value help id. The example is CL_BT116S_S_ADVANCEDSP_IMPL/CL_BTSRV_ADVS_CNTRL->GET_V_SALES_ORG8-1 value help ID.PNG
  2. make use of ddlb. The example is CL_BT116S_S_ADVANCEDSP_IMPL/CL_BTSRV_ADVS_CNTRL->GET_V_SERVICE_ORG
    8-2 ddlb.PNG
  3. make use of event triggers. For example, in method CL_BT116S_S_ADVANCEDSP_IMPL/CL_BTSRV_ADVS_CNTRL->GET_V_CATEGORY_ID, it defines event 'SELECT_CATEGORY' (if_crm_srqm_uiu_const=>gc_event_select_category).
    8-4 trigger event.PNG
    Of course, the event should be handled somewhere. Here it is CL_BTSRV_ADVS_CNTRL->DO_HANDLE_EVENT.
    8-5 event methods.PNG

 

 

Another usage for the GET_V methods are controlling operaters: For example: in method CL_BT116S_S_ADVANCEDSP_IMPL/CL_BTSRV_ADVS_CNTRL->GET_V_SERVICE_ID.
8-3 operators.PNG

 

 

 

 

 



Viewing all articles
Browse latest Browse all 4552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>