04-02-2009 11:08 AM
Hi all,
I am developing an interface to download the Payment document data in specified format. The problem is i am unable to separate the data as new line. It is downloading as one line.
Please help me how to solve this problem.
Thanks,
Vamshi.
04-02-2009 11:26 AM
Hi,
DATA: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
c_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
*---- declare objbin_final as some table
LOOP AT it_marc1.
CONCATENATE it_marc1-matnr it_marc1-werks it_marc1-pstat it_marc1-lvorm
INTO objbin_final SEPARATED BY c_tab.
CONCATENATE c_ret objbin_final INTO objbin_final.
APPEND objbin_final.
ENDLOOP.
Thanks,
Krishna..
04-02-2009 11:17 AM
Hi ,
Declare the internal table as below..
DATA: BEGIN OF zitab1 OCCURS 0,
fld_str(101) TYPE c,
END OF zitab1.
Now append the data from ur internal table into this internal table,
Now try and download the data.
Hope this solves ur problem.
Regards ,
Anuj
04-02-2009 11:23 AM
hi anuj,
Thanks for the reply.
If i moved data in my ITAB to this ITAB, it will create new line for every 101 characters Is n't it?
But i can't depend on number of charaters as it is not fixed.
So please specify any other solution ?
Thanks,
Vamshi.
04-02-2009 11:36 AM
Hi Vamshi ,
I also did the same thing for a payment program,but in my case none of the field was going to cross that length.
In your case what can be maximum possible length for any of the field ?
Regards,
Anuj
04-02-2009 11:20 AM
hi !
I HOPE THIS WILL WORK FOR YOU.
SPLIT result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab .
04-02-2009 11:21 AM
hi use this ..
CL_ABAP_CHAR_UTILITIES=>NEWLINE
like this
concatenate file CL_ABAP_CHAR_UTILITIES=>NEWLINE open tabla close CL_ABAP_CHAR_UTILITIES=>NEWLINE INTO file.
04-02-2009 11:26 AM
Hi,
DATA: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
c_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
*---- declare objbin_final as some table
LOOP AT it_marc1.
CONCATENATE it_marc1-matnr it_marc1-werks it_marc1-pstat it_marc1-lvorm
INTO objbin_final SEPARATED BY c_tab.
CONCATENATE c_ret objbin_final INTO objbin_final.
APPEND objbin_final.
ENDLOOP.
Thanks,
Krishna..
04-14-2009 6:26 AM