Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Validation of Past Date in the selection screen

$
0
0

Hi Kishor,

 

Thanks for your reply.

 

I am already validateing the date fild, here i want to add this functionality..

I tested but its not working..

 

Below the code:

 

   IF p_date = v_x.
    IF s_date[] IS INITIAL.
      MESSAGE text-045 TYPE 'E' .
    ENDIF.

  ELSEIF p_check = v_x.
    IF s_checkt[] IS INITIAL AND s_code[] IS INITIAL.
      MESSAGE text-046 TYPE 'E'.
    ENDIF.
  ENDIF.
ENDFORM.

* Added: Past Date Validation for Selection Screen

***  DATA : lv_answer(5) TYPE c.
***
***  IF p_date = v_x.
***
***    IF p_date LT sy-datum.
***
***      CALL FUNCTION 'POPUP_TO_CONFIRM'
***       EXPORTING
***        titlebar                    = 'Title Bar for Popup'
***        text_question               = 'Do yo want to continue?'
***        text_button_1               = 'YES'
***        text_button_2               = 'NO'
***        display_cancel_button       = 'X'
***      IMPORTING
***        answer                      = lv_answer
****     TABLES
****       PARAMETER                   =
***      EXCEPTIONS
***        text_not_found              = 1
***        OTHERS                      = 2
***               .
***      IF sy-subrc <> 0.
**** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
****         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
***      ENDIF.
***    ENDIF.
***     ENDIF.
**  ENDFORM.                    " VALIDATE_ENTERED_DATE

 

Thanks in advance..

 

VJ.

 



Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>