Skip to Content
0
Former Member
May 21, 2009 at 04:37 AM

Update EBAN

101 Views

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