‎2007 Dec 07 11:36 AM
Hi All
I have designed a smartform i am writing my own print program for that, now that my problem was i have processed all the data in to an final internal table say it_final which contains my own structure. now i want to pass this internal table to the smartform as it is and loop there for getting a single record displayed from the internal table
my final internal table is of this structure
types: begin of t_final,
z_fnum(20) TYPE c,
name1 TYPE t001w-name1,
unam TYPE syuname,
usrname TYPE usr21-bname,
pernum TYPE usr21-persnumber,
frstnam(10) TYPE c,
lstname(10) TYPE c,
z_fullname(20) TYPE c,
aufnr TYPE caufv-aufnr,
arbpl TYPE crhd-arbpl,
ktext TYPE crtx-ktext,
erdat TYPE caufvd-erdat,
z_date(10) TYPE c,
z_orddt(10) TYPE c,
objek TYPE ausp-objek,
atwrt TYPE ausp-atwrt,
atflv(8) TYPE c,
maktx TYPE makt-maktx,
matkl TYPE mara-matkl,
dwerk TYPE afpo-dwerk,
charg TYPE afpo-charg,
licha TYPE mcha-licha,
ntgew TYPE mara-ntgew,
gewei TYPE mara-gewei,
z_maratotal TYPE string,
z_resbtotal TYPE string,
ferth TYPE mara-ferth,
bdmng TYPE resb-bdmng,
meins TYPE resb-meins,
vkorg TYPE t001w-vkorg,
kdmat TYPE knmt-kdmat,
gamng TYPE caufv-gamng,
gltrp TYPE caufv-gltrp,
plnbez TYPE caufv-plnbez,
vgw02 TYPE plpo-vgw02,
vge02 TYPE plpo-vge02,
stdtc TYPE string,
stprc TYPE p DECIMALS 2,
end of t_final.
DATA : it_final TYPE STANDARD TABLE OF t_final,
wa_final LIKE LINE OF t_final.
now i want this whole internal table with data in it to be passed it to the smartform and get it displayed.
‎2007 Dec 07 11:40 AM
do it like this,
As per your structure create a ZStructure in SE11 and define a table under the FORM Interface Tables Table with reference to that Z-Structure. Pass your internal Table to the Smartform using that Table interface parameter.
Hope That Helps
Anirban M.
‎2007 Dec 07 11:42 AM
I know abt this option but i want to check is there any other alternative so that i need not create a structure. as i was not allowed to do so as of now..
plz help me with an alternative solution.