2010 Sep 04 6:57 AM
hi Alll,
I have a requirement where i need to stop STO.
for that i need the item table information when user presses enter.
I m doing it in badi under Process_item, but here i get only one item at a tme.....which does not serve my req.
Kindly help me out on this.
Thanks a Ton in advance,
Kushagra sharma
hi Alll,
I have a requirement where i need to stop STO.
for that i need the item table information when user presses enter.
I m doing it in badi under Process_item, but here i get only one item at a tme.....which does not serve my req.
Kindly help me out on this.
Thanks a Ton in advance,
Kushagra sharma
2010 Sep 06 2:20 AM
Hi,
why don't you use PROCESS_HEADER? Here you can reference with type IF_PURCHASE_ORDER_MM. This interface has method GET_ITEMS which returns references to all items. Or what info do you need from PROCESS_ITEM?
Cheers
2010 Sep 06 5:13 AM
Solved by the below code.
Get actual line items
CALL METHOD im_header->get_items
RECEIVING
re_items = lt_itemrefs.
LOOP AT lt_itemrefs INTO ls_itemref.
CALL METHOD ls_itemref-item->get_data
RECEIVING
re_data = re_item.
*~ Data Declarations
endloop.
Thanks a ton,
Kushagra Shrma