Proceedings of the Seminar on Logistics, Procurement and PCP


ISSN 2594-360X

38° Seminário de Logística vol. 38, num.38 (2019)


Title

AUTOMATIZAÇÃO DE ATIVIDADES COM SCRIPTS SAP E VBA EM SUPRIMENTOS

AUTOMATION OF ACTIVITIES WITH SCRIPTS SAP AND VBA IN SUPPLIES

DOI

10.5151/2594-360X-33716

Downloads

1696 Downloads

Abstract

Este artigo tem como objetivo demonstrar os ganhos obtidos com automatizações de atividades manuais de média complexidade em análise e moderado tempo de execução. Para alcançarmos o objetivo, sem altos investimentos, foram desenvolvidas automatizações através de programação em Visual Basic (VBA) e Scripts SAP, utilizando como plataforma o Microsoft Excel. A integração do Excel com o SAP se mostrou eficaz, possibilitou a execução de tarefas de forma automatizada em massa, reduzindo o tempo total de execução das atividades e alavancando a performance geral dos executantes.

 

This article aims to demonstrate the gains obtained with automation of manual activities of medium complexity analysis and moderate execution time. To achieve this goal, without high investments, automations were developed through programming in Visual Basic (VBA) and SAP Scripts, using Microsoft Excel as a platform. The integration of Excel with SAP has proved itself effective, enabling tasks to be performed in a mass automated way, reducing the total execution time of the activities and leveraging the overall performance of the performing party

Keywords

Planejamento de Materiais; Automatização; Visual Basic; SAP Script

Materials Planning; Automation; Visual Basic; SAP Script

How to refer

Santos Junior, Ivani Batista dos; Valentim, Alexandre Jose Ramos; Guandelinir, Valeria da Silva; Santos, Joselito Gonsalves dos; Castro, Daniel Rocha de. AUTOMATIZAÇÃO DE ATIVIDADES COM SCRIPTS SAP E VBA EM SUPRIMENTOS , p. 94-100. In: 38° Seminário de Logística, São Paulo, 2019.
ISSN: 2594-360X , DOI 10.5151/2594-360X-33716

Whoops, looks like something went wrong.

(1/1) ErrorException

fwrite(): write of 1826 bytes failed with errno=28 No space left on device

