You are on page 1of 12

Data Dictionary

1. Create a structure for address with the following fields

a. SuiteNo, StreetNo, StreetName, Region, City, Country, Zipcode,


tele_home, tele_business, tele_fax.

2. Create a Vendor database table with fields, Id, name, and address structure
created in Q1.

3. Create a maintenance screen for the above table and assign a transaction
code. Use the transaction code to maintain the table and create entries in it.

4. Create a database view V_DBMARA for MARA and try to maintain it creating
entries through the view and see if the table MARA gets updated.

5. Create a database view V_DBSO for EKKO and EKPO and try to maintain it
updating the records in it through the view and see if the tables EKKO and
EKPO gets updated.

6. Create a Projection view V_PJLFA1 for LFA1. What’s the difference do you
observe?

7. Create a maintenance view V_MTPO for EBELN and EBELP and try to
maintain its records through the view and see if the tables EBELN and
EBELP get updated.

8. Create a Help view V_HLPKNA1 for KNA1

9. List the differences between a Maintenance view, Database view and a Help
view

10.Create elementary search help for

a. Vendors by company

b. Vendors by material

c. Vendors by country

11.Create a collective search help and include all the elementary search helps
created in Q10.

12.Create lock objects for the table created in Q1. Check the function modules
created.

13.Write a program to update the table you have created in Q1. Use the lock
objects created for the tale in Q12.

Internal Tables
1. Create an internal table taking all the fields from BKPF and display fields
company code, document number, document type and date of document.
(use ALV and use REUSE_FIELD_CATALOGUE_MERGE Function Module)

2. Create and internal table taking fields company code, document number,
account type and tax code from table BSEG and display the same with
column heading. (Classical report)

3. Create and internal table with following fields.

- Sales document and material from table VBAP

- Date, name of the user and sales document type from table VBAK and
price group and customer group from table VBKD

- Sort the table according to material number and display the contents

4. Create an internal table called T_BSIS having a similar structure as table


BSIS, explore all possible methods to create the internal table with header
line without header line, use data... begin of...End of data.. Like. Data...
include structure...Etc.)

- Also create a field string F_BSIS. Populate the internal table with the
contents of BSIS. Sort the table according to company code and display
contents.

5. Determine for each material type (MTART) the 5 table entries with the
highest gross weight (as a ranked list).

- To do this read the table MARA and store the material type (MTART)
material number (MATNR), unit of measure (MEINS) and gross weight
(BRGEW) into an internal table.

- Allow the user to specify the Material type as a parameter on the


selection screen.

6. Create a list of the maximum number of available seats for each CARRIER.
To do this read the table SFLIGHT and store the airline carried id (CARRID)
and the maximum number of seats (SEATSMAX) in an internal table.
Determine the total number of seats for each airline carrier when filling the
internal table.

7. Read the table SFLIGHT into an internal table and then output the internal
table with the fields CARRID, FLDATE and PRICE.

- Delete all the internal table entries where the airline carrier (CARRID) is
not equal to LH. Read the internal table with entry with the key CARRID
= LH and CONNID = 0400, multiply the price by 3 and write the modified
entry back to the internal table. Then output the internal table.

8. Read table TABNA into internal table and output the fields.
- Country, id, name1 and sales. sort the table with country

- Delete all internal table lines with sales lower that 50,000

- Read internal table with key ’GB’ and ‘00000003’ and multiply the sales
by 3 and change table entry

- Insert any one record of your choice

- Find out how many lines are there in the internal table

- Remove all the contents of the table

- De-allocate the memory associated with the table.

9. Use LFA1, LFB1 AND LFM1

- Define an internal table with the following

- LIFNR like LFA1-LIFNR

- BUKRS like LFB1-BUKRS

- EKORG like LFM1-EKORG.

- Add data from these tables into the internal tables.

- Sort the internal table LIFNR

- Read the internal table with LIFNR = ‘xxxxxxxx‘and change name to


trainee.

- Put back the record into the table

- Delete first three records of internal table

- Clear header for internal table each time your access a record.

10.Create a report which will give the existing stock for a material. The report
should have subtotal of the stock for each storage location and grand total
of the stock at the end of the plant.

- Plant data should start at new page.

- Input: selection screen which will allow, selecting a range of materials.

- Material: select-options.

- Output as

Plant Storage Material Description Stock


location number (unrestricted)
GrandTotal
xxxxxxxxx

11.Generate a report for displaying material description , plant and storage


data

- Input: material number (MARA-MATNR)

- Choose any 5 materials.

- Output format

Material no. Description


Xxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx
Plant: Storage loc. Unrestricted stock
Xxxxx xxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx
- All texts are to be generated using Text Elements only

- Use tables MARA, MAKT, MARC, and MARD.

12.Test for performance of internal tables.

a. Create program to declare 3 internal tables of different kind


(standard, sorted, and hashed). Each table contains 2 fields. (INDEX,
QUANTITY)

b. Selection screen should accept a 2 parameter for ‘Number of records’


and ‘Search item’.

c. The internal tables should be populated with number of records


which the user gives in the selection screen.

