‎2007 Feb 05 5:42 AM
How to allign a data in the internal table.
If i have a data in the intenal table with tabs.
Ex:
sunday mondya tunesday
1
2
3
When i take the data in Itab adn dispaly it is not displaying as above. entire allignment is getting disturbed.
Please help o this regard.
‎2007 Feb 05 5:58 AM
if it is your display problem then try to use
write : /pos(len) itab-f1.
here pos means position it may be any integer value as per your requirement.
and len is restricting the length .
or just use no-gap with write .
but if you have some spaces in the itab value then try
shift itab-f1 left deleting leading spaces.
actually i am not enough clear with your requirement. please let us know what is your exact requirement.
regards
shiba dutta
‎2007 Feb 05 6:10 AM
I have one database, when i search for the solution in the database (we acccess other application), some times it will show tables with tab sapces like as below in the solution.
abac derg werf rtyu
-
12 23 34 45
23 56 67 89
.
.
.
But when i take this data in internal table, Itab name is tline. and it has two column one is tdformat and other is tdline.
when i take data in to tline internal table, it will take all the above solution into
tline-tdformat.
while debugging i can see data in internal table, It looks as below
abac derg werf rtyu -
-
12 23 34 45----
23
56 67 89.
When i print the data it will appear as it is in internal table.
To map the data in the interanl table as it is in the database (which is form other application) is difficult.
‎2007 Feb 05 6:18 AM
i think it is a script which you are printing.
if it is so then use &itab-tline(C)&. it will delete the spaces .
regards
shiba dutta
‎2007 Feb 05 6:43 AM
Hello,
No it is not for script. In my application i need to search other database and paste the searched result in my application.. searched result allignment is not proper if it has tables with tab spaces.
‎2007 Feb 05 6:48 AM
have you tried that?
loop at itab.
shift itab-f1 left deleting leading spaces.
endloop.
or CONDENSE itab NO-GAPS.
regards
shiba dutta
‎2007 Feb 05 6:54 AM
hi
good
if you r talking about the output alignment than sometime it happens when we short the internal table data either ascending or descending order,
so check wheather you r shorting the itab data or not,and check the data where it is printing the data in the output screen.
Thanks
mrutyun^
‎2007 Feb 06 10:08 AM
This is the way it looks in the dtabase:
hwstatus shows a lot of UNKNs.root> hwstatusModule Information:--
-
-
-
-
-
-
-
-
1.1.1 SCSI UNKN 1.1.11 SCSI UNKN 1.1.12 SCSI UNKN 1.1.13 SCSI UNKN 1.1.14 SCSI UNKN 1.1.15 SCSI UNKN 1.1.16 SCSI UNKN 1.1.17 SCSI SCSI 1.1.18 SCSI SCSI 1.1.2 SCSI UNKN 1.1.23 BATT BATT CONFIGURED CNFG_OK batCru 1.1.25 FAN FAN CONFIGURED CNFG_OK S400FanCru1.1.26 FAN FAN CONFIGURED CNFG_OK S400FanCru1.1.28 BATT BATT CONFIGURED CNFG_OK batCru 1.1.3 SCSI UNKN 1.1.4 SCSI UNKN 1.1.5 SCSI UNKN 1.1.50 MF UNKN pmfCru1.1.51 IOC UNKN ioce2Cru1.1.52 IOC UNKN ioce2Cru1.1.53 IOC UNKN ioce2Cru1.1.54 IOC UNKN iocNiocHsyncCru1.1.55 MF UNKN 133354 B06-09 B02V94 pmfCru1.1.6 SCSI UNKN 1.1.7 SCSI UNKN 1.1.8
Using cfstatus produces the following output:root> cfstatus | grep Dis-- Processing Request, Please Wait...Received an exception: TDMmipcPeerSurrogate: received EOF on read. The contentsof the exception object are: exception:TDMmdsException=;TDMmdsException:TDMmdsException={};};the Peer Surrogate is being deleted
hwstatus shows a lot of UNKNs.root> hwstatusModule Information:--
-
-
-
-
1.1 WHITNEY CRU Information:
In internal table it is showing like this.
symptom: Using cfstatus produces the following output: root> cfstatus | grep Dis -- Processing Request, Please Wait... Received an exception:
TDMmipcPeerSurrogate: received EOF on read. The contents of the exception object are: exception:TDMmdsException=;TDMmdsExcep tion:TDMmdsException={};}; the Peer Surrogate is b
symptom: hwstatus shows a lot of UNKNs. root> hwstatus Module Information: -
physical module Tandem rev track address type
partNo level id -
-
-
-
-
1.1 WHITNEY CRU Information: -
physical slot cru cru
cru Tandem rev track part address type type state substate partNo level id name -
-
-
-
-
-
-
-
-
1.1.1 SCSI UNKN 1.1.11 SCSI UNKN 1.1.12 SCSI
UNKN 1.1.13 SCSI UNKN 1.1.14 SCSI UNKN 1.1.15
SCSI UNKN 1.1.16 SCSI UNKN 1.1.17 SCSI SCSI
1.1.18 SCSI SCSI 1.1.2 SCSI UNKN 1.1.23 BATT BATT CONFIGURED
CNFG_OK batCru 1.1.25 FAN FAN CONFIGURED CNFG_OK S400FanCru 1.1.26 FAN FAN CONFIGURED
CNFG_OK S400FanCru 1.1.28 BATT BATT CONFIGURED CNFG_OK batCru 1.1.3 SCSI
UNKN 1.1.4 SCSI UNKN 1.1.5 SCSI UNKN 1.1.50
MF UNKN pmfCru 1.1.51 IOC UNKN ioce2Cru 1.1.52 IOC UNKN ioce2Cru
1.1.53 IOC UNKN ioce2Cru 1.1.54 IOC UNKN iocNiocHsyncCru 1.1.55 MF UNKN 133354
B06-09 B02V94 pmfCru 1.1.6 SCSI UNKN 1.1.7 SCSI UNKN 1.1.8
symptom: Using cfstatus produces the following output: root> cfstatus | grep Dis -- Processing Request, Please Wait... Received an exception:
TDMmipcPeerSurrogate: received EOF on read. The contents of the exception object are: exception:TDMmdsException=;TDMmdsExcep tion:TDMmdsException={};}; the Peer Surrogate is being deleted
symptom: hwstatus shows a lot of UNKNs. root> hwstatus Module Information: -
physical module Tandem rev
Please observe how it is gettign disturbed.