In my code i have coded such that if the idoc status is 51 or 68 then the details corresponding to it should be displayed.Now have to add a new part in coding like if the status is not 51 or 68 error message should be diplayed.This is the coding ..Plz help its urgent..
IF gw_cntrl_rcrd-status = 51 OR gw_cntrl_rcrd-status = 68.
Get vendor details
PERFORM get_details.
get details of errored idoc
PERFORM get_idoc_errors.
ENDIF.