Posts

Showing posts with the label Function Module Parameters

ABAP Function Module Integration: Calling and Handling Exceptions in Program

Image
 We have created a function module in our previous part, but for the real world scenario, We must call our function module in the program because Customer will ultimately run the program, he will not be going to SE37 to execute the function module. Calling Function Module in the Program :- Step 1 :- Go to ABAP Editor ( SE38 ). Step 2 :- Create a executable program. Step 3 :- Take two input parameters for the sum of two numbers. Step 4 :- Click on Patter → Select the first radio button → write the name of your function module and press enter. Step 5 :- Provide the importing and exporting parameters. Code :- *********************************************** *Start of Program ********************** *Declaring two input parameters PARAMETERS : p_input1 TYPE numc2. PARAMETERS : p_input2 TYPE numc2. *************** *Declaring output variable. DATA : lv_output type numc3. ********************* *Calling function Module CALL FUNCTION 'ZAR_SUM_OF_TWO_NUMBERS' EX