Application Development 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: 

Fill fields of ME52N

0 Kudos
505

How to fill atomatically the fields 'order unit' and 'Vendor'? Using abap programing that i need.

I do not want to press the Assign buttom to returns this values,

I WANT TO CLICK ON THE SECTION and the values appears atomatically .

MEREQ001 - dont stoping in the break point, LMEQR001 dont stop to.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
457

Did you try with methods of BAdI ME_PROCESS_REQ_CUST such as PROCESS_ITEM ?

* pattern
DATA: item_data  TYPE MEREQ_ITEM,
      itme_datax TYPE MEREQ_ITEMX.
* Current values
item_data  = im_item->get_data( ).
item_datax = im_item->get_datax( ).
* Change some field(s)
if item_data-<some field> is initial.
  item_data-<some field>  = <some value>.
  im_item->set_data( item_data ).
  item_datax-<some field> = abap_true.
  im_item->set_datax( item_datax ) .
endif.
2 REPLIES 2

raymond_giuseppi
Active Contributor
458

Did you try with methods of BAdI ME_PROCESS_REQ_CUST such as PROCESS_ITEM ?

* pattern
DATA: item_data  TYPE MEREQ_ITEM,
      itme_datax TYPE MEREQ_ITEMX.
* Current values
item_data  = im_item->get_data( ).
item_datax = im_item->get_datax( ).
* Change some field(s)
if item_data-<some field> is initial.
  item_data-<some field>  = <some value>.
  im_item->set_data( item_data ).
  item_datax-<some field> = abap_true.
  im_item->set_datax( item_datax ) .
endif.

0 Kudos
457

You're the best man, thank u very mutch.

I made changes in the structure during debug and works fine.