Low- and intermediate-mass stars experience a phase of carbon enrichment and slow neutron-capture nucleosynthesis (s-process) on the asymptotic giant branch. An interesting element is the radioactive technetium, whose presence is a clear indication that nucleosynthesis happened recently. Analysing the element abundances not only in the hot evolved stars at the center of planetary nebulae helps to derive constraints for the evolution of these stars. Doing so also in their companions if they are in a binary, provides information on the mass-transfer history.