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

Reg USER EXIT PBAS0001

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2005 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

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.