2014-01-21 47 views
4

我們正在研究將我們的一些LDAP(Active Directory)數據與存儲在SAP中的數據進行同步。 SAP提供了幾個功能模塊,允許您編寫自定義程序來處理映射數據,但我們正在尋求使用提供的使用RSLDAPSYNC_USER的解決方案。LDAPMAP - 通過RSLDAPSYNC_USER函數將SAP數據映射到LDAP

我遇到的問題是瞭解如何在LDAPMAP中執行字段映射。特別是,在執行Mapping Overview時,如何定義如下所示的結構?

enter image description here

另外,我們有一個功能模塊,目前可用於抓取所有的領域,我們想發送到LDAP,但可以在下面顯示的屏幕被用來調用自定義功能模塊搶我需要的數據?如果是這樣,那麼請舉個例子。

enter image description here

謝謝, 邁克

回答

0

我不知道,如果這是你的要求。作爲對第二個問題的回答:

您可以給出想要獲取的屬性。 LDAP_READ函數將返回條目參數中的結果。

CALL FUNCTION 'LDAP_READ' 
     EXPORTING 
     base   = base 
*  scope  = 2 
     filter  = filter 
*  attributes = attributes_ldap 
     timeout  = s_timeout 
     attributes = t_attributes_ldap 
     IMPORTING 
     entries  = t_entries_ldap    "<< entries will come 
     EXCEPTIONS 
     no_authoriz = 1 
     conn_outdate = 2 
     ldap_failure = 3 
     not_alive = 4 
     other_error = 5 
     OTHERS  = 6. 

項參數的樣子: enter image description here

屬性參數看起來像:

Attributes parameter looks like