‎2005 Sep 15 6:43 AM
HI,
I AM DOING SCREEN EXIT FOR TCODE ME51N, ENHANCEMENT (MEREQ001) EXIT SAPLMEGUI , I HAVE ADDED TWO FIELDS
VALIDITY START DATE AND VALIDITY END DATE.
I HAVE CONFUSION ABOUT HOW TO EXPORT DATA ENTERED IN SUBSCREEN.
‎2005 Sep 15 6:54 AM
Hi ,
I guess you have extended structure CI_EBANDB to save the screen values in database.
You can use the following exits to pass data to and from subscreen -
EXIT_SAPLMEREQ_001 Export Data to Customer Subscreen for Re
EXIT_SAPLMEREQ_002 Prepare Customer Subscreen for Requisiti
EXIT_SAPLMEREQ_003 Import Data from Customer Subscreen for
Cheers
‎2005 Sep 15 7:08 AM
hi,
write code in EXIT_SAPLMEREQ_003
data: ls_mereq_item type mereq_item.
*get values if PReq item exists
if not im_req_item is initial.
*read item data from system
ls_mereq_item = im_req_item->get_data( ).
*if customer field changed
if eban-zflag ne *eban-zflag.
*fill field with new value
ls_mereq_item-zflag = eban-zflag.
*set new item data to system
call method im_req_item->set_data( ls_mereq_item ).
*tell the system that there has something changed on the customer tab
EX_CHANGED = 'X'.
endif.
endif.
is this helpful for you,
Cheers,
Sasi