SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Завести учетную запись (юзера) программно! и прописать роли!



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
MIX
Участник
Участник



Joined: 24 Dec 2008
Posts: 4

PostPosted: Wed Dec 24, 2008 10:56 am    Post subject: Завести учетную запись (юзера) программно! и прописать роли! Reply with quote

Как можно сие сделать? для автоматической регистрации!
Back to top
View user's profile Send private message
Alex80
Старший специалист
Старший специалист


Age: 44
Joined: 24 Jan 2008
Posts: 129

PostPosted: Wed Dec 24, 2008 11:02 am    Post subject: Re: Завести учетную запись (юзера) программно! и прописать р Reply with quote

MIX wrote:
Как можно сие сделать? для автоматической регистрации!
BAPI_USER_CREATE1
BAPI_USER_ACTGROUPS_ASSIGN
Back to top
View user's profile Send private message
MIX
Участник
Участник



Joined: 24 Dec 2008
Posts: 4

PostPosted: Wed Dec 24, 2008 12:40 pm    Post subject: Reply with quote

а есть примерчик функции BAPI_USER_CREATE1
в то у мена на password ругается



data: ADDRESS_X like BAPIADDR3 OCCURS 0 WITH HEADER LINE,
LOGONDATA_X like BAPILOGOND OCCURS 0 WITH HEADER LINE.

ADDRESS_X-PERS_NO = 98745.
ADDRESS_X-ADDR_NO = 98746.
ADDRESS_X-TITLE_P = 'XXX'.
ADDRESS_X-FIRSTNAME = 'XXX'.
ADDRESS_X-LASTNAME = 'XXX'.
append ADDRESS_X.

CALL FUNCTION 'BAPI_USER_CREATE1'
EXPORTING
USERNAME = '999'
PASSWORD = '12345678'
ADDRESS = ADDRESS_X
LOGONDATA = LOGONDATA_X.
Back to top
View user's profile Send private message
Alex80
Старший специалист
Старший специалист


Age: 44
Joined: 24 Jan 2008
Posts: 129

PostPosted: Wed Dec 24, 2008 12:55 pm    Post subject: Reply with quote

Code:
DATA: address_x LIKE bapiaddr3 OCCURS 0 WITH HEADER LINE,
logondata_x LIKE bapilogond OCCURS 0 WITH HEADER LINE.
DATA:
   gt_bapiret2 TYPE TABLE OF bapiret2,
   gs_bapipwd TYPE bapipwd.

address_x-pers_no = 98745.
address_x-addr_no = 98746.
address_x-title_p = 'XXX'.
address_x-firstname = 'XXX'.
address_x-lastname = 'XXX'.
APPEND address_x.

gs_bapipwd = '12345678'.

CALL FUNCTION 'BAPI_USER_CREATE1'
  EXPORTING
    username  = '999'
    password  = gs_bapipwd
    address   = address_x
    logondata = logondata_x
  TABLES
    return    = gt_bapiret2.
Back to top
View user's profile Send private message
MIX
Участник
Участник



Joined: 24 Dec 2008
Posts: 4

PostPosted: Wed Dec 24, 2008 1:31 pm    Post subject: Reply with quote

СУПЕР!!! спасибо Alex80
Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Thu Dec 25, 2008 1:29 am    Post subject: Re: Завести учетную запись (юзера) программно! и прописать р Reply with quote

MIX wrote:
Как можно сие сделать? для автоматической регистрации!

Сорри за оффтоп, но аудит по безопасности эта штука не пройдет. Confused

_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.