‎2006 Aug 30 11:37 AM
Hi All,
i have a requirement like this. in a SAP Script. i have a Column(Table) headers in one Text element. now it is displaying in first page. the requirement is the column header has to be displayed on top of the subsequent pages also. The print program has not be modified. it has to be solved in form it self only.
Thanks and Regards
D.Ramesh
‎2006 Aug 30 11:41 AM
In main window
use control commands TOP and ENDTOP.
/: TOP
colhead1 colhead2.....and so on
/: ENDTOP.
this TOP and ENDTOP should be at the beginning of Main window.
<b>
or</b>
you create a WINDOW with the COLUMN HEADER Texts and call this in all the pages.
regards
srikanth.
Message was edited by: Srikanth Kidambi
‎2006 Aug 30 11:40 AM
simply u can hard coding or also pass column heading in variable .
/:ph &material_no&,,&material type&,,----->variable
or
/:ph material number ,, material type,,--->hard coded.
ph-paragraph format.
‎2006 Aug 30 11:41 AM
In main window
use control commands TOP and ENDTOP.
/: TOP
colhead1 colhead2.....and so on
/: ENDTOP.
this TOP and ENDTOP should be at the beginning of Main window.
<b>
or</b>
you create a WINDOW with the COLUMN HEADER Texts and call this in all the pages.
regards
srikanth.
Message was edited by: Srikanth Kidambi
‎2006 Aug 30 11:49 AM
Hi srikanth,
Before Column headers in first page some Text elements are calling.if i use Top.. ENDTOP. in first page also the column headers will be on top. i need the column headers will be on top from second page onwords only.
Thanks and Regards
Ramesh
‎2006 Aug 30 11:55 AM
Try out the below logic...
Define a new page(say pg2) and put the column heading in an element...surely you need to define in the first page the next page is pg2.
Regards
Anurag
‎2006 Aug 30 11:56 AM
just use SYSTEM Variable to check its not equal to 1.
/: TOP
<b>/: IF &PAGE& <> '1'
your headingds
/: ENDIF</b>
/: ENDTOP
this way we are not printing heading in first page.
below is the logic to print headings ONLY on First page.
and also write the same headings just after you are printing your text.
<b>/: IF &PAGE& = '1'</b>
H1 ,,LINIT,, BIN,,PICK QTY,,UoM,,BATCH,,DESC.,,PRODUCT,,IC
= ,,TO.,,PRODUCT DESC.,,INV QTY,,CLS,,WT
H1 ,,,,,,,,,,,,,, ID,,,,LN#
H1 &ULINE(130)&
/: ENDIF
this <b>/: IF &PAGE& = '1'</b> is to check its not printing for all the pages.just for 1st page,where after printing some text,this heading will appear.
regards
srikanth
Message was edited by: Srikanth Kidambi
Message was edited by: Srikanth Kidambi
Message was edited by: Srikanth Kidambi
‎2006 Aug 30 12:01 PM
hi,
try giving like this...
/: if &nextpage& > 1
/: top
--
--
/: endtop
/: endif
hope this helps,
do reward if it helps,
priya.
‎2006 Aug 30 12:17 PM
Hi srikanth,
It is working fine Thanks for ur answers.
Thanks and Regards
D.Ramesh
‎2006 Aug 30 11:44 AM
Hello,
The best way is, U keep a seperate window for column header and pass the text in that window.
Hope this will help u.
Regards
‎2006 Aug 30 11:46 AM
Hi,
Define header window for column headings
or use NEW-PAGE in your main window
Regards
Amole