2008 Sep 02 10:38 AM
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
2008 Sep 02 10:42 AM
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
2008 Sep 02 10:40 AM
2008 Sep 02 10:43 AM
with TYPE-POOL I got the Syntax error and it suggest the TYPE-POOLS itself
2008 Sep 02 10:42 AM
Why don't you simply use a variable of type char1 (same thing of type ABAP_BOOL)?
Regards,
Valter Oliveira.
2008 Sep 02 10:45 AM
You are right, but I just want to know why it doesn't work with the type-pools
2008 Sep 02 10:53 AM
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.
2008 Sep 02 11:05 AM
Thank you for your respond.
I have already declared this in the top include. But it doesn't work.
2008 Sep 02 11:07 AM
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.
2008 Sep 02 11:17 AM
is the processing type of your function checked with "Remote-enabled" ?
regards
Kami
2008 Sep 02 11:57 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |