Problem: you want to get RFC destination for ERP system from within CRM.
Solution: All you need to do is use below source code.
DATA: lv_rfc_destination TYPE rfcdest, ls_smof TYPE smof_erpsh. CALL FUNCTION 'CRM_GET_ERP_SYSTEM' IMPORTING es_smof_erpsh = ls_smof. lv_rfc_destination = ls_smof-rfcdest.
DATA:
lv_rfc_destination TYPE rfcdest,
ls_smof TYPE smof_erpsh.
CALL FUNCTION 'CRM_GET_ERP_SYSTEM'
IMPORTING
es_smof_erpsh = ls_smof.
lv_rfc_destination = ls_smof-rfcdest.
Komentowanie jest zakończone.