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: 

how to pass one sapce to char type variable

Former Member
0 Kudos

Hi,

There is one import parameter in rfc "zstat" with char type and length 1. I want to pass value equal to one space in this variable during execution of RFC so that it passes the condition in code where it is not initial.

But during runtime it doesnt store value equal to one space and become initial.

So my question is how to pass value equal to one sapce to this variable.?

Thanks in Advance!!!

-Harkamal

4 REPLIES 4

Former Member
0 Kudos

Hi

if that variable is of type CHAR and of length 1 CHAR then no need to pass any SPACE for it

By default it take SPACE as its value

how can you say that it is not taking default space (initial for CHAR type is nothing but SPACE only)

if you still wants to pass the value write SPACE for that field value

reward if useful

regards

Anji

Former Member
0 Kudos

Hi!

If it a char type, then its initial value is a SPACE character.

If it confuses the program and you wanted to use it another way, then use numbers (type i - integer). It's initial value is "0".

Or try to use other flag characters, like "T" for true and "F" for false values.

Regards

Tamá

Former Member
0 Kudos

Hi,

The initial value for the character type is space..

Pass X in the variable..

Thanks,

naren

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

if that variable is of type CHAR and of length 1 CHAR then no need to pass any SPACE for it

By default it take SPACE as its value.

Otherwise give the space to that variable programatically as

data: var(1) .

var = ' '.

Regards,

Sreeram