Skip to Content
avatar image
Former Member

pls guide me urgent

Hi all,

i have one requirement.That is i am having output layout is having 2 items.

1st item material description is having length 20 characters.

2nd item material description is having length 40 characters.

so in the layout after 1st material desc,next QTY field is coming to left to some palces.

But 2nd item material desc,next QTY field is coming corectly.

just like

mat desc QTY

dgfdfbggfbhgfgfn 1.000

sdghfjsdvgjkghvjkfghvjkdfvjfju 10.000

I am having doubt that how to keep fixed length od material desc of length 40.Though if it is having 20 also.up to 40 characters no field come front.pls guide me how to do this one.urgent requirement.

Reagards,

Lokesh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 17, 2007 at 03:50 PM

    Move the first material description to a char of length 40 and pass the same to your print program.

    Regards,

    Baburaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 06:19 PM

    Hi Lokesh,

    Sometimes though the print program is passing a field having 40 characters to the script, the script might display less than 40 because of the code written in script to display.

    Example of the script code:

    &KOMVD-VTEXT(20) " this will display only 20 characters

    So, in this scenario you need to first check the script and if it is less, then need to change the value from &KOMVD-VTEXT(20) to &KOMVD-VTEXT(40).

    Secondly, check in the print program and then move the first Material Description field to length 40 and then pass the same to your script.

    Hope this helps.

    Please reward if useful.

    Thanks,

    Srinivasa

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 06:24 PM

    Lokesh,

    Why dont u use TAB settings for the fields in form.

    tab to 41 characters.

    &mat_desc&,,&field2&

    so it provides 40 characters to the material description field

    Regards

    SAB

    Add comment
    10|10000 characters needed characters exceeded