Skip to Content

Creating a new user in LDAP using SAP-RFC

Hi all,

I am confused here.

Requirement is : We have a Z txn in some client where the Current user fill in some fields in this Z txn, then at end clicks a button and a user profile get created in Active Directory.

Basically I am asking how to create a new users in AD through ABAP RFC’s .

Not a much of SAP documentation in these RFC…

Now, SAP documentations mentioned LDAP Server Mapping !!! . Not sure if I have to do the mapping part…

RFC I am trying to use

‘LDAP_OBJECT_CREATE’… but this RFC gives me error that no Mapping exist !. Why should I do a mapping if I am trying to create from some a Z fields!! What to map to !.

I have tried first to use RFC ‘LDAP_CREATE’….but no success .. I think this RFC is only for creating attributes , right ? .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 08, 2017 at 06:16 PM

    Look at program RSLDAPSYNC_USER. You only need to do LDAP mapping if you're using this program. If you're doing it yourself, you'll need to figure out how that program uses the function modules. It's not to difficult to figure out.

    Add comment
    10|10000 characters needed characters exceeded

    • Yes, there is no documentation. That why you have do some analysis on RSLDAPSYNC_USER. Try running it in debug, for example, with some mappings set up in LDAPMAP (which is documented). The FM are not, in fact, that difficult to use. You just have to get the order right.

  • Oct 25, 2017 at 04:50 AM


    Hi Harald, Can you help in this. I saw you have answered similar post before. :) ... I need the program you have sent in that post.
    Add comment
    10|10000 characters needed characters exceeded