Questions tagged [function-module]

A function module is an SAP sub-program containing reusable code. They can be used to modularise ABAP programs. This tag can be used for issues using predefined function modules and for problems writing and implementing user created function modules.

Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.

Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.

The Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.

Useful Links

Related Tags

84 questions
0
votes
0 answers

How to remove serial numbers from delivery SAP?

I need to remove serial numbers from outbound delivery via standard FM-BAPI. I used DELETE_SERNR_LS but this just changes the status of the serials.
rikymiami
  • 71
  • 2
  • 4
  • 14
0
votes
2 answers

Pass table parameter to FM via selection screen

I need to call a function that has a table type as import parameter in a program. I thought about doing this with a selection screen but I can't use deep structures as parameters. When I 'TEST' that function module it shows me a thing where I can…
0
votes
1 answer

Reference parameters are not allowed with RFC

Can anyone advise me on this error?
H.K
  • 138
  • 7
  • 17
0
votes
2 answers

How to send Chinese characters from SAP to PHP through RFC?

i am communicating to PHP through RFC using function module.i tried to send chinese characters from function module to PHP , but in PHP side i am getting chinese charcters in the form of ###### , i don't understand which side the problem is ,either…
Archana Palani
  • 247
  • 1
  • 6
  • 23
0
votes
2 answers

How to display WebDynpro ABAP in ABAP report?

I've just started coding ABAP for a few days and I have a task to call the report from transaction SE38 and have the report's result shown on the screen of the WebDynPro application SE80. The report take the user input ( e.g: Material Number,…
pandaDev
  • 41
  • 2
  • 8
0
votes
1 answer

FM parameter is always in SE37

We have a function module which contains an importing parameter IS_USER, which is of type S_USER, S_USER is a structure and contains the following fields: USER_ID USER_ID CHAR 60 IP_ADDR IP_ADDR CHAR …
Leon Ren
-1
votes
2 answers

How to read structured import parameter in function module?

I'm new to SAP ABAP and want to achieve the following: I've my custom Z function module (SE37) which should have a table as import parameter. This table I want to read/loop in the code, parse the values and pass it back to an export parameter (which…
Schlager Bar
  • 31
  • 1
  • 6
-1
votes
4 answers

Delete table entry locks

I have tried using the FM ENQUE_DELETE but I keep on not getting the expected result to delete the lock for some table entries. I noticed that there are different kind of locks and the program that locked those table entries is using lock type…
eunique0216
  • 875
  • 1
  • 16
  • 28
-5
votes
2 answers

how to include select-options parameter in function module

I have requirement where I need to fetch from - to (i.e the date value) values from select options to the function module. How do I declare these values in import parameter?
Pooja
  • 11
  • 1
  • 2
1 2 3 4 5
6