Skip to Content
author's profile photo Former Member
Former Member

HR User Exit error on SAP R3 version 5.0

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 12, 2005 at 02:09 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.