cancel
Showing results for 
Search instead for 
Did you mean: 

printing in SAP Script

Former Member
0 Kudos

HI i would like to print something like below,

________________________________________________

posnr matnr description quantity

________________________________________________

10 MAT1 this is the description 10

of the MAT1 and it sho

ld not go in to the quan

tity column

________________________________________________

I am printing the material long text and it should fit in to that particular place, how would i do this?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Heay sowmi, r u there???

got the solution for ur problemm....

U need to use <b>a character format</b> that is defined in <b>styles</b>... Transaction code is <b>SE72</b>.

Here we can define <b>paragraph formats and character formats globally</b>... So u need to use a style character format in ur script...

<b>STYLE ... STYLE *</b>

In styles while defining a character format u can set the <b>right limit</b> for it ...

U need to check the PROTECTED -- ON for this character format...

hope this solves ur problem...

sai ramesh.

Former Member
0 Kudos

hi Sowmi,

check this links same as your issue..

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/802ec5454211d189710000e8322d00/frameset.htm

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Former Member
0 Kudos

posnr..........matnr..........description.........................quantity

10..............MAT1..........this is the description..........10

....................................of the MAT1 and it sho

....................................ld not go in to the quan

....................................tity column

Sorry i need it like this, in the description i am trying to print the long text, please help

Former Member
0 Kudos

/ ,,&WA_EKPO-TXZ01(36)&

/: IF &WA_EKPO-TXZ01+36& NE ' '

/ ,,&WA_EKPO-TXZ01+36(36)&

/: ENDIF

As of now try this....

Here 36 is the no of characters that can fit into the available space.. u check for ur form and give those many characters in that...

Actually we have some option in scripts to do that... i forgot actually..

i will let u know afterwards...

i hope the above code works for u for two lines of material description...

reward helpful answers...

sai ramesh