‎2007 Sep 11 9:03 AM
Hi Experts,
I have a small probelem with Condance abap statement.
issue..
I have a char field lenth 30, this field is the input field from the SAP master data.
when evert the user enter the field between , before or after space i want to delete the space it could not to allow.
i have used the condance field nane with NO-GAPS. this is working fine as of now.
when the user copy from the EXCEL sheet and past into sap that field is comming as blank field it is not appearing in debug mode also. bit storing in database table as a field plus space.
this field i copied and i have seen in MS-WORD here is was showing sapace as the # charactor.
this issue how can i handle in my progam. is thare any statement to delete non sap char.
please help me on this.
regards,
pala.
‎2007 Sep 11 9:06 AM
Hi,
use the way,
replace all occurences of '#' with '' in lv_string.
grtz,
Koen
‎2007 Sep 11 9:12 AM
Hi,
Use following statments:
<b>Replace all occurences of '#' with ' ' in lv_string.
condense lv_string</b>
*Award points if it helps.
Regards,
Amit
Message was edited by:
Amit Kumar
‎2007 Sep 11 10:13 AM
hi amit & koen.
Thanks for replay...
ya that was right but am not able to seec # with debug mode,
how can i hotcode with '#'.
this value is comming with space . i can't see any vaue in debug bode.
when oen the value with MS-DOS promt it can appears with value with #.
this is the problem am facing..
Can u chech once and revert back...
regards,
pala