You are on page 1of 5

Solutions

Topic: Basic features

1-1

Log on to the system specified by the instructor and change your initial password.

1-2

You can open and close sessions using System Create session (or using the
appropriate icon) and System End session.
The maximum number of sessions you can have open simultaneously is 6.

1-3

To find the transaction code, select System Status. These screen names and
transaction codes correspond to the menu paths:
1-3-1 Transaction: SM04 for Screen Name: User list
1-3-2 Transaction: FD03 for Screen Name: Display Customer: General data

1-4

Help
1-4-1 The entire SAP Library is available including Getting Started.
Help Application help
1-4-2 T-CO05A##

(## corresponds to your assigned group number)

When you select F4 in the Customer field, the Restrict Value Range window
appears. You can explore the various tabs to see the different search criteria
available. Find a tab that includes the Name field and enter the following:
Field Name

Values

Name

Becker ##

Select the Continue Enter pushbutton. A window now appears listing the
customer account numbers that match your search criteria. Select the line
that corresponds to Becker ##, then select the Copy Enter pushbutton. This
automatically copies the customer account number into the Customer field.
1-4-3 Suggestion: The customer is a unique key (account number) used to clearly
identify the customer within the system.
1-4-4 FI Accounts Receivable and Accounts Payable
1-4-5 Use the Technical Info pushbutton to find the Parameter Id: BUK.

Exercises

ABAP programming 1

Topic: User-specific settings

2-1

Setting user parameters.


2-1-1 To assign a parameter value to a field you will need the parameter ID of the
field. First you need to select a transaction that contains this field. For
example, Company code can be found in transaction FD03. Next, place the
cursor on that field (just click on it with the mouse). Accessing:
F1 Technical Info Parameter ID
gives you the required information. For the Company code field, the
parameter ID is BUK.
Finally, you enter the parameter ID and desired value in your user profile:
System User profile Own data
On the Parameter tab you enter the parameter ID and value that you want to
be entered into the field. Save your entries.

2-2

Setting user defaults.


2-2-1 To set the logon language, go to your user profile:
System User profile Own data
On the Defaults tab, enter the language of your choice in the Logon
language field.
2-2-2 To set the decimal notation and date format, remain on the Defaults tab in
your user profile. Select the indicator adjacent to the notation and format
you desire. Save your selections.

2-3

Defining favorites of your choice.


2-3-1 Favorites Insert folder
Type any name for the folder then select Enter. You can add as many folders
as you desire. Once created, folders can be dragged and dropped to position
them where you want.
2-3-2 To create favorites, select specific applications (transactions) that you need
as favorites for your daily work from the menu tree of the SAP standard
menu. Add them to your Favorites list by selecting them and choosing
Favorites Add from the menu bar. Alternatively, use the mouse to drag &
drop favorites to a folder. You can also use the menu path Favorites
Insert transaction to add using a transaction code.. Finally, you can move
existing favorites to different folders later using Favorites Move or using
drag & drop.

Exercises

ABAP programming 1

2-3-3 Create Internet addresses using Favorites Add Web address or file. When
you select SAP Homepage from your favorites, an Internet browser will
open and you will be connected to SAPs homepage.

2-4

Setting a start transaction.


2-4-1 Extras Set start transaction
Enter a transaction of your choice then select the Enter pushbutton. Notice
the system message on the status bar indicates that your selected transaction
has been set as the start transaction. The next time you log on, the system
will go directly to your start transaction.
Note: To change back to SAP Easy Access as the initial screen, follow the
menu path again, delete the transaction code and select Enter. The
next time you log on, SAP Easy Access will be the initial screen.

Topic: Analyzing a program

3-2

Analyzing by executing a program:


3-2-1 You need to add the code for an airline to the program. This information can
be displayed from the input field using F1.
3-2-2 The values permitted here depend on the contents of database table SCARR.
You can display possible entries help from the input field using F4.
3-2-3 The program displays detailed information on the airline company selected.
This information is first displayed on the screen and then as a list.
3-2-4 The program contains a selection screen with screen number 1000, a screen
with number 100 and a list.
3-2-5 The field name of the input field on the selection screen is pa_car and the
names of the output fields on the screen are sbc400_carrier-carrid,
sbc400_carrier-carrname and sbc400_carrier-currcode.
You can display the field names using F1 technical info, then see the
box with the heading Field description for batch input.

3-3

Analyzing using the program's object list


3-3-1 The program has the structures sbc400_carrier and wa_sbc400 and
the elementary data object pa_car.
3-3-2 The variable pa_car belongs to the input field of the same name.
3-3-3 Screen 100 is processed using the statement CALL SCREEN 100..
3-3-4 The field name appears in an input field above the area for the screen layout.

3-4-3
Exercises

ABAP programming 1

3-4-1 The list is structured using the WRITE statement. The symbol / after the
WRITE statement creates a line break.
3-4-2 The SELECT statement is responsible for the database dialog. The data is
read from the database table SCARR. The database table name is specified in the
FROM clause of the SELECT statement. The database table has the fields MANDT,
CARRID, CARRNAME, CURRCODE and URL.
3-4-3 The information on the line to be read is in data object pa_car. This is in
the WHERE clause of the SELECT statement. Data object pa_car is automatically
filled with the selection screen input value as soon as the user chooses the Execute
function on the selection screen.

Exercises

ABAP programming 1

Unit: ABAP Workbench


Topic: Adapting a Program to Special Requirements

Model solution SAPBC400WBS_GETTING_STARTED


*&--------------------------------------------------------------*
*& Report
SAPBC400WBS_GETTING_STARTED
*
*&--------------------------------------------------------------*
REPORT

sapbc400wbs_getting_started

TABLES: sbc400_carrier.
DATA: wa_sbc400 TYPE sbc400_carrier.
PARAMETERS: pa_car TYPE scarr-carrid.
START-OF-SELECTION.
* Select all fields of one dataset from database table SCARR
SELECT SINGLE * FROM scarr INTO CORRESPONDING FIELDS OF wa_sbc400
WHERE carrid = pa_car.
* At least one record could be selected
IF sy-subrc = 0.
* Copy fields with corresponding names
MOVE-CORRESPONDING wa_sbc400 TO sbc400_carrier.
CALL SCREEN 100.
* Copy fields with corresponding names back
MOVE-CORRESPONDING sbc400_carrier TO wa_sbc400.
* Write data on list
WRITE: / wa_sbc400-carrid COLOR COL_KEY,
wa_sbc400-carrname,
wa_sbc400-currcode.
* add an empty line
SKIP.
* add a horizontal line
ULINE.
* write username, time and date on list
WRITE: / wa_sbc400-uname,
wa_sbc400-uzeit,
wa_sbc400-datum.
ENDIF.

Screen 100:
New Fields on screen 100:
SBC400_CARRIER-UNAME
SBC400_CARRIER-UZEIT
SBC400_CARRIER-DATUM
Exercises

ABAP programming 1

You might also like