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

Komk & Komp

Former Member
0 Likes
2,568

Hi

my requirement is to calculate RE-PRICING for sales order using function module PRICING

i have VBELN and POSNR for sales order.

any one knows how to populate komk and komp structure to pass FM PRICING???

thankx

Message was edited by:

Ripal Patel

Hi

my requirement is to calculate RE-PRICING for sales order using function module PRICING

i have VBELN and POSNR for sales order.

any one knows how to populate komk and komp structure to pass FM PRICING???

thankx

Message was edited by:

Ripal Patel

6 REPLIES 6
Read only

Former Member
0 Likes
1,521

u can get KNUMV from VBAK of a given sales Order.

then read table KONV.

Regards

Prabhu

Read only

h_senden2
Active Contributor
0 Likes
1,521

Try the following function modules :

RV_PRINT_PRICE_HEAD

RV_PRINT_PRICE_ITEM

regards,

Hans

Please reward all helpful answers !!!!!

Read only

Former Member
0 Likes
1,521

hi

fm suggested are also having importing parameter komk & komp

RV_PRINT_PRICE_HEAD

RV_PRINT_PRICE_ITEM

can any body send sample code who have use these fm before?

Read only

Former Member
0 Likes
1,521

Hi

I don't know why you are struggling with this fun module PRICING?

Generally in SD and MM modules Pricing is a major area where we need to configure lot of things to get the prices correctly like

Define condition records in VK11, Condition Tables, Access sequences and Condition records and the pricing procedures etc.

Once you define all these things then the data will be in the tables KONV and KONP tables.

using the VBAK-KNUMV and VBAP-POSNR fields to KONV-KNUMV and KONV-KPOSN fields we get the respective pricing related data for that condition type(KSCHL).

so take the help of a functional guy in this regard to configure the pricing procedure and make use of it.

reward if useful

regards

Anji

Read only

Former Member
0 Likes
1,521

hai patel,

You must be filling the komp table first with important fields like matnr and kposn and than you fill the komk table by getting the condition record 'KNUMV' and the important thing is reference should be maintained between komk and komp by item line.

Thanks

raju N

Read only

Former Member
0 Likes
1,521

try SPR_KOMK_KOMP_FILL

regards,

Pavan