Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

EXPORTING DATA FROM SCREEN FIELDS

Former Member
0 Likes
453

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.

2 REPLIES 2
Read only

Former Member
0 Likes
398

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

Read only

Former Member
0 Likes
398

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