Application Development 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: 

Problems with function

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use type HRPAYVE_PS_EVAL for this table.

Rob

8 REPLIES 8

former_member156446
Active Contributor
0 Kudos

which system is it... I am looking in ECC6.0 and it says the FM doesnt exist

Former Member
0 Kudos

Use type HRPAYVE_PS_EVAL for this table.

Rob

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Can you give some more of the dump details? Code extract? Error message?

Rob

0 Kudos

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

0 Kudos

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.

0 Kudos

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