2007 Jan 19 2:20 PM
hI ALL,
CONSTANTS: gc_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
I used the following syntax in version 5 ,it didnot have any syntax errors,but when i am giving the same in 4.6c version i'm getting an errorsaying
class cl_abap_char_utilitie is unknown.
LET ME KNOW AS TO WITH WHAT I HAVE TO REPLACE IT WITH IN 4.6C
Thanks
hI ALL,
CONSTANTS: gc_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
I used the following syntax in version 5 ,it didnot have any syntax errors,but when i am giving the same in 4.6c version i'm getting an errorsaying
class cl_abap_char_utilitie is unknown.
LET ME KNOW AS TO WITH WHAT I HAVE TO REPLACE IT WITH IN 4.6C
Thanks
2007 Jan 19 2:21 PM
this class cl_abap_char_utilities is not available in 4.6
try with this constant %_HORIZONTAL_TAB
Message was edited by:
Chandrasekhar Jagarlamudi
2007 Jan 19 2:32 PM
Hi,
I TRIED TO REPLACE IT LIKE THIS
CONSTANTS: gc_tab TYPE c VALUE %_HORIZONTAL_TAB.
ERROR : FILED %_HORIZONTAL_TAB IS UNKNOWN.
PLS PROVIDE ME WITH THE SYNTAX
THANKS
2007 Jan 19 2:42 PM
YOU HAVE USE IN qUOTES
CONSTANTS: gc_tab TYPE c VALUE '%_HORIZONTAL_TAB'.
2007 Jan 19 2:46 PM
2007 Jan 19 2:26 PM
hi Suchitra,
cl_abap_char_utilities=>horizontal_tab. doesn't exists in 4.6C
Reagards,
Santosh
2007 Jan 19 2:38 PM
2007 Jan 19 2:53 PM
Hai Suchitra
Check the following Code
data v_var1 type x value '09'.
data v_len(5) type n.
constants:
c_ecc6_tab(1) type c value cl_abap_char_utilities=>horizontal_tab.
constants:
c1(3) type c value 333.
data: begin of itab occurs 0,
line(20) type c,
end of itab.
data: begin of itab1 occurs 0,
line1(20) type c,
line2(20) type c,
line3(20) type c,
end of itab1.
concatenate c1 c_ecc6_tab c1 c_ecc6_tab c1 c_ecc6_tab c1
into itab-line.
*concatenate c1 v_var1 c1
into itab-line.
*open dataset c1 for input in text mode encoding default.
*describe field c1 length v_len in character mode.
do 5 times.
append itab.
enddo.
data xtab1 like itab1.
data v_newvar like itab1-line1.
do 10 times.
itab1-line1 = 'abc'.
itab1-line2 = 'def'.
itab1-line3 = 'ghi'.
append itab1.
clear itab1.
enddo.
*v_tabix = sy-tabix.
*PI_TAB_OUT-text = l_tab_out-text.
*modify PI_TAB_OUT index v_tabix transporting text.
*call function 'GUI_DOWNLOAD'
exporting
filename =
*'C:\Documents and Settings\satyanarayanat\Desktop\DC Uptimizer\vvv.txt'
*
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
tables
data_tab = itab
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
Regards
Sreeni
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |