If by client you mean customer (sold-to-party, ship-to-party, bill-to-party, payer)), then you can check if the customer number exists in the system by making a
SELECT SINGLE *
FROM KNA1 WHERE
KUNNR = inputed_number.
IF SY-SUBRC NE 0.
that means 0 (zero) corresponding records found
do something
ENDIF.
If you want to do this check automatically, in a selection screen, use MATCHCODE 'debi'. See documentation on SELECT-OPTIONS for details.
Add a comment