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
vga
Мастер
Мастер


Age: 165
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Tue Nov 06, 2012 10:18 am    Post subject: Вызов транзакции на компьютере другого пользователя Reply with quote

Коллеги, привет!

Ищется решение, на мой взгляд, не тревиальной задачки. Нужно запустить транзакцию на компьютере другого пользователя, чтобы прямо на экране открылась и удаленный пользователь мог ей управлять.
Кому-нибудь приходилось такое делать, возможно есть какой-нибудь недокументированный системный вызов?

_________________
Молитва - это запрос разработчику на изменение кода программы.
Back to top
View user's profile Send private message Blog Visit poster's website
vga
Мастер
Мастер


Age: 165
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Tue Nov 06, 2012 1:54 pm    Post subject: Reply with quote

Нашли Laughing

Code:
FUNCTION TH_CREATE_FOREIGN_MODE.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(CLIENT) LIKE  SY-MANDT
*"     VALUE(USER) LIKE  SY-UNAME
*"     VALUE(TCODE) LIKE  SY-TCODE OPTIONAL
*"     VALUE(RETURN_ERROR) LIKE  SY-INDEX DEFAULT 1
*"     VALUE(CREATE_EXCLUSIVE) LIKE  SY-INDEX DEFAULT 0
*"  EXCEPTIONS
*"      USER_NOT_FOUND
*"      CANT_CREATE_MODE
*"      NO_AUTHORITY
*"----------------------------------------------------------------------
  AUTHORITY-CHECK OBJECT 'S_THCFM'
    ID 'CLIENT' FIELD CLIENT
    ID 'USER' FIELD USER
    ID 'TCD' FIELD TCODE.

  IF sy-subrc ne 0.
    raise NO_AUTHORITY.
  ENDIF.

  CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_create_foreign_mode
    ID 'CLIENT' FIELD CLIENT
    ID 'USR' FIELD USER
    ID 'TCODE' FIELD tcode
    id 'RETURN_ERROR' field return_error
    id 'EXCLUSIVE' field create_exclusive.

  if sy-subrc = 4.
    RAISE USER_NOT_FOUND.
  elseif sy-subrc <> 0.
    raise cant_create_mode.
  ENDIF.

ENDFUNCTION.

_________________
Молитва - это запрос разработчику на изменение кода программы.
Back to top
View user's profile Send private message Blog Visit poster's website
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.