12-14-2007 4:15 AM
Hi,
I am developing one classical report .In top of report i have header datails like customer num etc.
in first page i am geting header details and records .it is fine.
if in first page reocrds are more it is moving to the second page.it dispalying the records.
i want header details on each page.my problem is if the records are more it is moving to the second page and it overlaps the header details in second page.
But i want header details in second page also
please tell me coding
Regards
kishore
12-14-2007 4:18 AM
hi,
you can do like this.
You can see the no of records coming in forst page.
Let's suppose it is giving 35 records of itab.
then put condition
if sy-tabix > 35.
new-page.
endif.
reward if useful
Gaurav
12-14-2007 4:23 AM
Hi,
In your report standard attributes.
you specify your line size as 80.
once your report is created first line of the report will be like this
REPROT ztest ,
here you can specify line-size change this to
REPORT ztest LINE-SIZE 80.
try changing this value, till the 2nd page header data is appearing properly.
Regards,
Raghavendra
12-14-2007 4:49 AM
hi,
u can freeze that header data through out the report using TEXT elements, kindly go through the following code will give you an idea
REPORT ZPA2.
Table declaration ******************************
tables : mara,mard,t001w.
variable declaration ****************************
data : v_werks like mard-werks.
internal table declaration **********************
data : begin of itab occurs 0,
matnr like mara-matnr,
mbrsh like mara-mbrsh,
mtart like mara-mtart,
werks like mard-werks,
lgort like mard-lgort,
vkorg like t001w-vkorg,
vtweg like t001w-vtweg,
end of itab.
selection screen ************************
select-options:
s_matnr for mara-matnr.
top of the page event*******************
top-of-page.
displaying the heading of the report ***************
Uline.
write : /5 text-007,
15 text-001,
25 text-002,
35 text-003,
45 text-004,
55 text-005,
66 text-006.
Uline.
Start-of-selection **********************
start-of-selection.
perform get_material_data.
perform get_output_material.
form get_material_data ********************
retreiveing information about material ******
form get_material_data.
select mara~matnr
mara~mbrsh
mara~mtart
mard~werks
mard~lgort
into table itab
from mara inner join mard
on maramatnr = mardmatnr
where mara~matnr in s_matnr.
loop at itab.
select single vkorg into itab-vkorg from t001w
where werks = itab-werks.
select single vtweg into itab-vtweg from t001w
where werks = itab-werks.
modify itab.
endloop.
endform.
form get_output_material ****************
output of material data *****************
form get_output_material.
loop at itab.
write : /5 itab-matnr,
15 itab-mbrsh,
25 itab-mtart,
35 itab-werks,
45 itab-lgort,
55 itab-vkorg,
65 itab-vtweg.
endloop.
endform.
regards,
pavan
12-14-2007 4:59 AM
kishore all the answers are wrong above..dont go through them..if u reply this read i will gve u answer ok..