That shouldn't be a problem as long as you have at least 90 mins between flights at LHR as the check in desk will close 60 mins prior to departure and taking into account de-planing and possible change of terminals this could be an issue.
When checking in at the airport in Germany just advise the check in agent to tag your luggage only to LHR.