d. Read the internal tables for a specific record given in the second
input field ‘Search Item’ in the selection screen and print the time
taken for reading / searching the specified value through each
internal tables.

13.Pull the data from EKKO and EKPO into an internal table with a selection
criteria as sales document number as the range (select options) and display
the data in

a. Excel Sheet. The excel sheet should contain the Field Names in the
first column. Excel application should execute and should be
displayed to the user. (Use EXCEL_OLE_STANDARD_DAT)

b. Show into the HTML format and should be displayed in the browser.

c. Show the data into Standard XML format.


d. Send the data as an attachment to your own email id.

Subroutines

1. Read the number between 0 and 100 and another digit between 0 and 9.
write a subroutine that will calculate the sum of all numbers (below the
limit) that end with the digit. The parameters to be passed are limit and
digit both by value and sum by reference.

- Ex if limit = 67 and digit = 4 then sum should be the sum of 4, 14, 24,
34, .........64

2. Write a subroutine CENTER-STRING which will output a string on the centre


of a line. The subroutine will accept parameters STRING pass by value.

3. Write a program extensively using subroutines to print the equivalent


number in words.

- For example : if the number is 66 the output should be SIXTY SIX

- Accept the input number as a parameter

4. Accept a date from the user

- Write a date as dd-mmm-yyyy

5. For each flight connection calculate the sales for all flights of an airline
carrier. Use internal table for calculating the sales. Use a subroutine for the
output by passing the internal table as the parameter.

Symbols, Icons and Formatting

