Application Development 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: 

purchase price based on vendor/Customer/material

Former Member
0 Kudos

Hi all, I would like to set up a pricing access sequence of vendor/customer/material in PB00 pricing. this PO is linked from TAS third party sales order.a and I want to get the customer number from this sales order. and let user maintain the condition table.  I have read a lot of comment using Exit_SAPMM06E_013 and also BADI ME_PO_pricing_cust. is it the right way to do so? and should I activate some new field catalog? thanks in advance.

1 ACCEPTED SOLUTION

VenkatRamesh_V
Active Contributor
0 Kudos

Hi ,

BADI ME_PROCESS_PO_CUST

METHOD IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

DATA : ls_mepoitem TYPE mepoitem,

           ls_condition     TYPE  komv,

           lt_conditions TYPE mmpur_tkomv,

ls_mepoitem = im_item->get_data( ).         " getting item data

im_item->get_conditions( IMPORTING ex_conditions = lt_conditions ). " Getting the pricing data

im_item->set_conditions( EXPORTING im_conditions = lt_conditions ). "Updating pricing data.

Hope it helpful.

Regards,

Venkatramesh.V

2 REPLIES 2

VenkatRamesh_V
Active Contributor
0 Kudos

Hi ,

BADI ME_PROCESS_PO_CUST

METHOD IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

DATA : ls_mepoitem TYPE mepoitem,

           ls_condition     TYPE  komv,

           lt_conditions TYPE mmpur_tkomv,

ls_mepoitem = im_item->get_data( ).         " getting item data

im_item->get_conditions( IMPORTING ex_conditions = lt_conditions ). " Getting the pricing data

im_item->set_conditions( EXPORTING im_conditions = lt_conditions ). "Updating pricing data.

Hope it helpful.

Regards,

Venkatramesh.V

0 Kudos

Thanks Ramesh,

let me digest.

Kai