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

Query reagarding spaces

Former Member
0 Likes
1,446

Hi All,

Please clarify me:

My requirement is to give 7 spaces for a variable so I declared as

c_blank1(7) TYPE c VALUE ' ',

do I get 7 spaces in the output?

As during debugging when I populate the variable c_blank1 I cannot move the cursor to check whether spaces are created or not. I mean no spaces in debugging.

Please clarify me,

Thanks and Regards,

Srik

14 REPLIES 14
Read only

Former Member
0 Likes
1,273

Hi

you have to give 7 spaces for it like

c_blank1(7) TYPE c VALUE ' _______'.

|

-


> 7 spaces.

Amresh

Edited by: Amresh kumar Panda on Dec 2, 2008 10:24 PM

Edited by: Amresh kumar Panda on Dec 2, 2008 10:24 PM

Read only

0 Likes
1,273

Hi ameresh,

I have give the same way but I wanted to know can we check the spaces during debugging.

I mean can we move our cursor 7 spaces in the debugging screen for that value.

Thanks and regards,

Srik

Read only

0 Likes
1,273

>

> Hi ameresh,

>

> I have give the same way but I wanted to know can we check the spaces during debugging.

> I mean can we move our cursor 7 spaces in the debugging screen for that value.

>

> Thanks and regards,

> Srik

Yes.

Click on pencil(Edit) button and give 7 spaces and enter.

Read only

0 Likes
1,273

yes we can i think, but i dont think u can see that in debugging but its effect will shown in output

Amresh

Read only

0 Likes
1,273

Hi Amit,

I mean I have declared already and moving the blanks into the Internal table.

There in the structure I just want to check whether spaces have be send to the varaible or not.

But I am not able to check as I see no spaces in the debugging.

Please help me on this

Regards,

Srik

Read only

0 Likes
1,273

>

> But I am not able to check as I see no spaces in the debugging.

It means spaces has not been passed correctly yet.

how you are passing the space to fields?Show you codeing block(you have moved the space.)

Read only

0 Likes
1,273

Hi Amit,

This is how I am moving

DATA:c_blank1(7) TYPE c ,

wa_items = c_blank1.

Regards,

Srik.

Read only

0 Likes
1,273

>

> wa_items = c_blank1.

now show your wa_items data declearation?

Is wa_items is work area of internal table?if yes than you must use modify Itab from wa_items.

Read only

0 Likes
1,273

Hi Amit,

This is How I declared.

DATA: wa_items TYPE zpayload_wrapper_time_reco_tab WITH HEADER LINE.

As this value is going to XI.

Regards,

Srik

Read only

Former Member
0 Likes
1,273

Hi All,

Please clarify me:

My requirement is to give 7 spaces for a variable so I declared as

c_blank1(7) TYPE c VALUE ' ',

do I get 7 spaces in the output?

As during debugging when I populate the variable c_blank1 I cannot move the cursor to check whether spaces are created or not. I mean no spaces in debugging.

Please clarify me,

Thanks and Regards,

Srik

Read only

0 Likes
1,273

>

As during debugging when I populate the variable c_blank1 I cannot move the cursor to check whether spaces are created or not. I mean no spaces in debugging.

Change to hexa display and you'll see if the spaces are there or not (20 is the value for space (or 2000 if the system is unicode)

Read only

Former Member
0 Likes
1,273

By default character initial value will be spaces, no need to specify VALUE.

If you want to check in debug mode, double click the variable / field and check it's hex value. (click magnify button on right, or in new debugger you can choose hexadecimal value).

This will show you - 202020202020..

20 hex is for space.

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
1,273

no u dont get 7 spaces there is no difference between a manual set spaces and automatically filled spaces in type char. the value of ur variable is initial that means 'nothing' .Try work with length of variable check command 'describe'

maybe this helps

Regards

Stefan Seeburger

Read only

Former Member
0 Likes
1,273

done