Skip to Content
author's profile photo Former Member
Former Member

Regarding badi me_process_po_cust

i want to get all line item of PO number , if there is 3 line item , i wan to to export all three line item with material and quantity.

line item material number quantity

10 m1 10

20 m2 20

30 m3 40


method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM .

data:ls_poheader TYPE mepoheader.
data:lm_poheader TYPE REF TO if_purchase_order_mm.
data: wa_item TYPE mepoitem .
data: A type mepoitem.

lm_poheader = im_item->get_header( ).
ls_poheader = lm_poheader->get_data( ).

wa_item = im_item->get_data( ).

CALL METHOD im_item->set_data
EXPORTING
im_data = WA_ITEM.

endmethod.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 09, 2012 at 11:20 AM

    lt_items = im_header->get_items( ).

    LOOP AT lt_items ASSIGNING <item>.

    ls_item = <item>-item->get_data( ).

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.