2014 Nov 20 8:50 AM
Hi all,
I'm getting different Master Warranty number when i'm passing the data to a PRICING FM.
My INPUT:
wa_komk-werks = wa_mseg-werks.
wa_komp-matnr = wa_mseg-matnr.
wa_komk-lifnr = wa_ekko-lifnr.
wa_komp-elpak = wa_ekpo-konnr.
wa_komp-elpap = wa_ekpo-ktpnr.
wa_komk-kappl = 'RW'.
wa_komk-kalsm = 'ZWTYV1'.
wa_komk-prsdt = sy-datum.
wa_komk-fbuda = sy-datum.
wa_komk-fkdat = sy-datum.
wa_komk-kurrf_dat = sy-datum.
wa_komp-kposn = wa_komp-kposn + 1.
wa_komp-prsfd = c_x.
wa_komp-sktof = c_x.
wa_komp-yywty_type = wa_wtytype-val2. " Warranty Type
wa_komp-yypgi_flg = c_x.
CALL FUNCTION 'PRICING'
EXPORTING
calculation_type = 'C'
comm_head_i = wa_komk
comm_item_i = wa_komp
TABLES
tkomv = t_komv.
if anything else i need to pass?.Please suggest me if i'm wrong.
Could you please help me on this.
Hi all,
I'm getting different Master Warranty number when i'm passing the data to a PRICING FM.
My INPUT:
wa_komk-werks = wa_mseg-werks.
wa_komp-matnr = wa_mseg-matnr.
wa_komk-lifnr = wa_ekko-lifnr.
wa_komp-elpak = wa_ekpo-konnr.
wa_komp-elpap = wa_ekpo-ktpnr.
wa_komk-kappl = 'RW'.
wa_komk-kalsm = 'ZWTYV1'.
wa_komk-prsdt = sy-datum.
wa_komk-fbuda = sy-datum.
wa_komk-fkdat = sy-datum.
wa_komk-kurrf_dat = sy-datum.
wa_komp-kposn = wa_komp-kposn + 1.
wa_komp-prsfd = c_x.
wa_komp-sktof = c_x.
wa_komp-yywty_type = wa_wtytype-val2. " Warranty Type
wa_komp-yypgi_flg = c_x.
CALL FUNCTION 'PRICING'
EXPORTING
calculation_type = 'C'
comm_head_i = wa_komk
comm_item_i = wa_komp
TABLES
tkomv = t_komv.
if anything else i need to pass?.Please suggest me if i'm wrong.
Could you please help me on this.
2014 Nov 20 9:11 AM
Hi Sreenivas,
You have to define the table types in data statement like below ,
wa_komk TYPE komk,
wa_komp TYPE komp,
And also i think you should pass the 'knumv' field.
Regards.
Özgün
2014 Nov 20 9:17 AM
Sreenivas ,
Also you can take advantage of with below clue;
firstly se37 and enter the function name 'PRICING' after that,click the where used list button.
Select programs only and you can find clues with this way.
Regards.
Özgün