01-07-2008 4:37 PM
ME_PROCESS_PO_CUST "IMPLEMENTING CLASS
IF_EX_ME_PROCESS_PO_CUST " INTERFACE
POST "METHOD
POST HAS TWO PARAMETERS
IM_EBELN
IM_HEADER TYPE REF TO IF_PURCHASE_ORDER_MM
IF_PURCHASE_ORDER_MM "INTERFACE
GET_DATA "METHOD , WORKIG FINE
GET_ITEMS "METHOD
GETI_ITEMS HAS PARAMETER REITEMS
REITEMS IS TABLE TYPE PURCHASE_ORDER_ITEMS
WHICH IS LINE TYPE PURCHASE_ORDER_ITEM
AND THIS LINE TYPE HAS FIELD
ITEM WHICH IS TYPE IF_PURCHASE_ORDER_ITEM_MM
AND AGAIN IN THIS INTERFACE THERE IS METHOD GET_DATA TO GET ITEM DATA.
PLEASE SUGGEST ME HOW TO ACCESS ITEM DATA ,
IF POSSIBLE PLEASE WRITE THE CODE AS I AM VERY POOR AT 'OOPS' AND ITS VERY VERY URGENT.
THANKS AND REGARDS
Edited by: TRY-N-TRY on Jan 7, 2008 6:23 PM
01-07-2008 9:27 PM
Hello
If you had searched the SDN forums you would have found plenty of answers to your question.
Following is some sample coding:
method IF_EX_ME_PROCESS_PO_CUST~POST.
DATA:
ls_header TYPE mepoheader,
lt_items TYPE purchase_order_items,
ls_item TYPE purchase_order_item,
ls_item TYPE mepoitem.
ls_header = im_header->get_data( ).
lt_items = im_header->get_items( ).
LOOP AT items INTO ls_item.
ls_item = line_item-item->getdata( ).
" process item data...
ENDLOOP.
ENDMETHOD.
Regards,
Uwe
PS: Do not use such kind of pseudonyms instead of your real name. Because my impression is that a nobody (in term of ABAP development competence) tries to claim to be a somebody who fills his knowledge gaps via SDN. Using pseudonyms significantly decreases your changes to get any answers at the SDN forums.
01-07-2008 9:27 PM
Hello
If you had searched the SDN forums you would have found plenty of answers to your question.
Following is some sample coding:
method IF_EX_ME_PROCESS_PO_CUST~POST.
DATA:
ls_header TYPE mepoheader,
lt_items TYPE purchase_order_items,
ls_item TYPE purchase_order_item,
ls_item TYPE mepoitem.
ls_header = im_header->get_data( ).
lt_items = im_header->get_items( ).
LOOP AT items INTO ls_item.
ls_item = line_item-item->getdata( ).
" process item data...
ENDLOOP.
ENDMETHOD.
Regards,
Uwe
PS: Do not use such kind of pseudonyms instead of your real name. Because my impression is that a nobody (in term of ABAP development competence) tries to claim to be a somebody who fills his knowledge gaps via SDN. Using pseudonyms significantly decreases your changes to get any answers at the SDN forums.
01-08-2008 4:07 PM
Thank you very much. i tried to search but in vain, i will have to search in efficient manner though.
Regards.