Skip to Content
avatar image
Former Member

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


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 11, 2014 at 07:53 AM

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

    Remove the tables declaration from your code.

    ~Lokesh

    Add comment
    10|10000 characters needed characters exceeded