
                select Document_id as "Document_id", Error_Message as "ErrMsg"
                from dbo.p_PersonDocument_upd(
                    PersonDocument_id := '500801004150803',
                    Server_id := '13101069',
                    Person_id := '2401536',
                    DocumentType_id := '13',
                    OrgDep_id := '17885',
                    Document_Ser := '46 16',
                    Document_Num := '389562',
                    Document_begDate := '2016-10-21',
                    Document_endDate := null,
                    pmUser_id := '347302687729'
                );
            
