You must have worked for a certain amount of time within the current borders of Germany. The minimum qualifying period depends on the applicable pension agreement between Germany and your country of residence. The minimum working period is 60 months (working period in Germany and working period in your current country of residence are added up). For female applicants, child raising periods in Germany are included in the 60 month minimum period.