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

Update EBAN

Former Member
0 Likes
948

Hi,

My requirement is to update the field EPROFILE in the table EBAN while running the transaction ME54N.

I have used the method "POST" of badi ME_PROCESS_REQ_CUST but it does not seems to update the table.

Following is my code used to update EBAN:-

DATA:
          l_t_reitems TYPE mmpur_requisition_items,
          l_s_reitems TYPE mmpur_requisition_item,
          l_tempx TYPE mereq_item,
          FIELD-SYMBOLS: <fs_reqitem> TYPE mmpur_requisition_item.
          im_header->get_items( RECEIVING re_items = l_t_reitems ).

          LOOP AT l_t_reitems ASSIGNING <fs_reqitem>.
            IF sy-subrc EQ 0.
              l_tempx = <fs_reqitem>-item->get_data( ).
             l_tempx-eprofile = space. 
            <fs_reqitem>-item->set_data( EXPORTING im_data = l_tempx ).
            ENDIF.                           
        ENDLOOP.

Please let me know if anything is wrong.

Thanks,

Bhumika

4 REPLIES 4
Read only

Former Member
0 Likes
618

Hi,

This badi wont effect for ME54N it effects only for ME51N, ME52N, ME53N,ME59N...

Thanks,

Shailaja Ainala.

Read only

0 Likes
618

Please give me some other alternative badi.

-Bhumika

Read only

0 Likes
618

Hi,

Try to use the badi MD_PURREQ_CHANGE....

Thanks,

Shailaja Ainala.

Read only

Former Member
0 Likes
618

thanks