Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CONDANCE abap Statement

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Hi,

use the way,

replace all occurences of '#' with '' in lv_string.

grtz,

Koen

Former Member
0 Kudos

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

0 Kudos

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