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

replace '0' with blank when using XXL_FULL_API function

0 Likes
612

Hi,

Can the '0' value be replaced by blank when using XXL_FULL_API to export data to excel ?

e.g.

internal table

Col_Str Col_num

abc 0

excel

Col_Str Col_num

abc

Thanks

Wilson

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
575

Hi,

try: translate itab using '0 '.

A.

Read only

0 Likes
575

use this logic to replace 0 with space and than pass internal table ......

DATA : BEGIN OF itab OCCURS 0,

str(50),

END OF itab.

DATA : cha(50) VALUE 'kishan0singh0negi',

str(2000).

SPLIT cha AT '0' INTO TABLE itab.

loop at itab.

concatenate str itab-str into str separated by space.

endloop.

write : str.

Read only

Former Member
0 Likes
575

loop at itab.

replace '0' with ` ` in itab-col_num.

modify itab.

endloop.

<b>note that the quotes are not the normal quotes but the key above the 'Tab' key in the keyborad.</b>

Regards,

Ravi

Read only

0 Likes
575

Hi,

it is alrady done by using char type in a new internal table.

Thanks

Wilson