Skip to Content

Regarding script print problem

Dear all,

I was facing one problem in purchase order script.i was getting proper print out but

in case material is different the values are moving towards left side,

so the entire alignment is chaning.

means:

my PO contains two materials:

1 is : RA1303300 and 16071.

1st material : ra1303300 and descripton length is more than 20 char.

for this material i was getting proper output.

but 2nd material : 16071 and description length is less than 20 char.

fir this i was getting worg alignment.

description field is it_ekpo-txz01.

my script code is :

/E ELE

IN &IT_EKPO-CNT&,,&IT_EKPO-MATNR(20)&,,&SPACE(3)&

= &IT_EKPO-TXZ01+0(30)&,,&IT_EKPO-QVAL&,,&IT_EKPO-NETPR&,,

= &IT_EKPO-DVAL&,,&SPACE(9)&&IT_EKPO-TOT&

/: IF &IT_EKPO-TXZ01+31(40)& NE ' '

IN ,,,,,,&IT_EKPO-TXZ01+31(40)&

/: ENDIF

plese help me out in this matter.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 05, 2009 at 06:06 AM

    Hi,

    You can get the Perfect output by using suitable paragraph format with Correct Tab alignment.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member SRINIVAS TADUKA

      Hi,

      IN is here a paragraph format? Then you check the Tab spaces of that paragraph format. Otherwise Copy that Paragraph format and provide new tabs as per your requirement. For Tab spaces Click on Third push button which is TABs.

  • avatar image
    Former Member
    May 05, 2009 at 11:12 AM

    Hi,

    IN is the paragraph format to that we can create tab spaces.

    SAP Scripts tabs reference is taken from left side of the window, we have three alignments

    1. left.

    2. Right.

    3. Center.

    For example if we used 10 CM left then it start writing from 10 CM onwards in the forward direction.

    If we used 10 CM right, then it start writing from 10 CM in backward direction such that writing of data will end at 10 Cm.

    If we used 10 CM center as reference, then it take 10 CM as reference and writes such that center of the word should maintained at 10 CM.

    Using this as reference create required tab spaces to you paragraph format IN and use those in appropriate places.

    Hope this will give you some idea.

    Regards,

    Aswini.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 05, 2009 at 01:39 PM

    Hello,

    It's depends on the tab positions. Check out Pragraph formats in the script and check the TABS.

    Adjust them and try to print out.

    See help for if needed further.

    http://help.sap.com/saphelp_nw04/helpdata/en/b6/ff0d7c4b9e11d192f20000e829fbc6/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded