11-03-2007 11:57 AM
altough am passing internal table which is populated by values from print program .......one of the component is kwmeng from vbap table......and i have passed this interal table in smartform.....all of the other components of internal table are getting populated in main window if i dont keep kwmeng as field in text element...if i keep this field in one of the text element than error is raised that &wa_zmit-kwmeng& (ie kwmeng) does not exist in form.....
What could be solution so that this field also gets populated in main window....
....................moreover what has to be done if we want to convert smartform to other llang.......text can changed trough so10.....and we have option called "change lang:" in attributes of page....by this can we change lang directly........
11-03-2007 12:00 PM
is that field is available in the structure of ddic which u need to pass to smartform for the internal table?
11-03-2007 12:01 PM
11-03-2007 12:02 PM
internal gets populated in print program ...so struct is present (well defined in ddic)
11-03-2007 12:06 PM
11-03-2007 12:06 PM
is it a currency field
if yes
then declare a variable in global definitin of type c with lenght 15
after that
in ur main window
choose program lines and then
write
variable = wa-kmwart (ur currency field of itab)
now in the text node
show this variable not the wa-kmwart
hope it wil help u
if not then plz specify the full messge
reward if useful
11-03-2007 12:07 PM
11-03-2007 12:09 PM
yes this could be the solution ...but why not directly..creating extra varialbe and loop may effect performance......this can de done directl also ..there is some small error somewhere i suppose,,,,exact error message is refrence field wa_zmit-kwmeng unknown in the form
11-03-2007 12:14 PM
and more one more point if u could ans plz...am displaying all data that is static in secondary windows...means i have created several secondary windows on page and displaying static data ..lenght of which is fixed...so i use some 8 secondary windows instead of splitting main page ....but like if standard text which am getting from so10 if we change lang form english to like spain then that text lenght can be increased so again it can exceed lenght of secondary window...so wwhat could be done in this case
11-03-2007 12:19 PM
i dont know any thing abt so10
but u can display two smartforms in different languages by the following logic
create two pages of smartform
one for english
and other for german or wat ever
then in the condtion field u can put some conditons
or u can create two smartforms
and then can call the specific one
i hav no knowlege for so10 so cant help u more
hope somebody might ans u
regards
11-03-2007 12:15 PM
11-03-2007 12:28 PM
well buddy .....ur currency and qty solution worked...thanks for that...
just tell me if am going in right direction that am using secondary windows for static data...rather than splitiing page ..or do we have any other option to display static data apart from seconday windows......oder to part data and shippiment data(which is sstatic)