Validation of fields in sap abap programming

  IF s_regio IS NOT INITIAL.
    PERFORM f_validate_regio.
  ENDIF

FORM f_validate_ebeln.
  DATA: lv_ebeln TYPE ebeln.
  SELECT SINGLE ebeln FROM ekko INTO lv_ebeln
   WHERE ebeln IN s_ebeln.
  IF sy-subrc <> 0 AND lv_ebeln IS INITIAL.
    MESSAGE e034 WITH text-007. "Invalid PO
  ENDIF.
ENDFORM. 

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

How to Give Dropdown in alv report in sap abap programming Language

Long Text in input and output field in module pool