cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript problem with respect to Material Description.

Former Member
0 Kudos

Hii friends,

I am currently working on PO format in sap script. My problem is that i am not able to adjust my next field after material description.i.e. if my material description is small it my next field for eg weight shifts to left and when material description is long it comes to its original place as i want. Can anyone help me in this regards...

Regards,

Sany

Accepted Solutions (1)

Accepted Solutions (1)

former_member555112
Active Contributor
0 Kudos

Hi,

Please keep tab position as a lil more than 40 characters. i.e the length of material description.

Regards,

Ankur Parab

Former Member
0 Kudos
ELE
&IT_EKPO-CNT&,,&IT_EKPO-MATNR(38)&&space(6)&&IT_EKPO-TXZ01+0(33)&,,
&IT_EKPO-QVAL&,,&IT_EKPO-bval&,,
&IT_EKPO-DVAL&,,&SPACE(9)&&IT_EKPO-TOT&
IF &IT_EKPO-TXZ01+34(40)& NE ' '

This is the code that i am using ...

Former Member
0 Kudos

Hi

Create A Paragraph Format

such that the

first tab 3 characters

second tab = 40 characters

and third tab etc etc

&IT_EKPO-CNT&,,&IT_EKPO-MATNR,,,,&IT_EKPO-TXZ01+0(33)&,,

thank you

surya

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

You can check like this,

1.Create paragarph format with the tab spaces as you like.

Example:

Tab position Alignment

50,00 MM LEFT

95,00 MM LEFT

132,00 MM LEFT

2.Next you can make use of the pragarph format while printing.

Example:

&itab-matnr&,, &itab-maktxr&

Check in the above manner.

Hope it helps.

Regards

Former Member
0 Kudos

no i am still facing the same problem in the script the postions changes as the length of the description changes. I want to maintain a fix distance between the description and quantity.

Former Member
0 Kudos

Hi,

1.Create paragarph format 'AS' with the tab spaces as you like.

Example:

Tab position Alignment

50,00 MM LEFT

95,00 MM LEFT

132,00 MM LEFT

Then Use this Paragraph Format 'AS' in command prompt like

AS &item_matnr&,,&item_desc&

Regards,

Kumar

Former Member
0 Kudos

i did the same thing but material description length is not fixed.If it is of shorter length then it leaves tab position of that length and comes to left side hence disturbing the allignment. i want to fix certain length for each fields so that after exceeding that length it should come down. for eg if material description is greater than 30 characters it should come down the remaining characters and hence keeping my quantity field fixed.

Former Member
0 Kudos

Hi,

U define the Paragraph Tab Positions with 'CH', and use the Length of the data element to define the Tab position..

eg:

P1 &itab-posnr&,,&itab-matnr&,,

Tab Positions for P1 Paragraph:

5.00 CH (since POSNR is of length 4, so from 5 CH position the Material Number starts)

20.00 CH (Fix the Maximum length for Material, Check the Max length of the Material Number & add 1 for the next tab position)

Hope it helps!!

Rgds,

Pavan

former_member585865
Contributor
0 Kudos

Hi,

just check your alignment and tab positions you have given in the sap script.