diff --git a/README.md b/README.md index 766db1e..72f5b68 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # SAP-Table-EXP-IMP-for-SystemCopy -# SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2015 +# SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2019 # www.florian-lamml.de # Version 1.0 - Initial Release +# Version 1.1 - Client Config # copy to your Unix / Linux Server and run sap_tab_exp_imp.sh \ No newline at end of file diff --git a/sap_tab_exp_imp.sh b/sap_tab_exp_imp.sh index 45d4f43..4845474 100644 --- a/sap_tab_exp_imp.sh +++ b/sap_tab_exp_imp.sh @@ -1,19 +1,26 @@ #!/bin/bash -# SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2015 +# SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2019 # www.florian-lamml.de # Version 1.0 - Initial Release +# Version 1.1 - Client Config ##### CONFIG EXPORT / IMPORT LOCATION ##### export EXPIMPLOC= ########################################### +############## CONFIG CLIENT ############## +# DEFAULT (000), ALL or CLIENT Number +# Default Value = ALL +export EXPCLIENT=ALL +########################################### + ##### info ################################ # with this tool you can export and import # tables from and into a sap system # you have to run it as "sidadm" # it use the normal R3trans for export # and import with template files -####################(c) Florian Lamml 2015# +####################(c) Florian Lamml 2019# # Prerequisites ########################### # need 'dialog' to run @@ -45,8 +52,8 @@ export EXPIMPLOC= export global_pwd=$(pwd) export global_height=30 export global_width=60 -export global_title="SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2015" -export global_backtitle="SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2015" +export global_title="SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2019" +export global_backtitle="SAP Table EXP/IMP for SystemCopy (c) Florian Lamml 2019" # check export location (and create directory) if [ -z "$EXPIMPLOC" ]; @@ -103,7 +110,7 @@ chmod u+x $global_pwd/script/sap_export_tables.sh chmod u+x $global_pwd/script/sap_import_tables.sh # EXPORT or IMPORT dialog -DIALOG=(dialog --title "$global_title" --backtitle "$global_backtitle" --radiolist " _______ ___ \n / __/ _ | / _ \ \n _\ \/ __ |/ ___/\n/___/_/ |_/_/ \n _________ ___ __ ____\n/_ __/ _ | / _ )/ / / __/\n / / / __ |/ _ / /__/ _/ \n/_/ /_/ |_/____/____/___/ \n _____ _____ ______ ______ \n / __/ |/_/ _ \/ _/ |/ / _ \ \n / _/_> &1 >/dev/tty) # check ESC hit diff --git a/script/sap_export_tables.sh b/script/sap_export_tables.sh index 37ea7b5..6686a90 100644 --- a/script/sap_export_tables.sh +++ b/script/sap_export_tables.sh @@ -97,6 +97,7 @@ dialog --title "$global_title" --backtitle "$global_backtitle" --progressbox "Ex while read SELTABLES do echo "export" >> $EXPIMPLOC/$SELTABLES.tpl + echo "client = '"$EXPCLIENT"'" >> $EXPIMPLOC/$SELTABLES.tpl echo "file = '"$EXPIMPLOC"/"$SELTABLES".dat'" >> $EXPIMPLOC/$SELTABLES.tpl cat $global_pwd/templates/$SELTABLES >> $EXPIMPLOC/$SELTABLES.tpl echo "=== Export START" $SELTABLES "==="