07-04-2007 7:10 AM
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
07-04-2007 7:13 AM
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.
07-04-2007 7:22 AM
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