on 06-17-2009 4:49 PM
Dears,
In my form, one of the window only show the LAST line of the it.
I have set the window enough space, also when debuging the program , open_form, write_form,
all of those sy-subrc = 0.
both static texts and dynamic texts are set in the window, but only the last line shown.
Anyone could help me?
Thanks a lot.
Sincerely,
Julie Lv
hi,
the problem is not in your sapscript but in your print program.
it seems you loop through your (internal) table.
After that loop you do a write_form
eg.
loop at itab into wa_itab
endloop
write_form
That is wrong. On this way you only print the last line.
you have to put the write inside the loop so you will print all lines.
eg.
loop at itab into wa_itab
write_form
endloop
hope this helps.
Gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear,
This is not for i use write_form outside my loop.
The really reason is use
loop at int_tab.
write_form
endloop.
in the window which is not MAIN.
but I stilly can't resolve this problem, And I have to use loop in the window not MAIN.
Anyone who can help me?
really really appreciate it.
Thanks a lot.
Julie
Hi,
There are several possibilities to resolve your problem.
You can work with 2 main windows on in1 page.
With NEW-WINDOW you switch to the next main-window
How to use it.
make an item in main window with that /: NEW-WINDOW command
if you are ready with first loop call a WRITE_FORM with that NEW-WINDOW statement.
to cojntinue in the other main.
Other possibility is. (in case there are not ot many lines)
Use for every line other variable names.
Fill these in the loop. And after loop WRITE FORM
eg. (if maximum is 3 lines)
&VAR1_1& &VAR1_2& &VAR1_3& &VAR1_4&
&VAR2_1& &VAR2_2& &VAR2_3& &VAR2_4&
&VAR3_1& &VAR3_2& &VAR3_3& &VAR3_4&
Hope this helps.
Gr., Frank
Hi
Sorry i did not mention it.
The width of all 'MAIN' window must be the same.
but you can change the heigth, left margin and upper margin.
Besides that you can let if overlap with another window if you do not use the total width.
So that has not to be a big problem. Only if you are working with BOX/FRAMES you have to resize the BOX.
Success,
Gr. Frank
P.S.: i mostly never reply on email sent unexpected by SDN users.
Hi
Sorry i did not mention it.
The width of all 'MAIN' window must be the same.
but you can change the heigth, left margin and upper margin.
Besides that you can let if overlap with another window if you do not use the total width.
So that has not to be a big problem. Only if you are working with BOX/FRAMES you have to resize the BOX.
Success,
Gr. Frank
P.S.: i mostly never reply on email sent unexpected by SDN users.
Hi,
I have similar problem in script where only the last line item is getting displayed.
Can you please help me.
I am using main window inside the loop.
but it is displaying only the last line item.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just check whether the write_form is inside the loop or not, if you are passing the data to the script from internal table.
Regards
Sarves
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.