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

ME_PROCESS_PO_CUST~PROCESS_HEADER not updating header data

SimoneMilesi
Active Contributor
0 Likes
1,379

Hi gurus,

i need to park/hold a PO and i implemented the badi ME_PROCESS_PO_CUST.

I worked in methodPROCESS_HEADER, putting this piece of code


DATA ls_mepoheader TYPE mepoheader.
  ls_mepoheader = im_header->get_data( ).
 
  ls_mepoheader-memory = 'X'.
  im_header->set_data( im_data = ls_mepoheader ).

I followed in debug the BADI and i see that the it should works, but in my EKKO table, memory field is blank.

I debugged the SET_DATA method too and discovered this



  CALL METHOD me->get_data( IMPORTING ex_data = l_data_old ).
  CALL METHOD me->get_datax( IMPORTING ex_data = l_datax_old ).
  MOVE-CORRESPONDING l_data_old TO l_mepotech.
 
  MOVE im_data TO l_data_new.
  MOVE-CORRESPONDING l_mepotech TO l_data_new.
 
 

But in this way the program does not overwrite l_data_new with l_data_old information?

Hi gurus,

i need to park/hold a PO and i implemented the badi ME_PROCESS_PO_CUST.

I worked in methodPROCESS_HEADER, putting this piece of code


DATA ls_mepoheader TYPE mepoheader.
  ls_mepoheader = im_header->get_data( ).
 
  ls_mepoheader-memory = 'X'.
  im_header->set_data( im_data = ls_mepoheader ).

I followed in debug the BADI and i see that the it should works, but in my EKKO table, memory field is blank.

I debugged the SET_DATA method too and discovered this



  CALL METHOD me->get_data( IMPORTING ex_data = l_data_old ).
  CALL METHOD me->get_datax( IMPORTING ex_data = l_datax_old ).
  MOVE-CORRESPONDING l_data_old TO l_mepotech.
 
  MOVE im_data TO l_data_new.
  MOVE-CORRESPONDING l_mepotech TO l_data_new.
 
 

But in this way the program does not overwrite l_data_new with l_data_old information?

2 REPLIES 2
Read only

Former Member
0 Likes
629

Hi,

Please try this links:

Thanks,

AMS

Read only

0 Likes
629

Hi! I give a look at your threads, but there's nothing that help me.

I notice that ERNAM field, instead, it's changed.

There isn't an option to force the system to hold the PO via BADI?