cancel
Showing results for 
Search instead for 
Did you mean: 

FUNCTION EXIT_SAPFP50M_001 - Infotypes with dec fields

Former Member
0 Kudos

Following an upgrade to 4.7 we have a problem with the above function exit in HR. (Function Group XPAD)

Using the SAP example code 'MOVE INNNN to I0008' given in include LXPADF01 produces the following message on activation when we try to use it for infotype 386:

"<b>I0386" and "INNNN" are not mutually convertible. In Unicode programs,

"I0386" must have the same structure layout as "INNNN", independent of

the length of a Unicode character</b>.

All worked Ok in 4.5B and we think it is caused by the fact that the Infotype contains non-character fields causing a conversion problem. Does anyone have an easy solution to this problem?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Don't worry I found the answer myself!!

Using objects/methods

CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN

EXPORTING

PRELP = INNNN

IMPORTING

PNNNN = I0386.

etc to do the conversion.