Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error in syntax in 4.6c

Former Member
0 Likes
1,022

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

7 REPLIES 7
Read only

Former Member
0 Likes
946

this class cl_abap_char_utilities is not available in 4.6

try with this constant %_HORIZONTAL_TAB

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

0 Likes
946

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

Read only

0 Likes
946

YOU HAVE USE IN qUOTES

CONSTANTS: gc_tab TYPE c VALUE '%_HORIZONTAL_TAB'.

Read only

0 Likes
946

Hi Suchitra,

Check out Amit's reply in this thread:

Use type-pools: abap while using it.

Regards,

Vivek

Read only

Former Member
0 Likes
946

hi Suchitra,

cl_abap_char_utilities=>horizontal_tab. doesn't exists in 4.6C

Reagards,

Santosh

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
946

You must use a TYPE X field in 46c as the mentioned class does not exist.

CONSTANTS: gc_tab type x value '09'.

Regards,

Rich HEilman

Read only

Former Member
0 Likes
946

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