Application Development 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: 

Avoid spaces between two text fields in a screen

Former Member
0 Kudos

Hello ,

I have a typical problem, first of all my requirement is i have to display some text adjacent to radio button.

RB1 - Hello how are you. I am fine.

In the above text Hello how are you should display in blue colour ( so using bright option we can display).

and I am fine should come in black colour.

I am getting the output in required colours itself, here my problem i am displaying Hello how are you in Text Filed say TEXT-001 and I am fine in TEXT-002.

In the screen i have placed them side by side.. But when i execute my transaction and if i see the output

it is displaying like this

RB1 - Hello how are you. I am fine.

I dont want that space between those two sentences. I have no clue why that space is coming. Please need your suggestions on this.

Rgds.,

subash

9 REPLIES 9

Former Member
0 Kudos

hi,

in the above posting only single space it is showing but there are 5 spaces between two sentences, i dont want that space to come in the screen.

Rgds.,

subash

0 Kudos

1. Check the length of the text symbols.

2. Check the write position for the element in teh screen.

Hope this will help you.

Rgds.

Former Member
0 Kudos

hi,

use condence with no-gaps statement .

0 Kudos

hi,

thanks for ur quick reply.. i am talking about screen elements.. i have no idea where to use that stmt.. kindly give me the soltuion detailedly , if it is so..

Rgds.,

subash

0 Kudos

condence text-t08 with no-gaps. check the syntax

Former Member
0 Kudos

please ignore this post....

Former Member
0 Kudos

Hi ,

I think there is space in the beginning of the the TEXT-002 or the length of the

TEXT-001 is greater than 18.

So you go to the texts and check the above and change it and activate it means Make

the length of TEXT-001 18 and remove space at the beginning of the TEXT-002 .

Regards

Pinaki

MarcinPciak
Active Contributor
0 Kudos

Hi,

Do the following:

- in screen layout place a radiobutton first

- just next to it place Ouput fields so it looks like [this|http://img16.imageshack.us/img16/7398/screenyxu.png]

- name ouput fields FIELD1 and FIELD2 respectively

- set both as Output only

- set for first one Def.length = 18, Bright and Right justified

- set for second Def.lenght = 10,

- in ABAP


DATA: field1 TYPE c LENGTH 18,
      field2 TYPE c LENGTH 10.

CALL SCREEN 0100.

MODULE pbo OUTPUT.
  field1 = 'Hello how are you.'(001).
  field2 = 'I am fine.'(002).
ENDMODULE.                    

This works fine.

Regards

Marcin

Former Member
0 Kudos

thanks for ur time