Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Contract creation : how to automatically fill in sold-to-party ID previously confirmed?

$
0
0

Hi,

 

Yes , this possible.

There are two ways:-

1. You can use Partner determination Procedure and then assign it to your transaction type.

2. You can use below code to get the confirmed account and then default it to the corresponding fields GETTER method.

 

DATA: lr_alert_srv TYPE REF TO if_crm_ic_5x_ext_alert_srv,

       lr_gdc TYPE REF TO if_crm_ui_data_context,

       lr_bo_prop TYPE REF TO cl_crm_bol_entity,

       lr_bo_cp   TYPE REF TO cl_crm_bol_entity.

* -- get current customer from GDC

    lr_gdc = cl_crm_ui_data_context_srv=>get_instance( ).

    CHECK lr_gdc IS BOUND.

    lr_bo_prop ?= lr_gdc->get_entity( name = 'CURRENTCUSTOMER' ).

    CHECK lr_bo_prop IS BOUND.

 

 

****get guid, bp number , and account name ****

    lv_guid = lr_bo_prop->get_property_as_string( iv_attr_name = 'BP_GUID' ).

    lv_gpart = lr_bo_prop->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).

    lv_acc_name = lr_bo_prop->get_property_as_string( iv_attr_name = 'ACCOUNT_NAME' ).

 

Here in lv_acc_name you will get the confirmed account name and default sold-to-party fields by setting this value in Getter method.

 

 

Hope it helps

 

Thanks

Kumar Gaurav


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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