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.
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
Post a Comment