3
1. Write a program to display the c ustomers by company code. The tables used for the select ion are KNA1, KNB1 and T001. Create a selection screen to take user input of Customer (KNA1- KUNNR) and Company Code (KNB1-BUKRS) as select-options. The output should be sorted by company code and customer number. The output should contain the fields in the following sequence:  Company Code (KNB1-BUKRS)  Company Code Text (T001-BUTXT) for the logon language  Customer Number (KNA1-KUNNR)  Customer Name (KNA1-NAME1)  Region (KNA1-REGIO)  Country (KNA1-LAND1) The output should contain the respective column headings (Use WRITE statement to display the column headings in the output) and the output should be displayed in a tabular format. 2. Write a program to display the sales order items and their cor responding schedule line data. The program will use the tables VBAP and VBEP. Selection Screen will contain Sales Order Number (VBAP-VBELN) and Sales Order Item (VBAP-POSNR) as select options. Sales Order Number should be a mandatory field for input. Ensure that the sales documents selected are only sales orders (VBAK-VBTYP = ‘C’). The output should contain the following fields:  Sales Order Number (VBAP-VBELN)  Sales Order Item (VBAP-POSNR)  Material Number (VBAP-MATNR)  Sales Order Item Text (VBAP-ARKTX)  Schedule line Number (VBEP-ETENR)  Order Quantity (VBEP-WMENG)  Confirmed Quantity (VBEP-BMENG) The output should contain the respective column headings (Use WRITE statement to display the column headings in the output) and the output should be displayed in a tabular format. 3. Create an Employee Database table in SAP with the following fields:  Employee Number - Type N length 5  Employee Last Name - Type C length 35  Employee First Name - Type C length 35  Employee Department - Type C Length 2  Employee Designation - Type C Length 25 and case sensitive Create entries in the database table and try modifying and deleting entries from the database table. 4. Create an Employee Department table in S AP with the following fields:  Employee Department - Type C Length 2

Reports Reports_ ExercisesExercises

  • Upload
    ag-sri

  • View
    218

  • Download
    0

Embed Size (px)

Citation preview

 

1.  Write a program to display the customers by company code. The tables used for the selection

are KNA1, KNB1 and T001. Create a selection screen to take user input of Customer (KNA1-

KUNNR) and Company Code (KNB1-BUKRS) as select-options. The output should be sorted by

company code and customer number. The output should contain the fields in the following

sequence:

  Company Code (KNB1-BUKRS)

  Company Code Text (T001-BUTXT) for the logon language

  Customer Number (KNA1-KUNNR)

  Customer Name (KNA1-NAME1)

  Region (KNA1-REGIO)

  Country (KNA1-LAND1)

The output should contain the respective column headings (Use WRITE statement to display the

column headings in the output) and the output should be displayed in a tabular format.

2.  Write a program to display the sales order items and their corresponding schedule line data. The

program will use the tables VBAP and VBEP. Selection Screen will contain Sales Order Number

(VBAP-VBELN) and Sales Order Item (VBAP-POSNR) as select options. Sales Order Number

should be a mandatory field for input. Ensure that the sales documents selected are only sales

orders (VBAK-VBTYP = ‘C’). The output should contain the following fields: 

  Sales Order Number (VBAP-VBELN)

  Sales Order Item (VBAP-POSNR)

  Material Number (VBAP-MATNR)

  Sales Order Item Text (VBAP-ARKTX)

  Schedule line Number (VBEP-ETENR)

  Order Quantity (VBEP-WMENG)

  Confirmed Quantity (VBEP-BMENG)

The output should contain the respective column headings (Use WRITE statement to display the

column headings in the output) and the output should be displayed in a tabular format.

3.  Create an Employee Database table in SAP with the following fields:

  Employee Number - Type N length 5

  Employee Last Name - Type C length 35

  Employee First Name - Type C length 35

  Employee Department - Type C Length 2

  Employee Designation - Type C Length 25 and case sensitive

Create entries in the database table and try modifying and deleting entries from the database

table.

4.  Create an Employee Department table in SAP with the following fields:

  Employee Department - Type C Length 2

 

  Department Name - Type C Length 25

