Skip to Content
avatar image
Former Member

SELECTION SCREEN VALIDATION-1

select-options:s_werks for likp-werks.

plz tell me how to validate s_werks in this case.

with example

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    Aug 21, 2007 at 04:46 AM

    Hi,

    Use the event at selection screen on field .

    At selection screen on field likp-werks.

    if <some condition>.

    error message.

    endif.

    Regards,

    Sathiya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 04:48 AM

    HI ,

    AT selection-screen on s_werks.

    select werks into w_werks from likp where werks in s_werks.

    IF sy-subrc ne 0.

    message 'ERROR'.

    endif.

    Thanks,CSR.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2007 at 04:52 AM

    Hi..

    TABLES : T001W.

    AT SELECTION-SCREEN ON S_WERKS.

    SELECT SINGLE * FROM T001W

    WHERE WERKS IN S_WERKS.

    IF SY-SUBRC NE 0.\

    Message 'Plant not found' TYPE 'E'.

    ENDIF.

    <b>Reward if Helpful</b>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 05:00 AM

    hI Pavan

    use at selection-screen on s_werks.

    reward points to all helpful answers

    kiran.M

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 05:05 AM

    Hi Pavan,

    DATA : v_werks TYPE likp-werks.

    select-options:s_werks for likp-werks.

    AT selection-screen on s_werks.

    select single werks into v_werks from likp where werks in s_werks.

    IF sy-subrc ne 0.

    message 'Enter correct value' TYPE 'I'.

    endif.

    Rewards points if helpful.

    regards

    Sourabh Verma

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 05:09 AM

    u can use the bwlo.

    at selection-screen on s_werks.

    select werks from likp into table it_likp where werks in s_werks.

    if sy-subrc <> 0.

    mess.

    endif.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 05:23 AM

    hi,

    at selection-screen on s_werks.

    select single * from likp where werks in s_werks.

    if sy-subrc ne 0.

    message 'wrong plant no given' type 'E'.

    endif.

    if helpful reward some points.

    with regards,

    Suresh Aluri.

    Add comment
    10|10000 characters needed characters exceeded