Posts

Showing posts with the label Programming Tutorial

Mastering ABAP: A Step-by-Step Guide to Function Modules and Groups for Modularized Programming

Image
  Function Modules :- It is a modularization technique. The transaction code to create a function module is SE37. To create a function module, we need to create a function group. Function Group :- Function group is a container for the function modules. The transaction code to create a function group is SE80. A function group can store up to 99 function modules. Requirement :- let’s create a function module for sum of two numbers. 1. Creation of function group :- Step 1 :- Go to SE80 transaction code → Object Navigator. Step 2 :- From the drop down select function group. Step 3 :- Give a name of function group. Step 4 :- press enter. Step 5 :- Click on yes a popup screen will appear. Step 6 :- Give short description → press enter → Assign package and transaction request and press enter. Step 7 :- Right click on function group and click on activate to activate the function group. Step 8 :- You will see two includes, will be added after ac

Navigating SAP ABAP: Deep Dive into Selection Screens, Parameters, and Select-Options for Effective Input Management

Image
 Welcome back everyone, we were discussing about types of internal table till our last blog. For previous concepts kindly follow the previous blogs. From today on we are going to start with Selection screen. Selection Screen :- Selection Screen is also known as Input Screen. With the help of selection screen user provides a input to the program. What is the Screen Number of Selection Screen ? →Every Selection Screen or Input Screen always has the number 1000 (It is the standard selection screen). How to Find the screen number ? Step 1 :- Click on Environment. Step 2 :- Click on status. you can find the screen number in the status. Input to the Program :- There are 2 ways to provide the input to the program. Parameters Select-Options 1. Parameters :- Select-Options are used to pass the single input. The various parameters variations are as follows :- PARAMETERS<p> ……….. DEFAULT <f> … PARAMETERS<p> ……….. OBLIGATORY … PARAMETE

Navigating SAP ABAP Loops: Unraveling 'Continue' and 'Check' Statements, System Variables, and More! (Day 18)

Image
 Welcome back everyone to this Complete SAP ABAP Master Series. We were discussing about loops in our previous blogs, So we will continue it. Loop Statements :- Exit :- Exit is used to exit from the loop. Continue :- Continue is used to skip the current processing of the record and then process the next record in the loop statements. Check :- If the Check condition is not true, loop will skip the current loop pass and move to next loop pass. → We already have seen the practical implementation of exit statement in the previous blog, So let’s continue with Continue statement. Continue Statement :- Whenever continue statement will trigger, it will skip the current iteration and move to next iteration. let’s see the practical implementation. ************************************* **Using Continue statement in Do loop. DATA : lv_input(2) TYPE n VALUE 10. DO 10 TIMES. IF lv_input = 14. CONTINUE. ENDIF. WRITE :/ 'The output is ', lv_input. lv_input = lv_input