can one write a research paper which is based on his previous paper
Writing follow-up papers building on previous work is not at all self-plagiarism. So long as there is a material difference in the main emphasis of the paper, you should be fine. In your case, it sounds like the original article was the introduction of method X, and the follow-up article or articles will be incremental improvements of method X and descriptions of a practical implementation.