‎2010 Feb 18 5:13 PM
Hi All,
I have SmartForm(SF) with the following definition:
Note: Z_MATNR is a custom table.
Form Interface
P_PRINT TYPE Z_MATNR
P_PAGE TYPE I
Global Definitions
GWA_PRINT TYPE Y_MATNR
IT_PRINT TYPE TABLE OF Y_MATNR
Global Definitions>Types Tab
TYPES: BEGIN OF Y_MATNR,
MATNR TYPE MATNR,
MAKTX TYPE MAKTX,
END OF Y_MATNR.
I have a secondary window, inside it is a text node and code node.
In my code node, I have the following declared:
READ TABLE IT_PRINT INTO GWA_PRINT INDEX 3.
In my text node, I have
&GWA_PRINT-MATNR&
I'm having an error:
After doing a code check in SF, I have the error:
The field IT_PRINT is unknown, but there is a field with the similar name GWA_PRINT.
What would be the cause? I have them all declared already.
Thanks
‎2010 Feb 18 6:10 PM
have you entered IT_PRINT in import parameters.. in the program lines where you are reading the table..
‎2010 Feb 18 6:10 PM
have you entered IT_PRINT in import parameters.. in the program lines where you are reading the table..
‎2010 Feb 18 6:31 PM
Sorry, need to revise my scenario again.
Note: Z_MATNR is a custom table.
Form Interface
IT_PRINT TYPE TABLE OF Z_MATNR
P_PAGE TYPE I
Global Definitions
GWA_PRINT TYPE Y_MATNR
Global Definitions>Types Tab
TYPES: BEGIN OF Y_MATNR,
MATNR TYPE MATNR,
MAKTX TYPE MAKTX,
END OF Y_MATNR.
Global Definitions>INITIALIZATION tab
Input Parameters: IT_IDPRINT (I also try to remove this one)
Output Parameters: IT_IDPRINT
I have a secondary window, inside it is a text node and code node.
In my code node, I have the following declared:
READ TABLE IT_PRINT INTO GWA_PRINT INDEX 3.
In my text node, I have
&GWA_PRINT-MATNR&
I'm having an error:
After doing a code check in SF, I have the error:
The field IT_PRINT is unknown, but there is a field with the similar name GWA_PRINT.
What would be the cause? I have them all declared already.
Thanks
Edited by: Jaime Cabanban on Feb 19, 2010 2:37 AM
‎2010 Feb 19 1:59 AM
Hi,
Have you also entered the table IT_PRINT in the input parameters of Code tab? if not entered, please enter and try.
Hope it helps you.
Thanks,
Venkat.
‎2010 May 20 11:02 AM
Hi Jaime,
You probably need to declare both variables you are using, in the Import & Export Parameters of your Coding Node.
Then You can get result of your below code.
READ TABLE IT_PRINT INTO GWA_PRINT INDEX 3.**
Regards,
Varun
‎2025 Sep 16 3:38 PM
Hello,
I'm facing same issue in my smartform.
Could you help, how you solve it.
I defined the field in input/output parameters as suggested. but still getting the error same as you for my field.