1 Reply Latest reply: Mar 28, 2012 7:51 AM by juergen baur RSS

Get Buffer Address in CRM_ORDER_SAVE

Isaac Mena
Currently Being Moderated

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.

Actions