Hello everyone,
I need to create an array containing the description text of several SAP transport. Problem is, that these description texts contain spaces (blank characters).
Here's my problem code:
=> For every Request ID within /scripts/global/tmp/Requests.lst he is supposed to read the Description Text from the Database and add it to the Array "Text".
So if the Description Text would be something like "This is the request for shopping system" the array would contain 7 elements instead of only 1 as intended ...
Could you help me out ?
Regards,
Thomas
I need to create an array containing the description text of several SAP transport. Problem is, that these description texts contain spaces (blank characters).
Here's my problem code:
Code:
set -A Text $(for items in `cat /scripts/global/tmp/Requests.lst`; do x=$(ssh machine "su - dbuser -c \"echo \\"select CHAR\\\(T2.AS4TEXT, 100\\\) from sapsystem.E070 T1, sapsystem.E07T T2 where T1.TRKORR=T2.TRKORR and T1.TRKORR=\\\'\\\\$items\\\'\\" | database +p -x\"");echo "$x"; done)
=> For every Request ID within /scripts/global/tmp/Requests.lst he is supposed to read the Description Text from the Database and add it to the Array "Text".
So if the Description Text would be something like "This is the request for shopping system" the array would contain 7 elements instead of only 1 as intended ...
Could you help me out ?
Regards,
Thomas