2010 Jun 29 10:06 AM
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.
2010 Jun 29 10:13 AM
Hi,
Use f.m. 'RV_PRICE_PRINT_HEAD'. Just pass condition record number (KNUMV) in COMM_HEAD_I-KNUMV.
Regards,
Birendra
2010 Jun 29 10:47 AM
Hi Birendra,
The FM 'RV_PRICE_PRINT_HEAD' gives me the Item cond type details, i want the header details. any other way.
Thanks.
2010 Jun 29 10:58 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |