RFC Destiation in SAP
Get FICA Destination:
CALL FUNCTION 'CRM_FICA_CUST_READ'
IMPORTING
ev_syst = LV_FICA_DESTINATION.
Get ISU Destination:
CALL METHOD cl_crm_isu_il_tools=>get_backend_rfc_destination
RECEIVING
result = LV_ISU_DESTINATION.
Get CRM Destination:
CALL FUNCTION 'CRM0_READ_RFC_DEST'
EXPORTING
i_consumer = 'CRM'
i_download_type = '*'
i_objname = '*'
TABLES
t_crmrfcpar = lt_rfc
EXCEPTIONS
no_entry_found = 1
OTHERS = 2.
IF sy-subrc = 0.
READ TABLE lt_rfc INTO lwa_rfc INDEX 1.
i_consumer = 'CRM'
i_download_type = '*'
i_objname = '*'
TABLES
t_crmrfcpar = lt_rfc
EXCEPTIONS
no_entry_found = 1
OTHERS = 2.
IF sy-subrc = 0.
READ TABLE lt_rfc INTO lwa_rfc INDEX 1.
lv_crm_destination = lwa_rfc-rfcdest.
ENDIF.
Comments
Post a Comment