Application Development 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: 

How to add new TAB in ME51N using MEREQ001 - custom fields in CI_EBANDB

umberto_panico
Participant
0 Kudos

Hi to All,

I've the following problem:

I have extended CI_EBANDB with some custom fields, then I have created new subscreen 011 via CMOD (MEREQ001).

Then, I've implementated EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_003.

Then, when start the ME51n the custom TAB (customer data) is empty.

Why? What the problem?

Thanks & Regards,

Umberto

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Umberto,

Could you please copy the code you implemented in EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_003 ?

2 REPLIES 2

Former Member
0 Kudos

Hi Umberto,

Could you please copy the code you implemented in EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_003 ?

0 Kudos

EXIT_SAPLMEREQ_001:
tables : ci_ebandb.
data : i_mereq_item type mereq_item.
 
if im_req_item is initial.
clear: ci_ebandb.
else.
i_mereq_item = im_req_item->get_data( ).
move-corresponding i_mereq_item to ci_ebandb.
endif.

EXIT_SAPLMEREQ_003
data : i_mereq_item type mereq_item.
 
if not im_req_item is initial.
i_mereq_item = im_req_item->get_data( ).
move-corresponding ci_ebandb to i_mereq_item .
call method im_req_item->set_data( i_mereq_item ).
endif.