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

Doubt reading Infotypes.

ronaldo_aparecido
Contributor
0 Likes
728

Good Morning Friends.

I'm working with ABAP - HR and it is my firts time with HR.

I'm working with a program and I heve a code:

lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 <ls_pa9002>-begda <ls_pa9002>-endda.

I,m reading the infotype with dates <ls_pa9002>-begda  and  <ls_pa9002>-endda.

The functional wants that i change the <ls_pa9002>-endda and insert '99991231'.

then i do:

lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 <ls_pa9002>-begda '99991231'.

Ok worked .

But now the functional wants that i read the infotype only with '99991231' and remove the <ls_pa9002>-begda.

if i write:

lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002  '99991231'.

occurs errors  of quantity of parameters:

How can I do this read only with '99991231'.?

Thanks for help

4 REPLIES 4
Read only

Former Member
0 Likes
704

HI Ronaldo,

the macro has the 5 place holders, so we need to pass all the place holders that's why it is giving the error.

to read the infotype details we need to pass begin date(begda) and end date(endda) both.

Read only

0 Likes
704

But it reads betwen begin date(begda) and end date(endda) ?

like a select options?

Read only

0 Likes
704

Hi Ronaldo,

As hari said we need to pass both.

For the functional they need the latest info about the employee.

the latest info contains the end date as 31129999.

in the begin date we can pass current date means sy-datum.

Read only

tom_demuyt
Explorer
0 Likes
704

Just go for

lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 '00000000' '99991231'.


or


lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 sy-datum '99991231'.


That should do the trick.