Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9008

Re: SYNTAX_ERROR

$
0
0

Hi  ,

Please check your local datatype declaration, you might not have included the field in your declaration you want to use in your prgram.

 

Ex :

 

 

REPORT  ZRWST_SCN.
Tables : sflight.
TYPES : BEGIN OF ty_flight,
        test1 TYPE sflight-carrid,
        test2 TYPE sflight-connid,
        END OF ty_flight.
Data  : it_tab TYPE TABLE OF ty_flight,
            wa_fli TYPE ty_flight.
wa_fli-test3 = 100.

 

Will give you the  errror.

Include test3 in your declaration of ty_flight as:

TYPES : BEGIN OF ty_flight,

        test1 TYPE sflight-carrid,

        test2 TYPE sflight-connid,

        test3 TYPE sflight-currency,

        END OF ty_flight.

Regards


Viewing all articles
Browse latest Browse all 9008

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>