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

First N variable restriction

Hi,

I have a report that gives first N materials. What I want to do is restrict the value of N i.e. in the input screen the user should not be able to enter N with a value more than 100.

Have any idea?

Thanks in advance.

Yasemin...

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 06:18 AM

    Hi

    Try using a variable with customer exit. In CMOD where I_STEP = '3'. "validations of the selection screen input".

    L.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      may i konw where you are writting this code.

      Assuming the varaible is multiple single value.Try out this code instead.

      IF i_s_rkb1d-COMPID eq 'ZXX_XX1_Q0001'.

      IF I_STEP = 3.

      break ykilinc.

      DATA: L_R_VAR_RANGE LIKE rrrangeexit.

      CLEAR L_S_RANGE.

      LOOP AT I_T_VAR_RANGE INTO L_R_VAR_RANGE

      WHERE VNAM = 'ZN'.

      IF L_R_VAR_RANGE-LOW > 200.

      CALL FUNCTION 'RRMS_MESSAGE_HANDLING'

      EXPORTING

      I_CLASS = 'RSBBS'

      I_TYPE = 'E'

      I_NUMBER = '000'

      I_MSGV1 = 'Lütfen 200 den küçük bir sayı giriniz.'.

      RAISE no_replacement.

      exit.

      ENDIF.

      endloop.

      In I_step=3 you need not use the statement APPEND L_S_RANGE TO E_T_RANGE.

      Hope it helps...

      Regards...

      Umesh.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 01:56 PM

    Hi jasmine,

    You can use user exit.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 11:42 AM

    Hi,

    You can do this with condition in Bex you do not need abap coding.Your report is giving N materials according to what ?

    Regards.

    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.