SAP ABAP gateway调用后台系统时选择RFC的决定逻辑

138 阅读1分钟

Created by Jerry Wang on Oct 21, 2014

RFC destination是由destination finder决定的:

destination_finder是一个singleton:

通过system alias获得RFC destination name:

[外链图片转存失败(img-v3xdqvYQ-1568687817531)(user-images.githubusercontent.com/5669954/277…)]
问题从而转化为该proxy class的mv_system_alias何时被赋值:

通过where used list能找出是在method set_system_alias里将值赋给mv_system_alias:

system alias的数据源来自line 9的internal table lt_system_aliase:

最终的system alias来自line 13 的table中:

该表的内容在如下的customizing里配置:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":