Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

simple QA IN SMARTFORM

Former Member
0 Kudos
110

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>

6 REPLIES 6

Bema
Active Participant
0 Kudos
77

Hi ,

R u asking abt the table declaration.

if so,

declare ZMYTABLE in the tables tab of FORM interface.

Former Member
0 Kudos
77

From what I get in your answer.

ZMYTABLE should be declared in the form interface TABLES.

ZMYTABLE TYPE (Table Type) MARA for example

0 Kudos
77

but my itab is have data from 4 tables what i can do??

Former Member
0 Kudos
77

Hi,

Create a Z TABLE TYPE having all those fields from SE11 and use that in your smartforms.

Former Member
0 Kudos
77

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

Former Member
0 Kudos
77

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