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: 

HI SMART FORM IN ECC6 VERSION

Former Member
0 Kudos

HI

forgot to mention in previous thread that this problem i am facing in ECC6 VERSION.

I HAVE WRITTEN CODE IN DRIVER PROGRAM SE38 AND I HAVE TO JUST PASS ITAB DATA INTO FORM.

ITAB HAS 3 TABLE FIELDS.

MATNR LIKE MARA-MATNR

WERKS LIKE MARC-WERKS

LGORT LIKE MAKD-LGORT

END OF ITAB.

HOW WILL I DECLEAR THIS ITAB IN FORM JUST TO FETCH DATA ( I DO NOT WANT TO USE SELECT QUERRY IN FORM )

I HAVE WRITTEN CODE (SELECT QUERRY) IN SE38.

DOES ANY ONE KNOW HOW TO DECLEAR THIS IN FORM SO THAT IN FORM I SIMPLY USE THAT ITAB TO DISPLAY DATA.

THANKING U IN ADVANCE.

ROCKY

2 REPLIES 2

amit_khare
Active Contributor
0 Kudos

To pass internal table from your driver program to smartform you need to create same table in Table Definition.

But that should be of type some standard stucture only, i.e. structure existing in SE11.

So, create a structure in SE11 and create an internal table of that type in smartform, call the Smartform in your driver program and pass the internal table to it.

Reagrds,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Just declare it in 'Form Interface' part

But, you have to make a Structure from SE11, and use it as the table types in the print program and in the smartform as well.

And don't forget to pass the internal table with the exact name like in the smartform interface.

Then you can use it with LOOP or TABLE in the smartforms