Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

  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 ....


Former Member
Former Member replied

In Global settings -> Global Definitions, Declare a Global Data - MAKT type MAKT.

Remove the tables declaration from your code.

~Lokesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question