Skip to Content
0
Jul 10, 2018 at 12:00 PM

In SAP, how to provide a table name,execute and export the data through command line

404 Views Last edit Jul 10, 2018 at 09:07 AM 4 rev

Able to launch SAP and provide tcodes, but unable to provide table name ,execute and export the table data through batch scripting(i.e through command line). Please suggest. Thanks in advance.

Below is the script i have witten:

@echo off

cd \

set /p Username= Enter username:

set /p Password= Enter password:

set /p Tcode= Enter Tcode:

set /p Database=Enter Database:

REM: cd Program Files\SAP\FrontEnd\SapGui

start sapshcut.exe -system=%Database% -client=320 -command=%Tcode% -user=%Username% -pw=%Password%

pause