Hi Lakshmi,
Below is an effective way to store extended data of a BP and displaying the same as an assignment block. You would not need to code anything for the process of storing, fetching and displaying data as an assignment block using the below.
Adding Tables - Application Enhancement Tool - SAP Library
Regards,
Sai Kiran.
Message was edited by: Sai Kiran Durgumahanti