in StreamHandler.php line 131
at HandleExceptions->handleError(8, 'fwrite(): write of 1826 bytes failed with errno=28 No space left on device', '/var/www/webroot/ROOT/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 131, array('stream' => resource, 'record' => array('message' => 'file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', 'context' => array('exception' => object(ErrorException)), 'level' => 400, 'level_name' => 'ERROR', 'channel' => 'production', 'datetime' => object(DateTime), 'extra' => array(), 'formatted' => '[2025-05-29 18:00:55] production.ERROR: file_put_contents(): write of 322 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(): write of 322 bytes failed with errno=28 No space left on device at /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)[stacktrace]#0 [internal function]: Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions->handleError(8, \'file_put_conten...\', \'/var/www/webroo...\', 122, Array)#1 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', 2)#2 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\\\Filesystem\\\\Filesystem->put(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', true)#3 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\\\Session\\\\FileSessionHandler->write(\'P6rZcD0zNNLw8Nj...\', \'a:5:{s:6:\\"_toke...\')#4 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\\\Session\\\\Store->save()#5 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\\\Session\\\\Middleware\\\\StartSession->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#6 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminateMiddleware(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#7 /var/www/webroot/ROOT/public/index.php(59): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#8 {main}"} ')))
at fwrite(resource, '[2025-05-29 18:00:55] production.ERROR: file_put_contents(): write of 322 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(): write of 322 bytes failed with errno=28 No space left on device at /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)[stacktrace]#0 [internal function]: Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions->handleError(8, \'file_put_conten...\', \'/var/www/webroo...\', 122, Array)#1 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', 2)#2 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\\\Filesystem\\\\Filesystem->put(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', true)#3 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\\\Session\\\\FileSessionHandler->write(\'P6rZcD0zNNLw8Nj...\', \'a:5:{s:6:\\"_toke...\')#4 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\\\Session\\\\Store->save()#5 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\\\Session\\\\Middleware\\\\StartSession->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#6 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminateMiddleware(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#7 /var/www/webroot/ROOT/public/index.php(59): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#8 {main}"} ')in StreamHandler.php line 131
at StreamHandler->streamWrite(resource, array('message' => 'file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', 'context' => array('exception' => object(ErrorException)), 'level' => 400, 'level_name' => 'ERROR', 'channel' => 'production', 'datetime' => object(DateTime), 'extra' => array(), 'formatted' => '[2025-05-29 18:00:55] production.ERROR: file_put_contents(): write of 322 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(): write of 322 bytes failed with errno=28 No space left on device at /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)[stacktrace]#0 [internal function]: Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions->handleError(8, \'file_put_conten...\', \'/var/www/webroo...\', 122, Array)#1 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', 2)#2 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\\\Filesystem\\\\Filesystem->put(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', true)#3 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\\\Session\\\\FileSessionHandler->write(\'P6rZcD0zNNLw8Nj...\', \'a:5:{s:6:\\"_toke...\')#4 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\\\Session\\\\Store->save()#5 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\\\Session\\\\Middleware\\\\StartSession->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#6 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminateMiddleware(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#7 /var/www/webroot/ROOT/public/index.php(59): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#8 {main}"} '))in StreamHandler.php line 117
at StreamHandler->write(array('message' => 'file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', 'context' => array('exception' => object(ErrorException)), 'level' => 400, 'level_name' => 'ERROR', 'channel' => 'production', 'datetime' => object(DateTime), 'extra' => array(), 'formatted' => '[2025-05-29 18:00:55] production.ERROR: file_put_contents(): write of 322 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(): write of 322 bytes failed with errno=28 No space left on device at /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)[stacktrace]#0 [internal function]: Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions->handleError(8, \'file_put_conten...\', \'/var/www/webroo...\', 122, Array)#1 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', 2)#2 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\\\Filesystem\\\\Filesystem->put(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', true)#3 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\\\Session\\\\FileSessionHandler->write(\'P6rZcD0zNNLw8Nj...\', \'a:5:{s:6:\\"_toke...\')#4 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\\\Session\\\\Store->save()#5 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\\\Session\\\\Middleware\\\\StartSession->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#6 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminateMiddleware(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#7 /var/www/webroot/ROOT/public/index.php(59): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#8 {main}"} '))in AbstractProcessingHandler.php line 39
at AbstractProcessingHandler->handle(array('message' => 'file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', 'context' => array('exception' => object(ErrorException)), 'level' => 400, 'level_name' => 'ERROR', 'channel' => 'production', 'datetime' => object(DateTime), 'extra' => array(), 'formatted' => '[2025-05-29 18:00:55] production.ERROR: file_put_contents(): write of 322 bytes failed with errno=28 No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(): write of 322 bytes failed with errno=28 No space left on device at /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)[stacktrace]#0 [internal function]: Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions->handleError(8, \'file_put_conten...\', \'/var/www/webroo...\', 122, Array)#1 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', 2)#2 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\\\Filesystem\\\\Filesystem->put(\'/var/www/webroo...\', \'a:5:{s:6:\\"_toke...\', true)#3 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\\\Session\\\\FileSessionHandler->write(\'P6rZcD0zNNLw8Nj...\', \'a:5:{s:6:\\"_toke...\')#4 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\\\Session\\\\Store->save()#5 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\\\Session\\\\Middleware\\\\StartSession->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#6 /var/www/webroot/ROOT/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminateMiddleware(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#7 /var/www/webroot/ROOT/public/index.php(59): Illuminate\\\\Foundation\\\\Http\\\\Kernel->terminate(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Http\\\\Response))#8 {main}"} '))in Logger.php line 344
at Logger->addRecord(400, 'file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', array('exception' => object(ErrorException)))in Logger.php line 707
at Logger->error('file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', array('exception' => object(ErrorException)))in Writer.php line 203
at Writer->writeLog('error', 'file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', array('exception' => object(ErrorException)))in Writer.php line 114
at Writer->error('file_put_contents(): write of 322 bytes failed with errno=28 No space left on device', array('exception' => object(ErrorException)))in Handler.php line 113
at Handler->report(object(ErrorException))in Handler.php line 100
at Handler->report(object(ErrorException))in HandleExceptions.php line 81
at HandleExceptions->handleException(object(ErrorException))