Create entries in the database table and try modifying and deleting entries from the database

table.

5.  Write a program to select the data from the tables created in exercises 3 and 4. The election

screen should contain the Department Number as a Select-option. The output should list the

department number, department name, employee number, employee last and first names and

the designation.

6.  Continue to work on the employee and the department database tables created and build a

foreign key relation between the tables. This time use the MODIFY, Insert and Delete

Statements to change data in these database tables. Feel free to create your own tables (other

than the employee and department tables) and work on creating the data elements, domains,

foreign key relations and use the MODIFY, Insert and Delete Statements on them.

7.  Write a program to display the sales documents based on the following selection criteria:

  Select-Option: Order date (VBAK-AUDAT) – When the report is executed, this select

option should contain a default range of low = current date – 3 months and high =

current date

  Select-Option: Sales Document number (VBAK-VBELN)

Validate the sales document to exist for the given ‘order date’ range in VBAK. If there are no

valid sales available for the date range, issue an error message on the screen.

The output should contain the following fields displayed on the output:

  VBAK-KUNNR

  VBAK-VBELN

  VBAK-AUDAT

  VBAP-POSNR

  VBAP-MATNR

  MAKT-MAKTX for the corresponding VBAP-MATNR. Text to be displayed for the logon

language.

The output should be sorted by the customer number, sales document and the sales document

item. Give the appropriate column headings for the report (both basic list and the secondary

list) and display the report in a tabular format.

Ensure that when displaying data pertaining to the same customer, the customer number is not

repeated in the output. For example if there are 20 sales documents for the same customer, the

customer number should be displayed only on the first sales document line.

The page heading should read ‘Sales Document Details’ and also print the date and time of

execution and the page number in the heading. Draw a horizontal line after the heading.

 

Reserve 5 lines for footer and the page footer should contain a horizontal line followed by the

text – ‘Customers Displayed on this page’ and the customers listed on the page (VBAK-KUNNR).

There could be more than 1 customer displayed on the page, print all the customer numbers

separated by comma (,). Make sure that the footer is triggered for the last page of the report.

8.  Extend the above report to make it interactive by adding a secondary list to display the schedule

line detains of VBEP-ETENR, VBEP-WMENG and VBEP-BMENG. The secondary list should be

displayed when the user clicks on the sales document line on the basic list (Use HOTSPOT). Limit

the secondary lists to 1.

9.  Write an interactive report to display the customer details on the basic list and the

corresponding sales order details in the subsequent lists. The design is as follows:

  Selection screen to contain KNA1-KUNNR as a select-option. This select Option should

be mandatory for input.

  Validate the customer numbers entered on the selection to exist in KNA1.

  The basic list should display KNA1-KUNNR, KNA1-NAME1, KNA1-STRAS, KNA1-ORT01,

KNA1-PSTLZ and KNA1-LAND1.

  Create a GUI status on the Basic List with two push buttons on the application toolbar – 

‘Display Customer’ and ‘Sales Orders’. When a customer is selected and ‘Display

Customer’ is clicked, transaction XD03 should be presented by skipping the first screen.

When ‘Sales Orders’ is clicked, then the sales orders for the customer have to be

displayed.

  The sales order data (Select from VBAK only sales orders, i.e., VBAK-VBTYP = ‘C’) to be

displayed is VBAK-VBELN, VBAK-AUART, VBAK-AUDAT, VBAK-VKORG, VBAK-VTWEG and

VBAK-SPART for the selected customer (select data from VBAK based on KUNNR).

  This sales order data should contain another GUI status with one push button ‘Display

Sales Order’ and when the user selects a sales order and clicks the button, transaction

VA03 should be displayed by skipping the first screen.

  When the user double clicks on the sales order line then the data from VBAP must be

displayed in the next list. Display VBAP-POSNR, VBAP-MATNR and VBAP-ARKTX (I am

expecting that you would face issues to get this requirement achieved…. Try to google

for a solution).

  Give the appropriate column headings for the report (both basic list and the secondary

list) and limit the interactive lists to 2 and display the report in a tabular format.