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

Background color with full width

Former Member
0 Likes
1,446

Hi Friends,

Can any one tell me that how can I display 10 character text with background color with full width(132 char) ?

I tried -

Format color 6.

Write 😕 'Vendor No.' (132) .

Format reset.

It gives me output with background color for 10 char length ( not 132 char).

Regards

Sonal

Hi Friends,

Can any one tell me that how can I display 10 character text with background color with full width(132 char) ?

I tried -

Format color 6.

Write 😕 'Vendor No.' (132) .

Format reset.

It gives me output with background color for 10 char length ( not 132 char).

Regards

Sonal

10 REPLIES 10
Read only

Former Member
0 Likes
1,331

try this it will give the colour for 132 characters

data vendor(132) type c value 'Vendor No'.

Format color 6.

Write 😕 Vendor(132) .

Read only

0 Likes
1,331

Thanks for the reply.

I have declared a variable as -

REPORT ZV9C_ADDR01 MESSAGE-ID ZVSALES_AS LINE-SIZE 132 .

Data : L_MESSAGE_TEXT TYPE STRING.

concatenate : 'Vendor No.' text-001' into L_MESSAGE_TEXT.

Write 😕 L_MESSAGE_TEXT(132) .

Still it is not working.

Please help.

Regards

Sonal

Read only

0 Likes
1,331

it is well working when you are using the same as follows

Data : L_MESSAGE_TEXT(132) TYPE c.

concatenate : 'Vendor No.' text-001 into L_MESSAGE_TEXT.

format color 6.

Write 😕 L_MESSAGE_TEXT(132).

Read only

Former Member
0 Likes
1,331

Hi,

Define the LINE SIZE 132 along with the Report <Name> .

It will print 132 char background.

Regards,

Anji

Read only

Former Member
0 Likes
1,331

Sonal,

Try..

WRITE: 'Vendor No.' , AT 132.

Pls. reward if useful

Read only

Former Member
0 Likes
1,331

there r 2 ways...

1.

data vendor(132) type c value 'Vendor No'.

Write 😕 Vendor(132) color 6.

2.data: vendor(10).

var = 'Vendor No'.

<b>write:/ vendor color 6, 10(132) ' ' color 6.</b>

use 2 one (best)

Ramesh.

and one more

<b>data: var(10).

var = 'Vendor No'.

write:/(132) var color 6.</b>

Message was edited by:

Ramesh

Read only

Former Member
0 Likes
1,331

Sonal

following code may help u

<b>Write :/(132) 'Vendor No' color 6.</b>

Regards,

MB

Message was edited by:

M B

Read only

0 Likes
1,331

Sonal , code given by M B definitely works .

even you can write it as follows

format color 5.

Write :/(132) L_MESSAGE_TEXT .

Regards ,

Dharma

Read only

Former Member
0 Likes
1,331

sonal,

WRITE: /(4) i, AT 130 sy-vline,

Read only

0 Likes
1,331

Non of these solutions giving me the desired result.

Please check in your system before posting.

regards

Sonal