cancel
Showing results for 
Search instead for 
Did you mean: 

sap script - display in material description upto 40 char

Former Member
0 Kudos

Hi SAP Guru's,

I have a problem while changeing my script..

In main window i have fields like

ITEM, MAT NO, MAT DESCR, QUQNTITY, UNITE, PRICE..

Now i want to display in material description upto 40 char.

but i have a window size with 20 ch..and its printing 20 ch ok..other 20 ch i have to display under same window in second line... bcoz first line already printing 20 ch..? for this i need with code ,,, plz help me???

Edited by: Julius Bussche on Sep 16, 2008 11:06 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

I came across same scenario ...

use this ...

in first line &mat_desc(20)&

next line weite the code given bellow...

if &mat_desc+20& is not initial . " if description is more than 20 char then only print remaining text

&mat_desc+20&.

endif.

hope this helps ....

Former Member
0 Kudos

hi,

Try this...

in your next line use the following syntax help

&Fieldname+offsetvalue(length)&

in your case... fieldname is description... offset value will be 20 and the length will be the remaining length of the desc or else you can make it 20.

regards

padma

Former Member
0 Kudos

Hi,

In first line description give: &v_Desc+0(20)&

in second line &v_Desc+20(20)&

Regards

Jana