my requirement is like this:-
while creating a purchase requisition user want to see the data of last 2 purchase order of the material (last 2 purchase order price and their date).
I have implemented enhancement MEREQ001, and written code in function module EXIT_SAPLMEREQ_001.
There I have been able to display the data of last 2 purchase orders, but I am not being able to save these data in EBAN, where I have created fields in .include structure CI_EBANDB.
My problem is I am not being able to save the data of last 2 purchase orders in these fields of EBAN.
I have searched for solutions in SDN but could'nt find a proper solution.
It will be very helpfull if you people give me a solution to save the data in EBAN.
Thanks in advance.