‎2006 Jun 20 8:41 AM
Hi friends,
at the place of '##' i need to populate the records into internal table.
code.
loop at itab_temp into wa_temp.
*SPLIT wa_pdf AT '##' INTO TABLE ITAB.
if sy-subrc = 0.
append lines of itab to itab_final.
endif.
endloop
Thanks in advance.
‎2006 Jun 20 8:49 AM
Hi Balaji,
Replace '#' with <b>CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB</b> in your code.
loop at itab_temp into wa_temp.
<b>SPLIT wa_pdf AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB INTO TABLE ITAB.</b>
if sy-subrc = 0.
append lines of itab to itab_final.
endif.
endloop.
I am sorry,As I didnt observe as it is '##', <b>Use
CL_ABAP_CHAR_UTILITIES=>CR_ instead of LFCL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB in the above code.</b>
'#' is represented as CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Thanks,
Vinay
Message was edited by: Vinaykumar G
‎2006 Jun 20 8:49 AM
SPLIT T_FLAT AT <b>CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB</b>
<b>CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB</b> THIS REPRESENT #
REGARDS
VINOD
‎2006 Jun 20 8:55 AM
Hi,
loop at itab_temp into wa_temp.
SPLIT wa_pdf AT <b>CL_ABAP_CHAR_UTILITIES=>CR_LF</b> INTO TABLE ITAB
if sy-subrc = 0.
append lines of itab to itab_final.
endif.
endloopIf you want to check the above code just try this..
REPORT ZTEST .
write CL_ABAP_CHAR_UTILITIES=>CR_LF.Regards
vijay
‎2006 Jun 20 9:00 AM
‎2006 Jun 20 9:09 AM
Hi,
that means you are on lower version. then you need to use Hex value.
Regards
vijay
‎2006 Jun 20 9:13 AM
Hi vijay,
what is needed to use for '##'
data : v_split(2) type x value '2323'.
loop at itab_temp into wa_temp.
*SPLIT wa_pdf AT '##' INTO TABLE ITAB.
SPLIT wa_temp AT x_split INTO TABLE itab.
if sy-subrc = 0.
append lines of itab to itab_final.
endif.
endloop.
i have written this code. but subrc =0. data with 5 records should be there.
but it is showing combined record.
thank you.
‎2006 Jun 20 9:27 AM
data : v_split(2) type x value '2323'.
loop at itab_temp into wa_temp.
*SPLIT wa_pdf AT '##' INTO TABLE ITAB.
SPLIT wa_temp AT <b>v_split</b> INTO TABLE itab.
if sy-subrc = 0.
append lines of itab to itab_final.
endif.
endloop.
it is not X_split , it is v_split.
i don't know 2323 is the hex value for '##'.
Check it.