The character Pippi Longstocking was invented for her daughter to amuse her while she was ill and bed-ridden .
However , Pippi Longstocking , her most famous character , was invented for her daughter Karin , who was , at the time , ill and had to stay in the bed .