NOVELTY - Organic electronic device comprises cathode, anode and at least one organic layer containing at least one heteroaryl compound (A1), where the organic layer is arranged between the cathode and anode.    USE - (A1) is useful as a charge generation material in a charge generation layer in organic electronic devices, which are organic LEDs, organic integrated circuits, organic field-effect transistors, organic thin film transistors, organic light emitting transistors, organic solar cells, organic optical detectors, organic photoreceptors, organic field-quench devices, light-emitting electrochemical cells or organic laser diodes (all claimed). (A1) is useful as electron transport materials, hole injection or hole transport materials.    ADVANTAGE - The organic device provides displays with high-quality and long life. (A1) have high thermal stability and can be sublimed without decomposition. (A) ensures organic electroluminescent devices with good efficiencies and simultaneously lead to long lifetimes.    DETAILED DESCRIPTION - Organic electronic device comprises cathode, anode and at least one organic layer containing at least one heteroaryl compound (A1) of formula (I) or (II), where the organic layer is arranged between the cathode and anode.    X = CR1 or N;    Y1 = a single bond or a bivalent group comprising B(R1), C(R1)2, NR1, O, S, C(=O), C(=C(R1))2, S(=O), S(=O)2, P(=O)(R1)2, or a bivalent 5-18 membered (hetero)aryl (optionally substituted with one or more R1);    R = H, D, F, Cl, Br, I, CHO, N(R1)2, N(Ar1)2, C(=O)Ar1, P (=O)(Ar1)2 , S(=O)Ar1, S(=O)2Ar1, CR1=CR1Ar1, CN, NO2, Si(R1)3, B(OR1)2, B(R1)2, B(Ar1)2, B(N(R1)2)2, OSO2R1, linear 1-40C-alkyl or -(thio)alkoxy, linear 2-40C-alkenyl or -alkynyl or branched or cyclic-3-40C-alkyl, -alkenyl, -alkynyl, -(thio)alkoxy (each optionally substituted with one or more R1, where one or more non-adjacent CH2-groups are optionally replaced by R1C=CR1, C?=C, Si(R1)2, Ge(R1)2, Sn(R1)2, C=O, C=S, C=Se, C=NR1, P(=O)(R1), SO, SO2, NR1, O, S or CONR1, and one or more H-atoms are optionally replaced by D, F, Cl, Br, I, CN or NO2), 5-60 membered (hetero)aryl (optionally substituted with one or more R1), and/or 5-60 membered (hetero)aryloxy (optionally substituted with one or more R1);    R1 = H, D, F, Cl, Br, I, CHO, N(R2)2, N(Ar1)2, C(=O)Ar1, P(=O)(Ar1)2, S(=O)Ar1, S(=O)2Ar1, CR2=CR2Ar1, CN, NO2, Si(R2)3, B(OR2)2, B(R2)2, B(N(R2)2)2, OSO2R2, linear 1-40C-alkyl or -(thio)alkoxy, linear 2-40C-alkenyl- or -alkynyl, branched or cyclic 3-40C-alkyl, -alkenyl, -alkynyl or -(thio)alkoxy (all optionally substituted with one or more R2, where one or more non-adjacent CH2-groups are optionally replaced by R2C=CR2, C?=C, Si(R2)2, Ge(R2)2, Sn(R2)2, C=O, C=S, C=Se, C=NR2, P(=O)(R2), SO, SO2, NR2, O, S or CONR2 and one or more H-atoms are optionally replaced by D, F, Cl, Br, I, CN or NO2), 5-60 membered (hetero)aryl (optionally substituted with one or more R2), and/or 5-60 membered (hetero)aryloxy (optionally substituted with one or more R2); either    Ar1 = 5-30 membered (hetero)aryl (optionally substituted with one or more non-aromatic residue of R1); or    two Ar1, which bind to the N or P atom by a single bond or a bridge =B(R2), C(R2)2, Si(R2)2, C=O, C=NR2, C=C(R2)2, O, S, S=O, SO2, N(R2), P(R2) und P(=O)R2; either    R2 = H, D or 1-20C-aliphatic or -(hetero)aromatic (where H atoms are optionally replaced by F); or    two or more adjacent R2 = mono- or poly-cyclic, aliphatic or aromatic ring system;    n = 0-6; and    m = 0-3.    An INDEPENDENT CLAIM is included for producing the organic electronic device comprising coating one or more layers by sublimation process and/or producing the layers with organic vapor phase deposition process or coating by a carrier gas sublimation and/or producing the layers from solution or by any printing process.