Skip to Content
0
Former Member
Sep 01, 2009 at 10:51 AM

How to get Quotation Details on IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

30 Views

Hi Gurus,

I am new to SAP. I am implementing changes on ME21N.

I need to copy price(Conditions Sub Page) from Quotation(VA22) to ME21N and using Interface IF_EX_ME_PROCESS_PO_CUST to implement changes.

I have created ZCL_IM_ME_PROCESS_PO_CUST class interface and added following Code and hardcoded NETPR = 180. With above change i could successfully override PO Price value.

Now the requirment is need to copy price from Quotation instead of Hardcoding. In the below method I could get any Quotation details attached to PO( We are creating PO from Purchase requisition and its tied to Quotation). How can I access quotation attached to PO iteam?

METHOD IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM .

DATA: LS_MEPOITEM TYPE MEPOITEM.

  • Call Method to get the Item Data

LS_MEPOITEM = IM_ITEM->GET_DATA( ).

  • Now manipulate the structure LS_MEPOITEM to populate the field NETPR

LS_MEPOITEM-NETPR = 180.

  • Call the below method to Set latest Values.

IM_ITEM->SET_DATA( LS_MEPOITEM ).

ENDMETHOD.

Thanks in advance.

Shreeshail

Edited by: ssganiger on Sep 7, 2009 12:22 PM

Edited by: ssganiger on Sep 7, 2009 12:34 PM