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

need function module to get calculated pricing conditions from invoice

Former Member
0 Likes
1,322

Hello,

I'm looking for a function module to get calculated pricing conditions from invoices. These conditions don't have a condition type but a step number to be identified by. My problem is, that all function modules I know only return conditions with condition type. Does anybody know a function module which returns ALL conditions from a invoice?

Many thanks in advance!

Best regards

Holger

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
727

Hi Holger,

Try These Two Functions

CALL FUNCTION 'RV_PRICE_PRINT_ITEM'

EXPORTING

comm_head_i = komk

comm_item_i = komp

language = nast-spras

IMPORTING

comm_head_e = komk

comm_item_e = komp

TABLES

tkomv = tkomv

tkomvd = tkomvd.

CALL FUNCTION 'RV_PRICE_PRINT_HEAD'

EXPORTING

comm_head_i = komk

language = nast-spras

IMPORTING

comm_head_e = komk

comm_mwskz = print_mwskz

TABLES

tkomv = tkomv

tkomvd = hkomvd.

Pablo

Reward points if helpful....

2 REPLIES 2
Read only

Former Member
0 Likes
728

Hi Holger,

Try These Two Functions

CALL FUNCTION 'RV_PRICE_PRINT_ITEM'

EXPORTING

comm_head_i = komk

comm_item_i = komp

language = nast-spras

IMPORTING

comm_head_e = komk

comm_item_e = komp

TABLES

tkomv = tkomv

tkomvd = tkomvd.

CALL FUNCTION 'RV_PRICE_PRINT_HEAD'

EXPORTING

comm_head_i = komk

language = nast-spras

IMPORTING

comm_head_e = komk

comm_mwskz = print_mwskz

TABLES

tkomv = tkomv

tkomvd = hkomvd.

Pablo

Reward points if helpful....

Read only

0 Likes
727

Hi Pablo,

many thanks for your answer!

I've tried this function modules previously, but they only return in TKOMV condition lines with filled field KSCHL. What I need are calculated condition lines without an entry in the field KSCHL, but in the field STUNR.

In TKOMVD this lines will be returned, but only if this is customized for the specific condition for printing. Unfortunately in my case it is not and will not be customized.

Best regards,

Holger