Skip to Content
author's profile photo Former Member
Former Member

CONDANCE abap Statement

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 08:06 AM

    Hi,

    use the way,

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

    grtz,

    Koen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.