Skip to Content
0
Former Member
Dec 15, 2009 at 11:24 AM

Dynamic table : need support

13 Views

Hi experts,

I`m creating a method to check absence/overtime records.

In fact, In my import param, i have the pernr, the INFTYP, , begda and endda and wanna select the employee record in this dynamic table. I still have errors. CAn you check please ?

*****************

DATA : return_enq TYPE bapireturn1,

return_deq TYPE bapireturn1.

DATA: w_tabname TYPE w_tabname,

w_dref TYPE REF TO data,

p_table(5) TYPE c.

CONCATENATE `P` im_req-infty INTO p_table.

FIELD-SYMBOLS: <t_itab> TYPE ANY TABLE .

w_tabname = p_table.

CREATE DATA w_dref TYPE TABLE OF (w_tabname).

ASSIGN w_dref->* TO <t_itab>.

SELECT * FROM (w_tabname) INTO TABLE <t_itab> WHERE begda = im_req-begda AND endda EQ im_req-endda AND pernr = im_req-pernr .