09-11-2014 8:50 AM
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.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE MATNR = WA_YVIANDETA-MATNR
AND SPRAS = SY-LANGU.
IF SY-SUBRC = 0.
MOVE MAKT-MAKTX TO MAKTX.
ENDIF.
IF WA_YVIANDETA-MATNR = '000000000000099999'.
MAKTX = 'Garbage'.
ENDIF.
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 ....
09-11-2014 8:53 AM
In Global settings -> Global Definitions, Declare a Global Data - MAKT type MAKT.
Remove the tables declaration from your code.
~Lokesh
09-11-2014 8:53 AM
In Global settings -> Global Definitions, Declare a Global Data - MAKT type MAKT.
Remove the tables declaration from your code.
~Lokesh