on 10-21-2008 4:30 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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>.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Naga raj
please clear about your problem???
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.