2023 Nov 02 1:33 PM
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.
2023 Nov 02 1:59 PM
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.
2023 Nov 02 1:59 PM
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.
2023 Nov 02 10:59 PM
You're the best man, thank u very mutch.
I made changes in the structure during debug and works fine.