Application Development 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: 

heading

Former Member
0 Kudos

HELLO ONCE AGAIN,

please tell me how to put a heading in the sap script..i tried in d header of the script but its not enough v really need a big heading representing our company....

wit regards

vijay

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

Create a Paragraph Format in the Script with a large Font.

Use that paragraph format in the text element foor the Heading.

Refer this link:

http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm

REgards,

Ravi

0 Kudos

but d problem is it is a predefined sap script and der is 8 paragraph formats so couldnt create new..please help me out

0 Kudos

HI Vijay,

Copy the script to a new layout and make the changes. You need to make changes in some way or the other to get the required result.

regards,

Ravi

0 Kudos

it is a copied script...so couldnt make it

Former Member
0 Kudos

hi,

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.

_________________________________________________________________

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.

or

you create a WINDOW with the COLUMN HEADER Texts and call this in all the pages.

____________________________________________________________________

just use SYSTEM Variable to check its not equal to 1.

/: TOP

/: IF &PAGE& <> '1'

  • your headingds

/: ENDIF

/: 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.

/: IF &PAGE& = '1'

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 /: IF &PAGE& = '1' is to check its not printing for all the pages.just for 1st page,where after printing some text,this heading will appear.

________________________________________________________________

try giving like this...

/: if &nextpage& > 1

/: top

--

--

/: endtop

/: endif

hope this helps,

do reward if it helps,

cheers!

sri

Former Member
0 Kudos

thank u