2006 Jun 15 9:06 AM
I USE THIS fm
call function lv_NAME
TABLES
ZMYTABLE = ITAB_SMART
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
WHAT IS MT DECLARATION IN THE SMARTFOEM
IN <b>GLOBAL AND THE FORM INTERFACE</b>
2006 Jun 15 9:17 AM
Hi ,
R u asking abt the table declaration.
if so,
declare ZMYTABLE in the tables tab of FORM interface.
2006 Jun 15 9:27 AM
From what I get in your answer.
ZMYTABLE should be declared in the form interface TABLES.
ZMYTABLE TYPE (Table Type) MARA for example
2006 Jun 15 9:49 AM
2006 Jun 15 9:51 AM
Hi,
Create a Z TABLE TYPE having all those fields from SE11 and use that in your smartforms.
2006 Jun 15 9:52 AM
hai,
Declare a structure which contains all the required fields from the four tables. Then you can use this directly in the form interface.
the same can be used in your program also.
Cheers,
Umasankar
2006 Jun 15 9:54 AM
Hi,
declare ITAB1 like zmytable in form interface
call function lv_NAME
TABLES
ZMYTABLE = ITAB1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if not itab1[] is initial.
loop at itab1.
move-correpsonding itab1 to ITAB_SMART
append ITAB_SMART
endloop.
endif.
Regards,
Amole