Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2010 at 02:05 PM

    Hi Umberto,

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.