1. Write a program to show the following using system variables (hint: use
include<symbol> and include <icon>

a. Symbols:

i. Telephone,

ii. Fax machine,

iii. Hand pointing left,

iv. Hand pointing right,

v. Caution.

vi. Traffic lights

b. Icons:

i. Checked,

ii. Okay
iii. Delete

iv. Print.

2. Write a program to show a string with different background colours.

3. Use format intensified – format intensified off, format colour, format inverse.

4. Show a value ‘123456’ as 12:34:56 ‘using edit mask’

5. Take a number as ‘0000011’. Suppress all leading zeros.

6. Suppress a sign before a number.

Strings

1. Declare a string ex: ‘echo’ and design your output.

Your program should be able to accept any string.

E C

ECH

ECHO

ECH

EC

2. Create an output as shown below (input for the program say 5 thru selection
screen)

..

...

....

.....

3. Accept a string and check for palindrome

4. Accept a string and display the string in reverse order

5. Accept a string and change all occurrences of a to b.

6. Accept two stings and compare the two stings using ‘co’, ‘ca’, ‘cs’, ‘cp’.
(Output shall be ‘true’ or ‘false’ for each comparison.
Loops

1. Write a program with DO- ENDDO Loop

Display squares of numbers 1 to 10.

1 1

2 4

3 9

2. Write a program to accept a number (say 2) from user and create a


multiplication table.

2*1 = 2

2*2 = 4

2*10 = 20

3. Accept a number from user and find Factorial of the same. If the numbers is
negative then display some message.

4. Write a program with DO- ENDDO Loop for first 20 numbers.

- Output should contain only Even numbers

- Odd numbers should not be displayed

5. Accept numbers and choice ‘EVEN’ or ‘ODD” from the user and display the
numbers in that range according to user’s choice.

6. Write a program with DO-ENDDO Loop for first 20 numbers

- Odd numbers and even numbers should be displayed with alternate


intensities. (format options)

7. Create a calculator which performs the four basic types of calculations on


two whole numbers. The two values and the option to be entered on the
selection screen as parameters. Output the result with 2 decimal places.

8. Write separate programs using ‘CONTINUE’ and ‘EXIT’ statements in DO


LOOP.

9. Accept a number and print all the prime numbers starting from 1 till the
given number.

Date
1. Accept a date earlier to today’s date and fine the difference in number of
days.

2. Accept a date from user and display first day of the month and last day of
the previous month.

3. Accept a date form user and add six months to the date

4. Accept a date form user and convert month part to ‘Jan’, ‘Feb.’ etc. and
display this date

5. Write a program to accept month. Display no. Of days in that month.

- Make use of

o Text element for your selection screen box

o Selection text.

6. Accept birth date form user and output age in years, months and days.

Check Boxes and Radio Buttons

1. Write a program with

a. Parameter as checkboxes

i. If checkbox 1 is clicked write c.b. 1 is clicked else c.b. 1 not


clicked.

ii. If checkbox 2 is clicked write c.b. 2 is clicked else c.b. 2 not


clicked.

iii. If checkbox 1 & 2 are clicked write c.b. 1 & c.b. 1 are clicked

iv. If checkbox 1 & 2 are not clicked write c.b. 1 & c.b. 2 are not
clicked.

2. Write a program with

- Parameters as two groups of radio buttons (two radio buttons in each


group)

- Give detailed coding as above, to show the radio buttons and groups
selected

3. Write a program with

- Parameter as checkbox

- If you click the checkbox the display first day of the next year

- If the checkbox is not clicked then display last day of the current year.
4. Write a program with

- Parameter as group of 3 radio buttons.

- If first radio button is clicked, display last day of the current month

- If second radio button, display first day of the next month

- If third radio button, display date after six months

Select statements

1. List all the rows from the table VBAK.

2. List single row from the table BKPF

3. List up to 5 rows from the table BSIS.

4. List all ERDAT’s for better readability create a column heading in the list

5. Display total amount for CARRID ‘LH’ (tables: SFLIGHT). Display the amount
also in words.

6. List all the flights for which payments currency is ‘DEM’.

7. List the flights where CARRID is between ‘LH’ and ‘SQ’.

8. Display CARRID, CONNID, FLDATE and luggage weight multiplied by 2.

9. From the given FROM-CITY and TO-CITY , list all the available on this route,

- Tables SPFLI.

Carrier ID Departure time Start airport Destination


airport

Open SQL

1. Accept document no. From user and display particulars of Sales Document.
(table VBAP)

2. Accept sales document no. From user and display corresponding material
no. Description of that material and item category (table VBAP)

3. Accept material no. & item category by default PP1000 and KMN
respectively display corresponding details of sales document (table VBAP)

4. Display fields from BKPF.

- Document type ‘AB’ and

- Document date ’05.02.1998’


- Also display no. Of records selected.

5. Display CO.CODE , DOC.NO. ACCT.TYPE , TAX CODE.

- Make use of select options to give range of document type

- Display title of your program at the end of program.

6. Accept DOC.NO from user. Display doc. No. Doc status, date of doc. Doc
type

7. Accept plant from user Eg: 100

- Display document detail for the plant like DOC.NO... DOC.STATUS, DATE
OF DOCUMENT.

Module Pool

1. Create a transaction with three screens

- Screen one:

o Radio button : 2 - R1 and R2

o Push button: 2- NEXT, EXIT.

- When NEXT button is pressed display screen 2 or screen 3 on the radio


button selected.

- I.e. if R1 is selected display 2 or if R2 is selected display screen 3

- Screen two:

o Entry fields: SPFLI-CARRID, SPFLI-CONNID, SPFLI-CITYFROM, SPFLI-


CITYTO.

o Pushbutton: FIRSTSCREEN, EXIT.

- Screen three:

o Entry fields: SFLIGHT-CARRRID, SFLIGHT-CONNID, SFLIGHT-


FLDATE, SFLIGHT-SEATSMAX, SFLIGHT-SEATSOCC

o Pushbuttons: FIRSTSCREEN, EXIT.

- ‘FIRSTSCREEN’ pushbutton is to display screen 1 and exit is to quit the


transaction.

- Use SELECT SINGLE.

2. Create a transaction with one screen

- Screen one:
o Entry fields: MARD-MATNR, MARD-WERKS, MARD-LGORT

o Pushbuttons: FIRSTRECORD, NEXTRECORD, PREVIOUSRECORD,


LASTRECORD, EXIT.

o Select the data from MARD into an internal table and whenever a
button is pressed display the corresponding record ( i.e. first,
next, previous, last using the internal table index)

o EXIT to quit the transaction.

3. Copy above transaction and enhance it with the following features.

- Place two pushbuttons ‘LIST’ and ‘ALV LIST’. When this button ‘LIST’ is
pressed display a list in classical reporting and ‘ALV LIST’ button is
pressed display an ALV list for the fields.

- MARD-MATNR, MARD-WERKS, MARD-LGORT.

- Use LEAVE-TO-LIST-PROCESSING.

4. Create a transaction with two normal screens and two subscreens.

- Screen 1. Normal screen

o Entry fields : MARA-MATNR

o Radiobuttons: PLANT, DESCRIPTION

o Pushbutton: DISPLAY, EXIT.

- Screen 2. Normal screen

o Display fields: MARA-MATNR

o Pushbuttons: BACK, EXIT.

- Screen 3. Subscreen

o Display fields: MARD-WERKS, MARD-LGORT.

- Screen 4. Subscreen

o Display fields: MAKT-SPRAS, MAKT-MAKTX

- When the display push button is clicked, display screen 2 with the proper
subscreen attached to it based on the selection of radio button. (i.e.,
screen3 if plant is selected and screen 4 if description is selected).

ALV Classical Function Module

1. How to use simple ALV list


2. How to use simple Grid ALV

3. How to trigger ALV events.

o With using Reuse_alv_events_get

o Without using

4. Reuse_alv_events_get

5. Cover all the events... (Search and do it... don't leave anything)

6. How to use a Block ALV

7. How to use a Hierarchical Sequential ALV list

8. How to use an Interactive ALV list

9. How to use pop-up-ALV

10.How to set custom logo in ALV reporting

11.How to add a custom (GUI element) button on the ALV application tool bar
and how to handle it.

12.How to color a particular field of a row. (Cell coloring)

o Ex: I am trying to display an ALV list with two columns' of employee,


name and his salary So whenever the salary crosses value 10000
then that particular cell should be clouded differently.

13.How to use variants.

14.How to use sorting totals and subtotals.

15.How to use layout and its different properties.

16.How to use print parameters or handling printing in ALV

You might also like