I think I understand, Rudi. My plan is to use a consolidator bceause the fares to TLV are pretty high for the dates I need. The consolidator is selling "Lufthansna" tickets, which will accrue miles according to the consolidator. But, if I understand you correctly, as long as the issued ticket has the Lufthansa flight number, even if it is a codeshare flight, I will not get bonus miles unless the ticket has the UAL flight # 3XXX.
------------------