on 06-15-2007 7:04 PM
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
That is German message and see the correspond message in English
Line 0008 element of speech in the context does not permit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.