‎2006 Nov 20 10:58 AM
Hi all,
i want display the materials based on deportment wise .
here i put check boxes for dept, for this i want to display materails in different pages based on hw many check boxes r selected.
how i can display the materails in separate pages.
please help me
Regards
Rambabu.A
‎2006 Nov 20 11:07 AM
Hi Ram,
See as u said u r placing check boxes in selecton screen. okay now u may have all the data in an internal table. Now aftre
loop at it_tab.
if flag1 = 0.
if check_box1 = 'X'.
flag1 = 1.
new-page.
write: data here dept 1.
endif
endif.
if flag2 = 0.
if check_box2 = 'X'.
flag2 = 1.
new-page.
write: data here dept 2.
endif
endif.
if flag3 = 0.
if check_box3 = 'X'.
flag3 = 1.
new-page.
write: data here dept 3.
endif
endif.
if flag4 = 0.
if check_box4 = 'X'.
flag4 = 1.
new-page.
write: data here dept 3.
endif
endif.
endloop.
If u hava any questions Plz ask.
Sharat.
null
‎2006 Nov 20 11:04 AM
Use NEW-PAGE option.as soon as processing is completed for listing output of first 3 materials write a statment NEW-PAGE, then start the materil No's related second checkbox
‎2006 Nov 20 11:07 AM
Hi Ram,
See as u said u r placing check boxes in selecton screen. okay now u may have all the data in an internal table. Now aftre
loop at it_tab.
if flag1 = 0.
if check_box1 = 'X'.
flag1 = 1.
new-page.
write: data here dept 1.
endif
endif.
if flag2 = 0.
if check_box2 = 'X'.
flag2 = 1.
new-page.
write: data here dept 2.
endif
endif.
if flag3 = 0.
if check_box3 = 'X'.
flag3 = 1.
new-page.
write: data here dept 3.
endif
endif.
if flag4 = 0.
if check_box4 = 'X'.
flag4 = 1.
new-page.
write: data here dept 3.
endif
endif.
endloop.
If u hava any questions Plz ask.
Sharat.
null