cancel
Showing results for 
Search instead for 
Did you mean: 

routine problem in vbo2

Former Member
0 Kudos

Hi,

I have a problem in Routine 671 and 672. I am using the following function module.

call function 'K_CVTYP_GET'

exporting

i_currtyp = t_tcvprofd-currtyp

i_valutyp = t_tcvprofd-valutyp

importing

e_cvtyp = l_curtp

exceptions

illegal_combination = 1

others = 2.

call function 'TP_MATERIAL_PRICES_GET'

exporting

i_curtp = l_curtp "currency and valuation

i_komp = komp

i_erdat = komp-kursk_dat

importing

e_mack2 = mack2

e_cki_prs_ml = cki_prs_ml

exceptions

material_not_found = 1

price_not_found = 2

others = 3.

can you please explain the functionality of the above mentioned function module. since value does not returned to mack2 and cki_prs_ml.

Please help ASAP.

Regards,

Shankar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Shankaran,

Please check the FM CK13_CURRENCY_DATA_FOR_CKIBEW.

Inside this fm K_CVTYP_GET is used. Check the values used to the this Fm and urs is same.

CALL FUNCTION 'TP_MATERIAL_PRICES_GET'

EXPORTING

I_CURTP = LV_KONZERN_CURTP

I_KOMP = LS_KOMP

I_MBLNR = LV_MBLNR

I_ZEILE = LV_MBLPS

I_ERDAT = LV_MBLDT

IMPORTING

E_MACK2 = LS_MACK2

E_CKI_PRS_ML = LS_CKI_PRS_ML

E_PRS = LV_PRS

E_WAERS = LV_WAERS

E_MENGE = LV_MENGE

E_MEINS = LV_MEINS

EXCEPTIONS

MATERIAL_NOT_FOUND = 1

PRICE_NOT_FOUND = 2

ML_DATA_NOT_FOUND = 3

OTHERS = 4.

The second Fm mentioned by is used by the Fm CUMULATE_SUBITEM_VALUES.

Check the values used to the this Fm and urs is same.

Don't forget to award points

Regards,

Vasanth