2008 Nov 27 3:15 AM
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.
2008 Nov 27 4:14 AM
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.
2008 Nov 27 3:47 AM
find '#' in v_string.
if sy-subrc = 0.
shift v_string right deleting Trailing '#'.
endif.
Jey
2008 Nov 27 4:14 AM
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
2008 Nov 27 4:43 AM
Thanks.
You have helped to solve my problem.
Marks rewarded.
The problem is due to the catridge return.
Thank You !!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |