2005 May 25 6:45 PM
Hi,
In our company , during hire action in Pa40, when the user hits save button on infotype 8, we have to add one more wage type say '/xxxx' and amount say 'xxx' . sow when the user comes back and checks that..he will be seeing the standard wage /1000 and the wagetype amopunt ,we have add. so I went and found the USER EXIT PBAS0001 , in that EXIT_SAPFP50M_002 , i noticed INCLUDE ZXPADU02.
1) is my approach correct?.
2)I am writing code like this
data: i0008 like p0008.
case innnn-infty.
when 0008.
move innnn to i000
-
-
move i000 to innnn.
endcase.
Our system is unicode system, getting errors. how shoud i write the code
2005 May 25 7:30 PM
Unicode system will not allow you to transfer data in one shot from one structure to other.
I think you should try field by field transfer.
I am not sure if move-corresponding will help.
Thanks,
Ram
2005 May 25 7:30 PM
Unicode system will not allow you to transfer data in one shot from one structure to other.
I think you should try field by field transfer.
I am not sure if move-corresponding will help.
Thanks,
Ram
2005 May 31 2:48 PM
Hi,
I have had the same problem, you can use these methods to move data between different areas.
See example:
CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.
MOVE INNNN TO I0009.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = innnn
IMPORTING
pnnnn = i0009.
IF i0009-bankl IS INITIAL.
i0009-bankl = '0001'.
ENDIF.
MOVE I0009 TO INNNN.
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
EXPORTING
pnnnn = i0009
IMPORTING
prelp = innnn.
Good luck!
Br Benita
2005 May 31 3:23 PM
Hi,
I am working on a unicode system too and I got the same error and I used the METHOD as mentioned above and it worked for me. Actually I did this in the same exit PBAS0001 which you are using, so it will definitely work for you.
Thanks,
Sri