on 02-24-2010 2:45 AM
(I am using SAP ECC 6.0)
I have created a test smartform which prints the contents of the sflight table.
In the Tables tab of the Form Interface page, I have defined a table i_data of type FLIGHTTAB. In the Global Data tab of the Global Definitions page, I have defined a row variable wa_data (Type Assignment: LIKE; Associated Type: LINE OF i_data). The form activates but when I test it, I encounter a SYNTAX_ERROR.
Here is a fragment of the message:
The following syntax error occurred in program "/1BCDWB/SAPLSF00000007 " in
include "/1BCDWB/LSF00000007TOP " in
line 68:
"Field "I_DATA" is unknown. It is neither in one of the specified table"
"s nor defined by a "DATA" statement. ."
" "
Here is a fragment of the error location (see the TABLES part of the CALL FUNCTION):
....
82 IF DESTI IS INITIAL.
83 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.
84 ENDIF.
85 DEBUG = SPACE.
86 GET RUN TIME FIELD TIME1.
@@@ CALL FUNCTION '/1BCDWB/SF00000007'
88 EXPORTING
89 ARCHIVE_INDEX = %_IARCHIVE_INDEX
90 ARCHIVE_INDEX_TAB = %_IARCHIVE_INDEX_TAB
91 ARCHIVE_PARAMETERS = %_IARCHIVE_PARAMETERS
92 CONTROL_PARAMETERS = %_ICONTROL_PARAMETERS
93 MAIL_APPL_OBJ = %_IMAIL_APPL_OBJ
94 MAIL_RECIPIENT = %_IMAIL_RECIPIENT
95 MAIL_SENDER = %_IMAIL_SENDER
96 OUTPUT_OPTIONS = %_IOUTPUT_OPTIONS
97 USER_SETTINGS = %_IUSER_SETTINGS
98 IMPORTING
99 DOCUMENT_OUTPUT_INFO = %_ODOCUMENT_OUTPUT_INFO
100 JOB_OUTPUT_INFO = %_OJOB_OUTPUT_INFO
101 JOB_OUTPUT_OPTIONS = %_OJOB_OUTPUT_OPTIONS
102 TABLES
103 I_DATA = %_OI_DATA
104 EXCEPTIONS
105 FORMATTING_ERROR = 001
106 INTERNAL_ERROR = 002
....
Does this mean I cannot use the TABLES part of the interface?
In addition, can you tell me more about the visibility of data between the Form Interface and Global Definitions? Are the data in the Form Interface globally visible inside the smartform? In the Form Interface, can I use a type defined in the TYPES tab of the Global Definitions page?
Not answered. Why does SDN have a limit of 10 unanswered questions and yet has no option to delete, so that users can post new questions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
i_data type table of FLIGHTTAB.
Hope you can resolve your problem..
Let me know if any concerns....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Form Interface what ever the Import or Export or Table Parameters u pass It should be defined in ur Driver Program with same Type.
Say I_DATA TYPE MARA In Form Interface
In Driver Program T_DATA TYPE TABLE OF MARA.
The Global Definition Fields are used within the Smartform .
Form Interface is where U interface ur Smartform and ur Driver Program.
Suppose U have defined ur own Internal Table in Driver Program, then u need to define ur own Types in the Types tab in the Global Definitions.
Whatever the parameters that u pass to the Form Interface those are to be passed while calling the FM SSF_FUNCTION_MODULE_NAME.
Regards,
Vijaya Lakshmi.T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<li>I reflected the error in my test program. It is because of wa_data LIKE i_data. Even though i_data is the globally declared internal table, We should not give as reference structure.
I hope you get the solution.
Thanks
Venkat.OIn the Global Data tab of the Global Definitions page, I have defined a row variable wa_data (Type Assignment: LIKE; Associated Type: LINE OF i_data). The form activates but when I test it, I encounter a SYNTAX_ERROR.
Hi, <li>Can you check F1 help on Associated type field in the Global Data tab of Global Definitions, you will come to know what to give to refer. Thanks Venkat.O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.