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

help in calling function module

Former Member
0 Likes
804

need to call a function module, for security purpose, do not want to show the name of function module,

how it can be done ?

Study SAP

8 REPLIES 8
Read only

rainer_hbenthal
Active Contributor
0 Likes
784

You need to call the function module. For security reasons, i cannot show the sourcecode.

Read only

0 Likes
784

for example in smart form we can call the function module using variable value.

Call Function fm_name

We can get the value of function module for smartform using FM ssf_function_module_name, passing the same in fm_name.

But when we have our own function module, needs to call FM with same style.

The name of function module should not be shown in the code.

This is the requirement.

Read only

0 Likes
784

Go to view v_fdir and give your function module name and get the area and include number.

now try this code example.

data: funcname like v_fdir-funcname.

select single funcname into funcname from v_fdir where area = <your FM area> and include = <your FM include num>.

call function funcname.

Edited by: riki frisky on Feb 3, 2009 6:36 PM

Read only

0 Likes
784

>

> for example in smart form we can call the function module using variable value.

>

> Call Function fm_name

>

> We can get the value of function module for smartform using FM ssf_function_module_name, passing the same in fm_name.

>

> But when we have our own function module, needs to call FM with same style.

> The name of function module should not be shown in the code.

It seems your End-users undertand the ABAP.

If yes than they can Just Double click on fm_name it will take them towards FM name

Read only

Former Member
0 Likes
784

>

> need to call a function module, for security purpose, do not want to show the name of function module,

> Study SAP

Have you tried the Invisible font in the new ABAP Editor yet?

Read only

dev_parbutteea
Active Contributor
0 Likes
784

Hi,

Do you think that we will crack your system if you give us the FM name?? Are you a developer or a FUNCTIONAL ??

Read only

matt
Active Contributor
0 Likes
784

I think the responders so far don't understand the question. But that's probably because you don't state it very well. What you want is a way to call a function module without having the name of the function module in the program. Easy.

Create a table with one field, perhaps in an encrypted format. Let's say you've a function module (DECRYPT) that decrypts the entry in the table to plain text.

SELECT SINGLE field FROM my_table INTO my_field.
CALL FUNCTION 'DECRYPT' exporting output = my_field
                        importing input = plain_text.
CALL FUNCTION plain_text.

You should have noticed that in most cases, where you see CALL FUNCTION, it is followed by a character literal. CALL FUNCTION 'SOME_FUNCTION'. You see, it's encased in quote. That makes it a literal. You can replace the name of the function module, with the quotes, with any character like variable that contains the function name.

matt

Read only

Former Member
0 Likes
784

But if the concern here is that the user can display the name of the function in the code, then why should the concern be less if they can just as well display the name of the function in the debugger, or a developer trace, or a dump....

Cheers,

Julius