12-14-2007 3:56 PM
Hi
I have a problem with the FM ' <b>HRVE_CONVERT_CURR_NAT_PAY_TABS</b>'
i need convert the currency in the table PS_EVAL , but i have a dump for conflit type with the declarations of my table.
Which type of declarations can i use for my table?
How can i use this FM for convert currency in table PS_EVAL?
Thanks for your help
Regards
Gregory
12-14-2007 4:13 PM
12-14-2007 4:06 PM
which system is it... I am looking in ECC6.0 and it says the FM doesnt exist
12-14-2007 4:13 PM
12-14-2007 4:21 PM
hi,
Iam using 4.6c version.but that fm doesnot exist in my system.Which version you are using.
In my system only "HRVE_CONVERT_TIME" exists starts with HRVECONVERT
No other related fms also.
Please check your system.
thanks
Sivaparvathi
12-14-2007 6:12 PM
Hi
I'm using this FM for Venezuelan Currency's Change and sap provided this function for made this convertion, for example iused this FM HR_CONVERT_CURRENCY_RESULT for convert RT's tables of the payroll cluster.
now I need to convert amount in PS_EVAL Table of the payroll cluster.
I'm using type HRPAYVE_PS_EVAL, but i have a dump when i used this FM
I'm working in R/3 Release 4.6C.
Others idea for convert this table??
Regards
Gregory
12-14-2007 6:26 PM
Can you give some more of the dump details? Code extract? Error message?
Rob
12-14-2007 7:42 PM
Hi
<b>part of my dump</b>
The call to the function module "HRVE_CONVERT_CURR_NAT_PAY_TABS" is incorrect:
The function module interface allows you to specify only fields
of a particular type under "CT_PS_EVAL". The field "WA_PS_EVAL" specified here has a different field type.
<b>My Code :</b>
LOOP AT ps_eval.
linea = sy-tabix.
MOVE-CORRESPONDING ps_eval TO wa_ps_eval.
****
call function 'HRVE_CONVERT_CURR_NAT_PAY_TABS'
exporting
iv_target_currency = moneda_endda
iv_currency_rate_date = pn-endda
iv_pernr = pernr_aux
iv_seqnr = evpdir-seqnr
changing
ct_ps_eval = wa_ps_eval
exceptions
error = 1
others = 2.
ENDLOOP.
Regards
Gregory
12-14-2007 7:52 PM
Have you declared wa_ps_eval correctly?
data: wa_ps_eval type HRPAYVE_PS_EVAL.
LOOP AT ps_eval.
linea = sy-tabix.
MOVE-CORRESPONDING ps_eval TO wa_ps_eval.
****
CALL FUNCTION 'HRVE_CONVERT_CURR_NAT_PAY_TABS'
EXPORTING
iv_target_currency = moneda_endda
iv_currency_rate_date = pn-endda
iv_pernr = pernr_aux
iv_seqnr = evpdir-seqnr
CHANGING
ct_ps_eval = wa_ps_eval
EXCEPTIONS
error = 1
OTHERS = 2.
ENDLOOP.
12-14-2007 9:05 PM
Hi
i solved my problems.
Thanks for your answer
my code:
CALL FUNCTION 'HRVE_CONVERT_CURR_NAT_PAY_TABS'
EXPORTING
IV_TARGET_CURRENCY = MONEDA_ENDDA
IV_CURRENCY_RATE_DATE = pn-endda
IV_PERNR = PERNR-PERNR
IV_SEQNR = EVPDIR-SEQNR
CHANGING
CT_PS_EVAL = PS_EVAL[]
EXCEPTIONS
ERROR = 1
OTHERS = 2.
Regards
Gregory