Check whether the OSS Note 815652 - Subsequent posting w/ "Read from master data": Error F5583 needs to be applied or not. Also check OSS Note 803264 - F5 583 for a cross-company code posting and Note 1470117 - AC interface: Error F5 583 in cross-company code postings / Note 957431 - F5 583 in cross-company-code posting
Regards,