Skip to Content
avatar image
Former Member

sap script - display in material description upto 40 char

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 16, 2008 at 09:13 AM

    Hi,

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

    in second line &v_Desc+20(20)&

    Regards

    Jana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 09:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 11:38 AM

    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 .... 😊

    Add comment
    10|10000 characters needed characters exceeded