Skip to Content
0
Former Member
Dec 05, 2006 at 01:40 PM

LOOP on a field symbol

30 Views

Hi everybody.

Here is the program I trie to compile but i got a problem as <fs> is without header.

in seltab I have all table I want to modify records.

data: xtablename(30) type c.

LOOP AT seltab.

IF seltab-low NE 'PA0000' AND seltab-low NE 'PA0001' AND seltab-low NE 'PA0002'.

concatenate 'I_' SELTAB-LOW into xtablename.

assign (xtablename) to <fs>.

LOOP AT <fs> WHERE pernr = hiring-pernr

AND begda LE I_PA0001-BEGDA

AND endda GE I_PA0001-BEGDA.

<fs>-begda = I_PA0001-BEGDA.

MODIFY <fs>.

ENDLOOP.

ENDIF.

ENDLOOP.

Thanks for your help

Message was edited by:

Raynald Hauduc

Message was edited by:

Raynald Hauduc