cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Zeile 0008 Sprachelement im Kontext nicht erlaubt

Former Member
0 Kudos

Hi,

I am defining a subroutine in the Form Routines tab of Global definitions of a smartform. When I check the node, it is giving me the above error . Your help will be appreciated.

Following is the code:

*----


  • INTERNAL TABLE DECLARATIONS

*----


data : begin of input_table occurs 0.

include structure itcsy.

data : end of input_table.

data : begin of output_table occurs 20.

include structure itcsy.

data : end of output_table.

*----


  • FIELD GROUPS & FIELD SYMBOLS

*----


field-symbols: "022+

<flag>. "022+

----


  • FORM X_READ_FLAG

----


  • Fill the layout text symbol from the program field

----


  • --> US_INTAB Incoming USING parameters

  • <-- CH_OUTTAB Outgoing CHANGING parameters

----


form x_read_flag tables us_intab like input_table[]

ch_outtab like output_table[].

*

clear: us_intab, ch_outtab.

*

  • Read the fieldname

read table us_intab index 1.

if sy-subrc eq 0.

  • Assign the layout text symbol to the program field

assign (us_intab-name) to <flag>.

endif.

*

  • Send the value back

read table ch_outtab index 1.

if sy-subrc eq 0.

ch_outtab-value = <flag>.

modify ch_outtab index 1.

endif.

endform.

Thank you,

Surya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

That is German message and see the correspond message in English

Line 0008 element of speech in the context does not permit

Former Member
0 Kudos

Hi Seshu,

Thank you for the English translation. In this I really don't know why this error is coming ? Any clues will be appriciated.

Also Can't I use the field symbols defined in Field symbols tab in Fourm routines and table types defined in Types tab in Form routines tab?

Thank you,

Surya.

Message was edited by:

Surya

Former Member
0 Kudos

We could if you would post the message id and number.

Rob

Former Member
0 Kudos

Hi Rob,

I am getting this error when I do syntax check of the Form rountines tab of global definitions. How to know the error message id and number in Smartforms ?

Thank you,

Surya

Former Member
0 Kudos

Sorry - I didn't realize it was a syntax error.

Rob

Former Member
0 Kudos

Hi All,

Also When I try to use the PERFORM <..> IN PROGRAM <...> in program lines node, syntactically correrct but when running, I am getting a dump and dump says

"A routine call specifies fewer parameters than the number

given when defining the routine.

Error in ABAP application program. "

If I know how to use this statement in porgram lines node, it would be a great help for me.

Thank you,

Surya

Former Member
0 Kudos

Hello Surya,

I never used ITCSY Structure in smartform and i think we should not use.

ITCSY is related to SAP SCRIPT.

write the simple query in program lines.

In program lines -> you can use input and output parameters

perform name using

changing

in form routine write the code --

if you want to get multiple values - then use program lines in loop command in smartform..

Thanks

Seshu