on 03-28-2012 1:12 AM
Hi, I would like to get the region inside it_partner @ crm_order_maintain inside a badi implementation of CRM_ORDER_SAVE, I tried with this FM but it don´t return nothing, any clue about how to get this adrc buffer data.
CALL FUNCTION 'CRM_ORDER_READ_OW'
EXPORTING
it_header_guid = lt_header_guid
it_requested_objects = lt_requested_objects
IMPORTING
et_orderadm_h = lt_orderadm_h
et_partner = lt_partner
CHANGING
cv_log_handle = lt_log
EXCEPTIONS
document_not_found = 1
error_occurred = 2
document_locked = 3
no_change_authority = 4
no_display_authority = 5
no_change_allowed = 6
OTHERS = 7.
READ TABLE lt_partner INTO ls_partner WITH KEY partner_no = ls_partner-partner_no.
MOVE ls_partner-partner_fct TO ls_logic_partner_key-ref_partner_fct.
MOVE ls_partner-partner_no TO ls_logic_partner_key-ref_partner_no.
MOVE ls_partner-ref_handle TO ls_logic_partner_key-ref_partner_handle.
MOVE ls_partner-no_type TO ls_logic_partner_key-ref_no_type.
MOVE ls_partner-display_type TO ls_logic_partner_key-ref_display_type.
CALL FUNCTION 'COM_PARTNER_READ_SINGLE_OB'
EXPORTING
iv_partnerset_guid = ls_partner-partner_guid
iv_partner_guid = ls_partner-partner_guid
is_logic_partner_key = ls_logic_partner_key
iv_refresh_address_ref = 'X'
IMPORTING
es_partner_wrk = ls_partner_wrk
EXCEPTIONS
parameter_error = 1
record_not_found = 2
OTHERS = 3.
Hi,
when you work with addresses use the Business Address Services. You can get an overview and the appropriate function modules here:
http://help.sap.com/saphelp_crm70/helpdata/EN/12/ad79775c5811d3b4ea006094192fe3/content.htm
br
Jürgen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.