cancel
Showing results for 
Search instead for 
Did you mean: 

Main window in Smart Form

Former Member
0 Kudos

Hi Guys,

I have one doubt in Smart Form Main Window.

My requirment is like this.

In main window i need to print the Item details.Its look likes bellow.....

Material Description Material Discription

-


-


-


-


I want to display material and description.

Assume I have 50 line item.In every page we allocated for only 10 line item.

In this case after printting 10 line item,I need to print next 10 line item in same page in second collumn. Like this.........

Material Description Material Discription

-


-


-


-


1 tertert 11 ryrtytryr

2 jgjgjghjg 12 tgdfgdfgdf

3 jhgjgjgj 13 dfgdfgdfg

4 gdfgdg 14 dfgdfg

5 dfgdfgdf 15 dfgdfg

6 dgdfgdfg 16 dfgdfgdfg

7 gdfgdfg 17 dfgdfgdfgg

8 dgdfgdg 18 dfgdfgdfg

9 gdfgdfg 19 dgfdfgdfg

10 dfgdgdf 20 dfgdfgdfg

20-40 we need display in second page.

40-50 we need to display third page.

Is it possible..........?

Is it possible to creatr 2 main window in smart form?

Thanks & Warm Regards,

Suresh.

Message was edited by:

Suresh Kumar

Message was edited by:

Suresh Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi suresh,

i hope we can't achive this in standard way but we can do it in som other way by modifying the table..

suppose i ahve 2 fields in ITAB1--

Field1 type matnr and field2 kwmeng

.

wht i will do is i will create an itab with 4 fields

--

Field1 type matnr and 
           field2 kwmeng
           Field3 type matnr  
           field4 kwmeng

.

bfore start printin the table iwill move this ITAB1 data to ITAB2..

data v_flag type c.
loop at itab1 into wa_itab1.
if v_flag is initial .
v_flag = 'x'.
wa_itab2-field1 = wa_itab1-field1.
wa_itab2-field2 = wa_itab1-field2.
else.
wa_itab2-field3  = wa_itab1-field1.
wa_itab2-field42 = wa_itab1-field2
appent wa_itab to ITAB2.
clear v_flag
clear wa_itab2
endif.
clear wa_itab1.
endloop.

by using the above code i move the data to to ITAB2. now ITAB2 contails 2 racodrs

now i will loop the ITAB2 and i will print.

i will desing the TABLE LINE as follows

-


-


i will draw the table line to look like two windows..

<b>but Idon't think this is the feasable solution.....</b> unless and untill it is nessassary then only i will go for,, this... the drawback in this is it is difficult to do calculations etc..

Former Member
0 Kudos

Yes it is possible

do it this way.

under global definitions,define one variable CNT of type I.

create 2 windows and place them side by side.

then create loop wherein you mention the int table and restrict the rows upto 1 to 10.

now create 1 template inside each loop so as to display the data from 1 to 10.

and under the template create text and assign the line no and column no accordingly.

create one program lines under the loop and in that increase the cnt variable by 1.

here is the code.

cnt = cnt + 1.

if cnt <= 10 .

flag = 0.

else if cnt <= 20.

flag = 1.

endif.

Under the condition tab of the template of the first window put this flag = 0 and for the otehr window put flag = 1.

this shall solve your probs.

Reward points if your query is answered.

Regards

Zarina