Skip to Content
avatar image
Former Member

Validation

Hi Guys,

I have a condition where I need to check each of record in my it_item table with field "ID No." against the material no. in MARA, and if I found any entry in mara with same Id no. then I have to execute an write statement" Material" otherwise I have to execute a write statement" Not a material"

Thanks

Rajeev Gupta

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 16, 2007 at 07:55 PM

    Hi Rajeev,

    LOOP AT it_item.

    SELECT single matnr from mara where matnr = it_itam-id_no .

    IF sy-subrc = 0.

    WRITE 'Material'.

    ELSE.

    WRITE 'Not a material'.

    ENDIF.

    ENDLOOP.

    Regards,

    Atish

    Add comment
    10|10000 characters needed characters exceeded