ABAP Solution
ABAP Solution
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##
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
2-1
2-2
2-3
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
3-2
3-3
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
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