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

Invoice Header Condition Read

Former Member
0 Likes
2,397

Hi all,

Am using the Function Module PRICING_SUBSCREEN_PBO to get the Sales Invoice Header condition details, passing the KNUMV value in the comm_head_i structure as follows:

lwa_comm_head_i-mandt = sy-mandt.

lwa_comm_head_i-knumv = lp_vbdrk-knumv.

CALL FUNCTION 'PRICING_SUBSCREEN_PBO'

EXPORTING

comm_head_i = lwa_comm_head_i

comm_item_i = lwa_comm_item_i

TRTYP_I = ' '

TABLES

tkomv = li_tkomv "Item pricing condition

ykomv = li_ykomv "Header pricing condition

EXCEPTIONS

error = 1

OTHERS = 2.

Runnoing the FM standalone in SE37 gives the result apprpriately, but the program does not result thew right result. Is there anything else that i need to take care of before calling the FM. Is there anuy other way to read the Header condition details for the invoices.

Appreciate ur ideas.

Rgds,

stck.

Hi all,

Am using the Function Module PRICING_SUBSCREEN_PBO to get the Sales Invoice Header condition details, passing the KNUMV value in the comm_head_i structure as follows:

lwa_comm_head_i-mandt = sy-mandt.

lwa_comm_head_i-knumv = lp_vbdrk-knumv.

CALL FUNCTION 'PRICING_SUBSCREEN_PBO'

EXPORTING

comm_head_i = lwa_comm_head_i

comm_item_i = lwa_comm_item_i

TRTYP_I = ' '

TABLES

tkomv = li_tkomv "Item pricing condition

ykomv = li_ykomv "Header pricing condition

EXCEPTIONS

error = 1

OTHERS = 2.

Runnoing the FM standalone in SE37 gives the result apprpriately, but the program does not result thew right result. Is there anything else that i need to take care of before calling the FM. Is there anuy other way to read the Header condition details for the invoices.

Appreciate ur ideas.

Rgds,

stck.

3 REPLIES 3
Read only

birendra_chatterjee
Active Participant
0 Likes
1,412

Hi,

Use f.m. 'RV_PRICE_PRINT_HEAD'. Just pass condition record number (KNUMV) in COMM_HEAD_I-KNUMV.

Regards,

Birendra

Read only

0 Likes
1,412

Hi Birendra,

The FM 'RV_PRICE_PRINT_HEAD' gives me the Item cond type details, i want the header details. any other way.

Thanks.

Read only

0 Likes
1,412

Hi,

Did You check in the document whether You have any header condition that is not subdivived into items. I suppose all of the conditions in your document are either at item level or subdivided into items, hence You get the item number also in the returing table TKOMV.

At table-level You can verify, by checking in table KONV. Pass the header condition record number, and item number = space.

Regards,

Birendra