cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice: items with price = 0 not displayed

Former Member
0 Kudos

Hi,

I have a sapscript with a specific edition program to print Invoices. Only items with not null price is printed!

While debugging, I check that in case price is null, the function RV_PRICE_PRINT_ITEM return tkomvd-kposn = 00000, even if the posnr is 10 (that isn't happen when VBRP-NETWR is # 0.

any suggestion?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

try to Debug the FM and also check the Work areas before passing them to FM

Try to find the name of the table for KOMV may be KONV if i am right

Regards

Shiva

Former Member
0 Kudos

try to keep netwr value in charcter or numc and then print..

otherwise it print as space.

Former Member
0 Kudos

But all the line isn't dispalyed. I think that the problem is in the call function :

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.

A part of process is based on TKOMVD. And when the price is 0, the value returned in this structure aren't good (0000 in the kposn) !