Hello,
This error is displayed because the system requires the relation customer and vendor, in the customer master, in General Data, then Control Data view and field Vendor, with this relation, at least in one customer and the vendor, the error is not raised anymore for the vendor indicated in the transportation. Next, the code used in the validation:
FORM /dsd/rp_check_sped_kna1.
DATA lf_shtyp TYPE shtyp. "vn_765329
SELECT SINGLE shtyp FROM /dsd/sl_tsltyasm
INTO lf_shtyp WHERE shtyp = vttk-shtyp.
IF sy-subrc = 0.
SELECT kunnr FROM kna1 INTO kna1-kunnr UP TO 1 ROWS "#EC CI_NOFIELD
WHERE lifnr = vttk-tdlnr.
ENDSELECT.
IF sy-subrc <> 0.
SET CURSOR FIELD vttk-tdlnr.
MESSAGE e201 WITH vttk-tdlnr.
"Spediteur ist keinem Debitor zugeordnet!
ENDIF.
ENDIF. "^n_765329
ENDFORM.
Include: /DSD/LRP_MV56A_EXTENSIONF01
I hope this could help you.