ABAP Programs: Calling a function
REPORT ZSOURCE1010.
* Variable for later use
DATA: X TYPE I VALUE 5,
Y LIKE X VALUE 7,
MAXIMUM LIKE X.
* Calling a function
CALL FUNCTION ‘MAX_TEST’
EXPORTING
A = X
B = Y
IMPORTING
MAX = MAXIMUM.
WRITE MAXIMUM.
———————
ABAPer, mail: abap.community@gmail.com http://www.erpdb.info
If you like this post, you may as well like these too:
- Calling ABAP Programs Internally From a user perspective there are two ways of starting programs: direct execution using the program name for executable programs, or selecting a transaction code for module pools. These two...
- FUNCTION: ABAP Keyword a Day FUNCTION : Defines a function module. FUNCTION <func_name> Introduces the function module . This statement is not entered in the ABAP Editor, but is automatically generated by the Function Builder...
- Calling an Unauthorised transaction Did you ever have the need to run a transaction and SAP ditched you by saying…’You are not authorized to use transaction <Transaction>’. This neat little trick will help you...
- Calling BAPI from Visual Basic(VB) In this exercise you will learn about logging onto the SAP system and you will also use a BAPI and create a sales order in SAP. All without logging onto...
- ABAP Source Code: Syntax of ABAP/4 Programs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 * Declaration...
- ABAP Programs: Exporting to the ABAP/4 Memory REPORT ZSOURCE1401. * Work areas TABLES: CUSTOMERS, BOOKINGS. * Internal tables which will be exported DATA: ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100 WITH HEADER LINE, ALL_BOOKINGS LIKE BOOKINGS OCCURS 10 WITH...
- ABAP Programs: Importing from the ABAP/4 Memory REPORT ZSOURCE1402. * Internal tables which will be imported DATA: ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100 WITH HEADER LINE, ALL_BOOKINGS LIKE BOOKINGS OCCURS 10 WITH HEADER LINE, NEW_BOOKINGS LIKE BOOKINGS OCCURS...
- SAP Function Modules SAP Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers...
- What is a Function Group A Function Group is an ABAP program that contains function modules. Function modules that work with the same data objects can be combined to form the function group. Each function...
- Remote Function Call RFC is a communication interface that provides the ability to call a function remotely from another SAP System or Non SAP System. Each function module has a defined interface through...
- Function Module Exit Function Module exits exist in some SAP application programs to allow a customer to add some functionality to the SAP Program. Search the SAP application program for the search string...
- Using BAPI Function module Using BAPI_PO_Create as an example. This step by step guide teaches you as to how to create a Purchase order using BAPI’s through programming. Download from Rapidshare or Mediafire....
- Tips : Function Modules Amount and Currency Date and Time Files Mail and SAP Office Name and Address Messages and Pop-up Screens Reports and Dynpros System ( Logs, Directories, etc) Texts Others...
- ABAP Programs: Using colors REPORT ZSOURCE0807. * Display the header using an appropriate color (grayish blue)WRITE ‘Header’ COLOR COL_HEADING. * Switch the standard colorFORMAT COLOR COL_TOTAL. * Make the color less brightWRITE / ‘total...
- Some Cool Programs in ABAP and the link is :- http://www.kabai.com/abaps/q.htm...



















Leave a Reply