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

Suppress Zero

Hi

Several zeros appear before the material example below:

000000000000029172

000000000000010720

while writing to the file i need to suppress the leading zeros.

Thanks & Regards,

Ramesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 11:10 AM

    Hi Ramesh,

    You've got two options:

    1. Use the WRITE TO statement, with the NO-ZERO addition.

    2. Use a different <i>field</i> for the material, so as to avoid any conversion exits.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 16, 2005 at 11:12 AM

    Hi Ramesh,

    Also try these FM,

    CONVERSION_EXIT_ALPHA_INPUT

    CONVERSION_EXIT_ALPHA_OUTPUT

    Thanks

    Lakshman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 11:20 AM

    Hi Ramesh,

    anothoer option is to use the shift statement.

    SHIFT field LEFT DELETING LEADING '0'.

    regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 11:32 AM

    Hi All

    Thanks for the response.

    all the methods are working fine but, the appropriate one in my case is Lakshman and Siegfried Szameitat.

    Thanks you all.

    Regards,

    Ramesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Ramesh,

      You have said that you have liked the responses by Lakshman and Siegfried. So they deserve to be rewarded for their effort.

      1. Please mark this thread as a question (why did you uncheck the option?)

      2. Reward appropriate points to both of them.

      3. Mark the thread as answered.

      Regards,

      Anand Mandalika.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 01:27 PM

    Hi,

    1 One Way Write :\ Mara-Matnr No-Zero

    2 Convesion Routine

    Add a comment
    10|10000 characters needed characters exceeded

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.