Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic Action Fields?

bjorn-henrik_zink
Contributor
0 Likes
1,267

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,224

Hi

use <b>ESS_DYNAMIC_INFOTYPE_READ</b> to read infotype data dynamically

12 REPLIES 12
Read only

Former Member
0 Likes
1,225

Hi

use <b>ESS_DYNAMIC_INFOTYPE_READ</b> to read infotype data dynamically

Read only

0 Likes
1,224

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

Read only

0 Likes
1,224

Thanks Ganesh,

where do I get the input parameter PERS_NR from?

/ Björn

Read only

0 Likes
1,224

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

Read only

0 Likes
1,224

Hi Gunjan,

thanks for your reply. How are the values of p0000 and pspar assigned (initially filled) in the subroutine?

/ Elvez

Read only

0 Likes
1,224

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

Read only

0 Likes
1,224

Hi again Ganesh,

where do I get values of the select parameters from?

/ Elvez

Read only

0 Likes
1,224

just declare it like that ...

and these structures will b populated...

regds

gunjan

Read only

0 Likes
1,224

if u directly say p0000-pernr in the program

u can refer the personnel no at run time..

Read only

0 Likes
1,224

Thanks Gunjan, that solves the problem.

Read only

0 Likes
1,224

Hi Elvez,

Plz reward points and close the thread.

regards

Gunjan

Read only

0 Likes
1,224

Hi Gunjan,

I am trying to use infotype 0041, but it is not filled automatically. How come?

/ Elvez