cancel
Showing results for 
Search instead for 
Did you mean: 

Default Employee group using user exist ZXPADU01

Former Member
0 Kudos

Hello,

I would like to know if it is possible to change the field

PSPAR-PERSG in infotype "action" -0000

via user exit ZXPADU01/2 ?

When I get p0000-MASSN = 10 ,i need to move 0 to

PSPAR-PERSG but via the user exits it is not possible.

I have coded the below logic in ZXPADU01, but it is not displaying the required employee group in actions screen.

data pspar type pspar.
case innnn-infty.
      when '0000'.
        move innnn to i0000.
         if ipsyst-massn = 'U0'.                       
                    l_persg = '4'.
          else.
                    l_persg = '1'.
          endif.
         pspar-persg = l_persg.
       move i0000 to innnn.
endcase.

Please kindly help me in this regard.

Thanks,

V.Nagaraju.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I have tried with following different scenarios, but was not able to get the required output.

1. Adding additional fields to structure I0000.

2. Using PSPAR structure

3. Using set parameter id u2018PRGu2019.

The main problem here is we are unable to pass the calculated Employee group back to the standard program which will show the required default PERSG. The Function Module for this user exit does not have the required Export Parameters, so we are not able to pass the required PERSG back to standard program.

Can any one suggest me how can I proceed further? Does any one faced similar problem. Please let me know.

Thanks,

V.Nagaraju

suresh_datti
Active Contributor
0 Kudos

Did you try using the P0000 feature via PE03? the other option ie if you are on ERP6 is to go in for an Enhancement. I agree, you cannot pass back values to screen using ZXPADU01.

~Suresh

Former Member
0 Kudos

>

> Hi,

>

> I have tried with following different scenarios, but was not able to get the required output.

>

> 1. Adding additional fields to structure I0000.

> 2. Using PSPAR structure

> 3. Using set parameter id u2018PRGu2019.

>

> The main problem here is we are unable to pass the calculated Employee group back to the standard program which will show the required default PERSG. The Function Module for this user exit does not have the required Export Parameters, so we are not able to pass the required PERSG back to standard program.

>

> Can any one suggest me how can I proceed further? Does any one faced similar problem. Please let me know.

Please try this option also, this worked for me.

data:fieldname(25) type c value '(SAPFP50M)PSPAR-PERSG'.
       field-symbols: <fs> type any.

       ASSIGN (fieldname) TO <fs>.
        MOVE '9' to <fs>.

Former Member
0 Kudos

Good solution. Thanks.

Answers (3)

Answers (3)

former_member226519
Active Contributor

to pass cprel to innnn you should use:

call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn

and vice versa.

debug your coding, should work

Former Member
0 Kudos

Naga raj

please clear about your problem???

regards

Former Member
0 Kudos

Hi

PERSG is not part of IT0000, but rather 0001. THe field you see in ifotype 0000 is pspar-persg which is passed on to it0001 I believe.

Former Member
0 Kudos

Hi,

I want to get default value for Employee group in actions infotype depending on the Action executed in PA40.

I know that for my case, I have to default the Employee group which is in Infotype 0001 but it is showing in the Actions(0000) infotype screen. So I am trying to change it with PSPAR.

As per my knowledge it wont be achieved with Dynamic actions because for infotype 0000 we cannot trigger dynamic actions.

Can any body guide me how can I proceed further with this userexit ZXPADU01. Your help will be appreciated.

Thanks,

V.Nagaraju