2014 Jun 27 2:29 PM
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
2014 Jun 27 2:38 PM
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.
2014 Jun 27 3:02 PM
But it reads betwen begin date(begda) and end date(endda) ?
like a select options?
2014 Jun 27 4:43 PM
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.
2014 Jun 27 4:05 PM
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.