2007 Apr 02 6:11 AM
hi all,
i have a code like this
concatenate '"' i_result1-werks '"' into i_output-werks.
concatenate '"' i_result1-matnr '"' into i_output-matnr.
concatenate '"' i_result1-idnrk '"' into i_output-idnrk.
concatenate '"' i_result1-maktx '"' into i_output-maktx.
the final i_output values comes with spaces like this
" data value 1 ", " data value 2 " instead of
"data value 1 ", "data value 2".
how to remove the spaces?
2007 Apr 02 6:13 AM
hi,
Make use of <b>condense</b> statement
refer
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/condense.htm
Regards,
Santosh
2007 Apr 02 6:13 AM
hi,
Make use of <b>condense</b> statement
refer
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/condense.htm
Regards,
Santosh
2007 Apr 02 6:20 AM
try this..
concatenate '"' i_result1-werks '"' into i_output-werks.
condense i_output-werks.
concatenate '"' i_result1-matnr '"' into i_output-matnr.
condense i_output-matnr.
concatenate '"' i_result1-idnrk '"' into i_output-idnrk.
condense i_output-idnrk.
concatenate '"' i_result1-maktx '"' into i_output-maktx.
condense i_output-maktx.
2007 Apr 02 6:21 AM
hi u can also try this.
SHIFT I_OUTPUT-WERKS LEFT DELETING LEADING SPACES.Cheers,
Sam
2007 Apr 02 6:24 AM
instead of deleting spaces in every value of the column,can't the spaces be deleted of a particular column at one go?
2007 Apr 02 6:39 AM
Condense i_output-werks no-gaps.
Condense i_output-matnr no-gaps.
Condense i_output-idnrk no-gaps.
Condense i_output-maktx no-gaps.