cancel
Showing results for 
Search instead for 
Did you mean: 

HR User Exit error on SAP R3 version 5.0

Former Member
0 Kudos

Could any any please help with this error. Version 5.0 gives an error moving infotype information from a screen structure <b>INNNN</b> to a particuler infotype like <b>416</b>.

i.e <b>MOVE INNNN TO I0416</b>.

<u>Error message:</u>

"I0416" and "INNNN" are not mutually convertible. In Unicode systems, "I0416" must have the same structure layout (fragment view) as"INNNN", regardless of the length of the Unicode character.

Comparison of Structure Layout of I0416 and INNNN:

But when I use MOVE-CORRESPONDING it gives no systax error but it omits passing certain fields.

i.e. I0416-NUMBR it comes back empty on the process after input.

Accepted Solutions (1)

Accepted Solutions (1)

suresh_datti
Active Contributor
0 Kudos

Hi,

You have to do the following..

  • declare field symbols

field-symbols: <nnnn> type x,

<0416> type x.

  • Replace MOVE INNNN TO I0416. with

assign ('INNNN') to <nnnn> casting.

assign ('P0416') to <0416> casting.

move <nnnn> to <0416>.

Good Luck,

Suresh Datti

Former Member
0 Kudos

Hi,

Thank you for your respoense. i will try that as well. I used the method below to solve my problem.

CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.

CASE INNNN-INFTY.

WHEN '0008'.

CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN

EXPORTING

PRELP = INNNN

IMPORTING

PNNNN = I0008.

Now I also need need to figure out to get it back out.

Answers (0)