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

Using ABAP_BOOL within an RFC call

Former Member
0 Likes
2,966

Hello @ll,

I have created a RFC function and I need to use the parameter in my interface (import and export) with "TYPE ABAP_POOL. However the system doesn't allow this with the message "The ABAP_BOOL is neither know nor allowed" even though I have the statement: TYPE-POOLS: abap. in my coding. Does anybody know why and how can I correct my entry.

Thanks

1 ACCEPTED SOLUTION
Read only

valter_oliveira
Active Contributor
0 Likes
2,396

Why don't you simply use a variable of type char1 (same thing of type ABAP_BOOL)?

Regards,

Valter Oliveira.

Hi,

It should be TYPE-POOL abap .

Regards

Guru

9 REPLIES 9
Read only

Former Member
0 Likes
2,396

Hi,

It should be TYPE-POOL abap .

Regards

Guru

Read only

0 Likes
2,396

with TYPE-POOL I got the Syntax error and it suggest the TYPE-POOLS itself

Read only

valter_oliveira
Active Contributor
0 Likes
2,397

Why don't you simply use a variable of type char1 (same thing of type ABAP_BOOL)?

Regards,

Valter Oliveira.

Read only

0 Likes
2,396

You are right, but I just want to know why it doesn't work with the type-pools

Read only

0 Likes
2,396

Ok. For that you cannot declare the type-pools in the function itself. If you do that, you can only use it in data declaration in the FM code.

If you want to use it as a parameter, must use TYPE-POOLS: abap in top include of function group.

Include LZFMGTOP (for function group ZFMG).

Regards.

Valter Oliveira.

Read only

0 Likes
2,396

Thank you for your respond.

I have already declared this in the top include. But it doesn't work.

Read only

0 Likes
2,396

That's very strange. I used it here and worked. In top include using type-pools: abap and then in the FM, add a parameter called test TYPE abap_bool. Check that you are using the correct include.

In FM coding appears:


FUNCTION ztest.
*"----------------------------------------------------------------------
*"*"Interface local:
*"  IMPORTING
*"     REFERENCE(TESTE) TYPE  ABAP_BOOL
*"----------------------------------------------------------------------

ENDFUNCTION.

Regards.

Valter Oliveira.

Read only

0 Likes
2,396

is the processing type of your function checked with "Remote-enabled" ?

regards

Kami

Read only

0 Likes
2,396

well, I think I don't deserve those points, because no ... I didn't use RFC FM, just FM.

With RFC it creates a new include LZFMGV01 that somehow doesn't have a main program (which would have a top include). I'll try to find how to create this main program that contains LZFMGV01.

Regards and good luck!

Valter Oliveira.