Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPScript formatting

Former Member
0 Likes
455

HI,

I'm currently facing problems in alignment below are my SAPScript codes:

Q2 &ZVXX_OE_SO_ITEM-GU_QTY(5)&,,

&ZVXX_OE_SO_ITEM-KWMENG(7)&

,,<C1>&ZVXX_OE_SO_ITEM-DESCRIPTION1(C)&</>

,,&ZVXX_OE_SO_ITEM-HERKL(C)&

,,,,,,&ZVXX_OE_SO_ITEM-UNIT_PRICE(12)&

,,&ZVXX_OE_SO_ITEM-AMOUNT(12)&

In the ZVXX_OE_SO_ITEM-DESCRIPTION1 the text is too long so it always moves the next fields to be displayed.. since this is text, the number of characters is not always the same. What I want to do is to cut it to 25 characters but still indicate that it should be character? (C) How will do that?

And for unit price and amount. How will I format it to only display 8 integer values and 2 decimals only. Thanks a loT!

1 ACCEPTED SOLUTION
Read only

former_member196280
Active Contributor
0 Likes
415

Restrict the text to desired length, ,,

<C1>&ZVXX_OE_SO_ITEM-DESCRIPTION1(<b>30</b>C)&<>

or only other alternative is to reduce the font size.

Regards,

SaiRam

2 REPLIES 2
Read only

Former Member
0 Likes
415

Refer:

http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm

Your solution:

1. ZVXX_OE_SO_ITEM-DESCRIPTION1

/: DEFINE DESC_25 = &ZVXX_OE_SO_ITEM-DESCRIPTION1(25)&

Now use this new 25 char length variable for display.

2. ZVXX_OE_SO_ITEM-UNIT_PRICE

,,,,,,&ZVXX_OE_SO_ITEM-UNIT_PRICE(8.2)&

Regards,

A.Singh

Read only

former_member196280
Active Contributor
0 Likes
416

Restrict the text to desired length, ,,

<C1>&ZVXX_OE_SO_ITEM-DESCRIPTION1(<b>30</b>C)&<>

or only other alternative is to reduce the font size.

Regards,

SaiRam