‎2008 Apr 04 9:43 AM
hi all,
i am creating a tab-delimited file using Open dataset/Close dataset. I want to insert tab between the fields of output line.
Can anyone help me regarding this.
Regards,
Anil.
‎2008 Apr 04 9:48 AM
Hi,
use:
CONSTANTS: CON_NEWL TYPE ABAP_CHAR1 VALUE CL_ABAP_CHAR_UTILITIES=>NEWLINE,
CON_TAB TYPE ABAP_CHAR1 VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Insert con_tab betwenn the 2 fields.
Regards, Dieter
‎2008 Apr 04 9:45 AM
Hi,
In Tab Delimited tab space is automatically set between two fields.
Reward if usefull
‎2008 Apr 04 9:47 AM
Hi,
By default it is tab delimited file.
Use binary mode ...
Reward if helpful
jagadish
‎2008 Apr 04 9:47 AM
‎2008 Apr 04 9:48 AM
Hi,
use:
CONSTANTS: CON_NEWL TYPE ABAP_CHAR1 VALUE CL_ABAP_CHAR_UTILITIES=>NEWLINE,
CON_TAB TYPE ABAP_CHAR1 VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Insert con_tab betwenn the 2 fields.
Regards, Dieter
‎2008 Apr 30 12:45 PM
Hi
my requirement is while downloading the report if there is value in the first field and in third field then the display should be as
<first field> <space given for second field> <third field>
but while displaying the space for the second field is not getting displayed. both the first and third fields are getting concatinated.
please give me the solution.
thanks and regards,
chandrika
‎2008 Apr 04 9:49 AM
try using cl_abap_char_utilities class...
tab = cl_abap_char_utilities=>horizontal_tab.