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

can some one help me with a simple report it is the only code that is ending with a run-time error.

*&---------------------------------------------------------------------*

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

REPORT ZPROG3.

*&---------------------------------------------------------------------*

include zprog_top.

include zprog_sCR.

lr = lmatnr-high - lmatnr-low.

hi_lmatnr = lmatnr-high.

lo_lmatnr = lmatnr-low.

lo_limit = lmatnr-low + l2matnr-low.

hi_limit = lmatnr-low + l2matnr-high.

* break-point.

*tables itab.

write / lmatnr.

if lo_limit lt hi_lmatnr and hi_limit lt hi_lmatnr .

while lo_limit < lmatnr-high.

lo_limit = lo_limit + 1.

write / lo_limit.

endwhile.

else .

MESSAGE 'out of limit.' TYPE 's'.

endif.

snippets

include zprog_sCR.

select-options lmatnr for mara-MATNR .

select-options l2matnr for mara-MATNR .

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2016 at 01:35 PM

    Hello,

    You change the message option the write in uppercase.

    You try this:

    MESSAGE 'out of limit.' TYPE 's'.

    By:

    MESSAGE 'out of limit.' TYPE 'S'.

    Good luck.

    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.