Smartform System table declarations
Dear Guys ,
I have create a smartform and i have added in two places in smartforms some code for some reason.
The code is the following :
tables : makt.
SELECT SINGLE * FROM MAKT WHERE MATNR = WA_YVIANDETA-MATNR
AND SPRAS = SY-LANGU.
IF SY-SUBRC = 0.
MOVE MAKT-MAKTX TO MAKTX.
IF WA_YVIANDETA-MATNR = '000000000000099999'.
MAKTX = 'Garbage'.
The problem is that the declaration of tables : makt returns errors because it say that the table has been declared 2 times ...
I want to perform the code 2 times ...
How can i do it ?
Thanks a lot ....
In Global settings -> Global Definitions, Declare a Global Data - MAKT type MAKT.
Remove the tables declaration from your code.