cancel
Showing results for 
Search instead for 
Did you mean: 

Error in executing 'HR_INFOTYPE_OPERATION' from webdynpro application

Former Member
0 Kudos

Hi Experts,

I am using FM 'HR_INFOTYPE_OPERATION' for infotype PA0034 operations. I have written below code in assistant class.

when i execute the class method and pass the parameters this FM executing fine and creates record into pa0034. But when i execute the webdynpro application it is giving error "Invalid parameter EXCEPTION , value ". Please Help me in solving this issue

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '0034'

NUMBER = lv_pernr

SUBTYPE = ls_p0034-subty

OBJECTID = ''

LOCKINDICATOR = ''

VALIDITYEND = ls_p0034-endda

VALIDITYBEGIN = ls_p0034-begda

  • RECORDNUMBER =

RECORD = ls_p0034

OPERATION = 'INS'

TCLAS = ' '

  • DIALOG_MODE = '0'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = ls_return

  • KEY =

Thanks

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Vijay,

I think the error message is self explanatory. Just check the values (which you are passing to the FM) should be type compatible with the importing paramters of the FM.

regards

Arjun

Former Member
0 Kudos

Hi Arjun,

when I pass the same parameters by executing the method its working fine. but when we execute Webdynpro application from browser and pass the parameters from webdynpro screen i am getting error.

arjun_thakur
Active Contributor
0 Kudos

Hi Vijay,

So you are passing the values from the screen. So you must have binded the screen fields with the attributes, just make sure that they are of the same type as the importing parameters of the FM

Regards

Arjun