cancel
Showing results for 
Search instead for 
Did you mean: 

Description problem in Sap Script

Former Member
0 Kudos

I have a requirement on Purchase Order Form

This form contains 4 fields Title, Description, Quantity and Unit.

In Title the text is displaying in two lines -- it is correct . see the following text

New purchase

order

In Description the text is dispaly in one line --- it is wrong

New Purchase order

I want to dispay Description same as Title(in 2 lines)..

pls help me regarding this

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi.

U need to Declare the same variable in two rows.

For eg..

&wa_text& is ur variable conatains the text 'New Purchase Order'.

Coding in script..

/E TITLE

P1 &wa_test+0(12)&,,&wa_sno&.......

P1 &wa_test+12(20)&........

Write like this..

Adjust the tab size depends upon ur needs..

And Check the Paragraph format P1

In P1 paragraph format.. in the Standard attributes Tab.

U must Check the<b> No Blank Lines Check Box</b>..

Else ur heading will leave two lines..If u loop that window means...

Hope it will helps .

Reward points for useful answers..

Regards

Bala.

Former Member
0 Kudos

hello fharook,

<u>dicrease the width og the cell.

can u please tell us from whch u r retrieving the data</u>...

sorry.. i thought it is smartforms. don't consider the above

Message was edited by:

Naresh Reddy

Former Member
0 Kudos

Try this..

use this in the first line of printing of the description..

<b>,,&WA_EKPO-TXZ01+(36)&</b>

this on the second line..

<b>/: IF &WA_EKPO-TXZ01+36& NE ' '

/: ,,&WA_EKPO-TXZ01+36(36)&

/: ENDIF.</b>

Here 36 is my column width..

This logic works onli for 2 lines.. not more than that..

regards,

sai ramesh.

Former Member
0 Kudos

Hi Syed,

You need to write this in 2 lines, in teh SAPSCRIPT, you need to store this in 2 variables and display it in the form, first line variable should contain 'New purchase' and the second line variable should contain 'order', and this second line should print in beneath the first line

Regards

Sudheer

amit_khare
Active Contributor
0 Kudos

Just resize your column length and this problem will be solved.

Regards,

Amit

Reward all helpful replies.