Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

reports

Former Member
0 Likes
616

Hi,

I want to know how to do input validation in reports?

5 REPLIES 5
Read only

Former Member
0 Likes
590

Please give us more details ...

Read only

Former Member
0 Likes
590

AT SELECTION-SCREEN event..

Read only

Former Member
0 Likes
590

u can use the event AT SELECTION-SCREEN OUTPUT event

AT SELECTION-SCREEN OUTPUT.

  IF p_bukrs is initial.
    *display error message her
  endif.

Read only

Former Member
0 Likes
590

hi,

You can do validations in the event AT SELECTION-SCREEN.

At selection-screen on p_werks.

if p_werks is initial.

message e000 with 'Enter a value for werks'.

endif.

At selection-screen.

if p_matnr is initial.

message e000 with 'Enter a value for matnr'.

endif.

Regards,

Sailaja.

Read only

Former Member
0 Likes
590

at <b>AT SELECTION-SCREEN.</b> event

AT SELECTION-SCREEN.

  IF p_strt = 'X'.
    IF ( p_box1 IS INITIAL OR p_box2 IS INITIAL OR p_box3 IS INITIAL OR
         p_box4 IS INITIAL OR p_box5 IS INITIAL ) AND sy-ucomm = 'ONLI'.
      MESSAGE e069 WITH 'Please make an entry in all the fields'.
    ENDIF.

    IF p_box1 > p_box2 AND p_box1 > p_box3 AND p_box1 > p_box4
                       AND p_box1 > p_box5.
      MESSAGE e069 WITH 'Please enter the values in ascending order'.
    ELSEIF p_box2 > p_box3 AND p_box2 > p_box4
                       AND p_box2 > p_box5.
      MESSAGE e069 WITH 'Please enter the values in ascending order'.
    ELSEIF p_box3 > p_box4 AND p_box3 > p_box5.
      MESSAGE e069 WITH 'Please enter the values in ascending order'.
    ELSEIF p_box4 > p_box5.
      MESSAGE e069 WITH 'Please enter the values in ascending order'.
    ENDIF.

  ENDIF.
  IF p_deta = 'X' OR p_summ = 'X'.
    SELECT SINGLE *
      FROM oiuh_cm_ba
*      INTO CORRESPONDING FIELDS OF TABLE it_owner_temp
      WHERE ba_ba_no IN s_own.
    IF sy-subrc <> 0.
      MESSAGE e069 WITH 'Please enter the correct associate number'.
    ENDIF.
    CLEAR it_owner_temp.
    REFRESH it_owner_temp.
  ENDIF.