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

mean space

Former Member
0 Likes
1,627

Hi abappers,

empty, is equals to space?

block_new = space

when I execute a module function, I have intro the date in the block_new (in this case space)

What value intro in the function module? because the value of block_new is empty

can you hep me, please?

Cordial greetings.

10 REPLIES 10
Read only

Former Member
0 Likes
1,242

Hi,

Which function module are you passing this data to ?

May be you can try block_new = ' '.

If you want to pass empty value , just write clear block_new and then pass it to the function.

regards,

Advait

Read only

0 Likes
1,242

Hi Advait,

Thank you for you attention,

I use the function module Z of other system

...

CALL FUNCTION 'ZCONECT'                         
                DESTINATION *zrfc 
            EXPORTING                                                 
                    block_old           = 'O'                  
                    block_new           = space

...

then I go to the function module in de DESTINATION and execute the function module with the value

O

space?, when I execute the function module, it ask the value of block_new, then I push the button V (intro) Is it correct?

Cordial greetings.

Read only

0 Likes
1,242

Its a custom function, check if the parameter block_new is mandatory, if it is, set a default value '' or make it optional in the function modules parameter in se37 .

regards,

Advait

Read only

Former Member
0 Likes
1,242

> What value intro in the function module? because the value of block_new is empty

You will need to tell us which FM you are refering to...

Based on your other posts you are on release < 46B , so perhaps only you can look into this FM and see what it is expecting of this parameter (if not space).

Cheers,

Julius

Read only

Former Member
0 Likes
1,242

No, Space is not equal to empty.

To pass an empty value you should either clear the variable or pass ''(two single quotes without any space inbetween).

Regards

Karthik D

Read only

Former Member
0 Likes
1,242

Hi all,

thank you for you attention,

I view that the field of the funtion module contain all fields as obligatory (check box no mark on optional)

Then, when I execute the funtion module on the destination, if I send value empty ¿what happen?

return error?

Cordial greetings.

Read only

0 Likes
1,242

Hi,

If there is no default value specified, and you dont pass anything, it will give an error because that parameter is mandatory. But if you define some default value to that parameter and you dont pass it, then it wont give any error.

But it should be ok if you simply pass '' ( 2 single quaotes without any space in between ) this will also work and it will treat it as blank value.

What is the data type for block_new ?

regards,

Advait

Edited by: Advait Gode on Nov 3, 2008 1:40 PM

Read only

0 Likes
1,242

Hi Advait,

LIKE IREF-IIND

Dummy structure with fields for purely formal DDIC refs - Yes/No (X/ )

Data element OAX

Domain X

Data type CHAR

No. characters 1

Decimal places 0

Output length 1

On tab value range (Single vals) :

This column the text tytle is empty and the value here too is empty

(text tytle) Fix.val.

X

(text tytle) Short text

Yes

This column the text tytle is empty but the value here is simbol equal

=

(text tytle) Fix.val.

(text tytle) Short text

No

Cordial seetings

Read only

0 Likes
1,242

Hi,

I dont see any problem with passing of 2 single quotes '' or SPACE to this parameter when you call the function. However , have you tried with assigning a default value '' in that parameter and see what happens.

Also if you execute the function using SE37, it will ask you to pass the value block_new if you leave it blank, then you can provide enter a singe space. But not when you call it from the program.

regards,

Advait

Edited by: Advait Gode on Nov 3, 2008 3:05 PM

Read only

Former Member
0 Likes
1,242

Thank at all for you attention,

The problem is solved.

the profile of the user remote (ACTV 02 (changed)) on the funtion remote.