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

Re: territory for transactions

$
0
0

Hi ,

 

This is possible in the following way

a) Use CRM_ORDER_READ to read partner details by passing requested_objects = 'PARTNER'

b) Then read the entry with Partner_fct = Employee Responsible.

c) ls_partner_attribute-ref_guid = ls_oppt-guid.
ls_partner_attribute-ref_kind = 'A'.
ls_partner_attribute-ref_partner_fct    = defined partner function.
ls_partner_attribute-ref_partner_no     = ls_partner_empresp-partner_no.
ls_partner_attribute-ref_no_type        = 'BP'.
ls_partner_attribute-ref_display_type   = 'BP'.
ls_partner_attribute-semantic_key = 'TERRITORY'.
ls_partner_attribute-fieldname    = 'PATH_ID'.
ls_partner_attribute-value = ls_terrstruct-path_id.
append ls_partner_attribute to lt_partner_attributes .

d) Call CRM_ORDER_MAINTAIN

      call function 'CRM_ORDER_MAINTAIN'
changing
ct_partner_attributes = lt_partner_attributes
exceptions
error_occurred        = 1
document_locked       = 2
no_change_allowed     = 3
no_authority          = 4
others                = 5.

e) Call order Save.

 

~Kavindra


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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