‎2006 Jun 05 12:43 PM
Hi,
I have assigned a program to a dynamic action via view t588z. The problem is that I don't know how to retrieve the input fields or how to set the return fields. Anyone who knows how to do this?
Thanks.
/ Elvez
‎2006 Jun 05 12:54 PM
Hi
use <b>ESS_DYNAMIC_INFOTYPE_READ</b> to read infotype data dynamically
‎2006 Jun 05 12:54 PM
Hi
use <b>ESS_DYNAMIC_INFOTYPE_READ</b> to read infotype data dynamically
‎2006 Jun 05 1:00 PM
use CHANGE_PSPAR(ZHICHG99)and F in the dynamic action and
the code in the program ZHICHG99, sub routine :CHANGE_PSPAR would be....
FORM CHANGE_PSPAR.
CASE P0000-MASSN.
Rehire-contractor
WHEN '10'.
IF PSPAR-PERSK EQ 'KN' OR PSPAR-PERSK EQ 'KS'.
PSPAR-PERSG = '3'.
ENDIF.
Rehire Domestic helper
IF PSPAR-PERSK EQ 'DH'.
PSPAR-PERSG = '5'.
ENDIF.
Resignation
reward points and close the thread
gunjna
‎2006 Jun 05 1:02 PM
Thanks Ganesh,
where do I get the input parameter PERS_NR from?
/ Björn
‎2006 Jun 05 1:13 PM
Hi
pers_nr is an optional field & its the pernr for which u want to read the infotype data dynamically.
u can get pernrs from pa0006 table by writing a select
& then fetch all pernrs into an itab.
now
loop at itab .
call function <b>ESS_DYNAMIC_INFOTYPE_READ</b>
endloop.
hope i'm clear
plz reward if useful
‎2006 Jun 05 1:13 PM
Hi Gunjan,
thanks for your reply. How are the values of p0000 and pspar assigned (initially filled) in the subroutine?
/ Elvez
‎2006 Jun 05 1:21 PM
Hi,
b4 that subroutine use:
This program is to default the employee group in infotype 0001
TABLES: P0000,
PSPAR.
reward points if that helps
gunjan
‎2006 Jun 05 1:21 PM
Hi again Ganesh,
where do I get values of the select parameters from?
/ Elvez
‎2006 Jun 05 1:23 PM
just declare it like that ...
and these structures will b populated...
regds
gunjan
‎2006 Jun 05 1:24 PM
if u directly say p0000-pernr in the program
u can refer the personnel no at run time..
‎2006 Jun 05 1:25 PM
‎2006 Jun 05 1:27 PM
Hi Elvez,
Plz reward points and close the thread.
regards
Gunjan
‎2006 Jun 07 12:30 PM
Hi Gunjan,
I am trying to use infotype 0041, but it is not filled automatically. How come?
/ Elvez