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

Range-Table with NUMC-Fields

Hi,

I already have been searching in the forum, but didn't find a solution for my problem (propably I'm only overlooking something).

I need to work with a range-table with a NUMC-Type (length=20) for the low-/high-values. Unfortunately, when I fill the range-table with values (e.g. SIGN=I - OPTION=CP - LOW=*9), the numc-values are always changed to numbers with leading zeroes. I know that this is the standard-behavior of numc-fields, but how can I use a numc-range-table right?

Best regards, Stefan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09:27 AM

    Hi,

    The only possible solution is to convert the values after getting/reading the value

    from the range using the FM 'CONVERSION_EXIT_ALPHA_OUTPUT'

    Regards,

    GSR.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09:37 AM
    loop it_ranges.
    
    
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
         EXPORTING
              input   = it_ranges-low
       IMPORTING
             OUTPUT  = it_ranges-low.
              
      modify table it_ranges transporting low.
    
    endloop.
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Chandrasekhar,

      even if the problem with the wildcards would be eliminated, the problem with the generated select-statement would still remain. I mean that the high-value is included in the stament in every case:

      SELECT WHERE "MANDT" = '001' AND "DOC_ID" LIKE '%0%                 00000000000000000000'

      or

      SELECT WHERE "MANDT" = '001' AND "DOC_ID" LIKE '%0%                 %0%'

      Regards, Stefan

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 10:12 AM

    also modify the table

    modify table it_ranges transporting low.

    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.