2010 Apr 13 1:01 PM
hi all,
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.
2010 Apr 13 1:34 PM
Hi,
Implement this exit as well EXIT_SAPLMEREQ_003 in order to import data from your newly created subscreen.
Regards
Ahsan
2010 Apr 13 1:34 PM
Hi,
Implement this exit as well EXIT_SAPLMEREQ_003 in order to import data from your newly created subscreen.
Regards
Ahsan
2010 Apr 14 4:20 AM
2010 Apr 14 10:15 AM
Hi,
Implement this code in EXIT_SAPLMEREQ_003 exit.
DATA: lv_req_item TYPE mereq_item.
DATA: re_aktvt TYPE aktvt.
CALL METHOD im_req_item->get_data
RECEIVING re_data = lv_req_item.
CALL METHOD im_req_item->get_activity
RECEIVING re_aktvt = re_aktvt.
CASE re_aktvt.
* Display mode
WHEN 'A'.
* Change mode
WHEN 'V'.
lv_req_item-zz_budget = eban-zz_budget. "<---- Your Feilds here
lv_req_item-zz_budgetflag = eban-zz_budgetflag. "<---- Your Feild here
CALL METHOD im_req_item->set_data
EXPORTING im_data = lv_req_item.
ex_changed = 'X'.
ENDCASE.
2010 Apr 15 4:44 AM
Thanks a ton. It is working perfectly. I am closing this thread. Thank you very much.
2012 Feb 13 6:01 AM
Hi Aboltabol,
Can you provide me the logic that you have written in EXIT_SAPLMEREQ_001 (PBO).
Thanks in advance