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

PO item validations

Former Member
0 Likes
457

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

2 REPLIES 2
Read only

mvoros
Active Contributor
0 Likes
428

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

Read only

Former Member
0 Likes
428

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