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

# at last column

Former Member
0 Likes
741

Hi,

May i know how do you fix the last column of table gt_temp that contains #?

system will take in # as part of content which is wrong.

any idea? Thanks

DATA: lv_string TYPE string,

gt_temp LIKE STANDARD TABLE OF lv_string,

gs_temp TYPE string.

REPLACE ALL OCCURRENCES OF '"' IN iv_input WITH ' '.

SPLIT iv_input AT cl_abap_char_utilities=>horizontal_tab

INTO TABLE gt_temp.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
589

Hi,

First declare a constant like the one below

constants: c_cr TYPE abap_char1 VALUE cl_abap_char_utilities=>cr_lf,

then do the following

REPLACE c_cr WITH space INTO wa_data-<last field>.

APPEND wa_data TO i_data.

Regards,

Ravindra Singh

Hi,

May i know how do you fix the last column of table gt_temp that contains #?

system will take in # as part of content which is wrong.

any idea? Thanks

DATA: lv_string TYPE string,

gt_temp LIKE STANDARD TABLE OF lv_string,

gs_temp TYPE string.

REPLACE ALL OCCURRENCES OF '"' IN iv_input WITH ' '.

SPLIT iv_input AT cl_abap_char_utilities=>horizontal_tab

INTO TABLE gt_temp.

3 REPLIES 3
Read only

Former Member
0 Likes
589
find '#' in v_string.

if sy-subrc = 0.

 shift v_string right deleting Trailing '#'.

endif.

Jey

Read only

Former Member
0 Likes
590

Hi,

First declare a constant like the one below

constants: c_cr TYPE abap_char1 VALUE cl_abap_char_utilities=>cr_lf,

then do the following

REPLACE c_cr WITH space INTO wa_data-<last field>.

APPEND wa_data TO i_data.

Regards,

Ravindra Singh

Read only

0 Likes
589

Thanks.

You have helped to solve my problem.

Marks rewarded.

The problem is due to the catridge return.

Thank You !!