Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Colum headers in SAP script

Former Member
0 Likes
1,701

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,218

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,218

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.

Read only

Former Member
0 Likes
1,219

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

Read only

0 Likes
1,218

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

Read only

0 Likes
1,218

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

Read only

0 Likes
1,218

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

Read only

0 Likes
1,218

hi,

try giving like this...

/: if &nextpage& > 1

/: top

--

--

/: endtop

/: endif

hope this helps,

do reward if it helps,

priya.

Read only

0 Likes
1,218

Hi srikanth,

It is working fine Thanks for ur answers.

Thanks and Regards

D.Ramesh

Read only

Former Member
0 Likes
1,218

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

Read only

Former Member
0 Likes
1,218

Hi,

Define header window for column headings

or use NEW-PAGE in your main window

Regards

Amole