Application Development and Automation 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: 
Read only

simple QA IN SMARTFORM

Former Member
0 Likes
684

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
Read only

Bema
Active Participant
0 Likes
651

Hi ,

R u asking abt the table declaration.

if so,

declare ZMYTABLE in the tables tab of FORM interface.

Read only

Former Member
0 Likes
651

From what I get in your answer.

ZMYTABLE should be declared in the form interface TABLES.

ZMYTABLE TYPE (Table Type) MARA for example

Read only

0 Likes
651

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

Read only

Former Member
0 Likes
651

Hi,

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

Read only

Former Member
0 Likes
651

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

Read only

Former Member
0 Likes
651

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