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

PRICING FM

Former Member
0 Likes
614

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.

2 REPLIES 2
Read only

Former Member
0 Likes
562

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

Read only

Former Member
0 Likes
562

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