Hi everybody,
I am looking for a way to calculate the price of an article with a manually added pricing condition of type VKEB. My coding to determine standard price of a article is like this:
* fill komk
ls_komk-vkorg = iv_salesorg.
ls_komk-vtweg = iv_distr_channel.
ls_komk-werks = iv_werks.
...
*fill komp
ls_komp-kposn = '00100'.
ls_komp-matnr = iv_article_number.
...
*call pricing
CALL FUNCTION 'PRICING'
EXPORTING
calculation_type = 'C'
comm_head_i = ls_komk
comm_item_i = ls_komp
iv_no_message_collect_lord = abap_true
IMPORTING
comm_item_e = ls_komp
TABLES
tkomv = lt_komv. "--> this is empty
rv_price = ls_komp-netwr.
This coding works for me for an article with a standard price. My problem is how can I add a manual condition like VKEB with a condition value of 200€ e.g. I guess I have to fill lt_komv for this. Could you advise me if I am right and which fields of lt_komv are relevant and how to fill it?
Kind Regards,
Gerrit