Skip to Content
0
Former Member
Mar 15, 2007 at 03:10 PM

exit error

11 Views

Hi,

I am writing a simple exit function.I am getting en error message " Field Symbol has not yet been assigned'.This is a dump error which appears when i try to execute the exit function which has following code,

FIELD-SYMBOLS : <fsl_wa> type any,

<fsl_acty> type any,

<fsl_hc> type any,

<fsl_tw> type any.

LOOP AT xth_data ASSIGNING <fsl_wa>.

  • ASSIGN COMPONENT 'S_CHAS-ACHCACTY' OF STRUCTURE <fsl_wa> TO <fsl_acty>

*.

  • if <fsl_acty> eq 'E'.

ASSIGN COMPONENT 's_kyfs-AKHDCNT' OF STRUCTURE <fsl_wa> TO <fsl_hc>.

ASSIGN COMPONENT 's_kyfs-AKTOTWAGE' OF STRUCTURE <fsl_wa> TO <fsl_tw>.

<fsl_tw> = <fsl_hc> * 20 .

  • endif.

ENDLOOP.

ENDFUNCTION.