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
URDo
Участник
Участник



Joined: 18 Aug 2008
Posts: 2

PostPosted: Wed Oct 22, 2008 4:57 pm    Post subject: Копирование файлов в фоновом режиме. Reply with quote

Доброе время суток. Кто-нибудь может подсказать с помощью каких функций можно скопировать файл лежащий на сервере приложений на тот же сервер в фоновом режиме?
Back to top
View user's profile Send private message
John Doe
Модератор
Модератор


Age: 45
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Wed Oct 22, 2008 4:59 pm    Post subject: Reply with quote

Думается, что только с помощью OPEN DATASET.
Back to top
View user's profile Send private message Blog
vga
Мастер
Мастер


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

PostPosted: Wed Oct 22, 2008 7:19 pm    Post subject: Reply with quote

Или запуском внешней команды. Здесь 'ZCOPY' - алиас, заданный в транзакции sm69.

Code:
DATA: l_params LIKE sxpgcolist-parameters,
      l_status LIKE extcmdexex-status,
      l_exitcode LIKE extcmdexex-exitcode,
      it_execprot LIKE btcxpm OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'SXPG_CALL_SYSTEM'
     EXPORTING
          commandname                = 'ZCOPY'
          additional_parameters      = l_params
     IMPORTING
          status                     = l_status
          exitcode                   = l_exitcode
     TABLES
          exec_protocol              = it_execprot
     EXCEPTIONS
          no_permission              = 1
          command_not_found          = 2
          parameters_too_long        = 3
          security_risk              = 4
          wrong_check_call_interface = 5
          program_start_error        = 6
          program_termination_error  = 7
          x_error                    = 8
          parameter_expected         = 9
          too_many_parameters        = 10
          illegal_command            = 11
          OTHERS                     = 12.
Back to top
View user's profile Send private message Blog Visit poster's website
URDo
Участник
Участник



Joined: 18 Aug 2008
Posts: 2

PostPosted: Thu Oct 23, 2008 4:20 pm    Post subject: Reply with quote

Скопировал... Теперь проблемы с правами на доступ. Sad
Back to top
View user's profile Send private message
Удав
Гуру
Гуру


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

PostPosted: Thu Oct 23, 2008 8:08 pm    Post subject: Reply with quote

Это к базису.
_________________
С уважением,
Удав.
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.