Arpit,
Please look at these two points.
Are BDocs to BW generated when you change status of leads manually on Web UI/GUI? If yes then it should get generated from program as well.
In you custom program, have you done direct table updates or used functions/methods that directly update status. Then BDocs will not get generated.
Cheers,
Niraj