Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Custom tab fields not getting data to BADI

$
0
0

Hello Experts,

 

I am working on a requirement in which I need to create a new tab in Purchase order item level screen.

 

Steps followed.

 

Added the new fields in CI_EKPODB structure.

 

Implemented ME_GUI_PO_CUST BADI and ME_PROCESS_PO_CUST BADIS.

 

> When I open ME22N and try to enter some value in the new tab custom field, and put a break point in PROCESS_ITEM of ME_PROCESS_PO_CUST BADI, I am unable to get the data entered in the custom fields.

 

I had the below code in PROCESS_ITEM method.

 

DATA: ls_mepoitem TYPE mepoitem,

ls_mepoitem = im_item->get_data( ).

   MOVE-CORRESPONDING ls_mepoitem TO lv_ekpo.

 

    CALL METHOD im_item->set_data

       EXPORTING

         im_data = ls_mepoitem.

--------------------------------------------

 

After the get_data( ), I am able to see all the existing fields data in ls_mepoitem but not the new custom fields data.

 

Can anyone help me where I am going wrong?

 

Your inputs are much appreciated.

 

Thanks!

Sandy

 



Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>