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

Error in 'HR_INFOTYPE_OPERATION' function module.

Former Member
0 Likes
480

Hi experts i am using 'HR_INFOTYPE_OPERATION' this function module in my program . This is the parameters i passed to it.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '0585'

number = number

lockindicator = space

validityend = pendda

validitybegin = pbegda

record = p0585

operation = p_oper

tclas = 'A'

dialog = '2'

importing

return = wa_return

key = wa_key.

But when i run this program it gives dump as shown below.

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_ASSIGN_CAST_ILLEGAL_CAST'

not caught in

procedure "HR_INFOTYPE_OPERATION" "(FUNCTION)", nor was it propagated by a

RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The error occurred at a statement of the form

ASSIGN f TO <fs> CASTING.

ASSIGN f TO <fs> CASTING TYPE t.

or

ASSIGN f TO <fs> CASTING LIKE f1.

or

at table statements with the addition

ASSIGNING <fs> CASTING.

The following error causes are possible:

1. The type of field f or the target type determined by <fs>, t or f1

contains data references, object references, strings or internal tables

as components.

These components must match exactly as far as their position (offset)

and their type are concerned.

2. The specified type t or the type of f1 are not suited for the type of

the field symbol <fs>.

3. The row type of the related table is not suited for the target type specified by <fs> according to the rules described in 1).

So please help me its urgent and send me the correct solution of this problem

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
416

Hi

check if variable p0585 is a row. The variable can't be a table.

JS

1 REPLY 1
Read only

Former Member
0 Likes
417

Hi

check if variable p0585 is a row. The variable can't be a table.

JS