on 07-05-2004 3:36 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.