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

Compress Space

Former Member
0 Likes
475

Hi All

I have two fields in SAP-SCRIPT "&KOMVD-VTEXT& &KOMVD-KBETR&".And in the output am gettin lot of space between them.I used &KOMVD-VTEXT(C)& and &KOMVD-VTEXT(16)& but still the space is coming.Please help.

Vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
456

hi vijay,

why dont u try in this way.

&KOMVD-VTEXT&SPACE&KOMVD-KBETR&

reward if helpful.

shashikanth naram

3 REPLIES 3
Read only

Former Member
0 Likes
457

hi vijay,

why dont u try in this way.

&KOMVD-VTEXT&SPACE&KOMVD-KBETR&

reward if helpful.

shashikanth naram

Read only

radhushankar
Participant
0 Likes
456

Hi

&KOMVD-VTEXT(C)& u have declared like this.

U Try to remove this C FROM the bracket and try to define some numeric values like &KOMVD-VTEXT(15)&

Try this.

Thanks in advance

Arun.J

Read only

Former Member
0 Likes
456

Hi. You could try using ,, (two commas) in between your fields to create a tab in the output. Then define the tab positions in your paragraph format for that section of the sapscript. So your line would look like this:

"&KOMVD-VTEXT&,,&KOMVD-KBETR&". Another option, as others have said, is to define a set number of characters from each field to display. If the extra space that you're seeing between your data is actually from what is contained in the first field, then this is the way to go. If the extra space is just being inserted between the fields themselves, then I would use the tab positioning. Your first field KOMVD-VTEXT is a very long field, 40 characters. So I'm guessing that that is where most of the extra space is coming from. Try changing your line to something like this:

"&KOMVD-VTEXT(10)& &KOMVD-KBETR&".

I hope this helps.

- April King