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

Condition Function Module

Former Member
0 Likes
1,067

Hello All,

Is there a function module that will get information regarding a Sales Order's or an Invoice's condition tab,(one that gets the individual conditions and any subtotals)? Thanks.

John

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
763

For an invoice you can try with this FM:

RV_PRICE_PRINT_HEAD

Regards,

Naimesh Patel

Read only

0 Likes
763

Hello Naimesh,

Thank you for your quick response. RV_PRICE_PRINT_HEAD does give me the condition record information, however it doesn't appear to give the subtotals. Am I not correctly using this FM? Thanks.

John

Read only

former_member195698
Active Contributor
0 Likes
763

Try the FM for Sales order

PRICING_GET_CONDITIONS in COMM_HEAD_I pass

KNUMV

KAPPL

WAERK

KALSM

VBTYP

Regards,

Abhishek

Read only

Former Member
0 Likes
763

Hi John,

Set break-point at function 'PRICING_BUILD_XKOMV', goto VA02 item condition. That function module will return condition value and subtotals.

You need to pass internal table TKOMV which you can get using function module 'RV_PRICE_PRINT_ITEM' pass COMM_HEAD_I-BELNR (vbak-vbeln) and COMM_HEAD_I-KNUMV (vbak-knumv).

Kindly Reward if helpful.

Regards,

Jack

Read only

0 Likes
763

Hi,

Is there is any function module that will get information of pricing condition(individual condition and subtotals).

I am using RV_PRICE_PRINT_ITEM. It doesn't give the subtotals.

Thanks in advance