google-site-verification: googlec13b2b482d5c880f.html google-site-verification=xvpB8nL6YB3BPAToMAY3GNAGNbLmIfrPxNd-W40DMfY

Friday 24 January 2014

Learn SAP ABAP in 20 days part 8.

Assignment 1:-
AFTER DOING THIS ASSIGNMENT YOU ARE ABLE TO CREATE YOUR OWN DOMAIN AND DATA ELEMENT  
Task 1:
Create two domains, so that you can use them later in the data elements.
1. Call transaction SE11
2. Create a domain with the name ZDO_10NUM_## in the initial screen of the ABAP dictionary.
3. The domain should be created for the data elements that should take on 10-digit decimal numbers. From these 10 digits, 2 should be reserve for the decimal places. The data elements should be able to be used for business calculations.
4. Save (as local object) and activate the domain.
5. In the initial screen of the ABAP dictionary create a domain with the name ZDO_30CHAR_##.The domain should be able to hold 30 text characters and in the entry field, the entry of the lower case letters should be permitted.
6. Save (as local object) and activate the domain.

Assignment 2:-
AFTER DOING THIS YOU ARE ABLE TO CREATE YOUR OWN DATA BASE TABLE.  
Task 2:
Create several data elements and used the already defined domains for the technical properties.
1. Call transaction SE11.
2. Enter data element (ZLASTNAME##) for the surname of the person and use a suitable domain. The data element should be able to hold 30 letters in upper and lower case.
3. Enter the data element (ZFIRSTNAME##) for the first name of a person and use a suitable domain. The data element should be able to hold 30 letters in the upper case and lower case.
4. Enter the data element (ZASSETS##) for asset and use a suitable domain. The data element should be used for business calculation.
5. Enter the data element (ZLIABILITIES##) for liabilities and use a suitable domain. The data element should be used for business calculation.

Assignment 3:-
AFTER DOING THIS ASSINGNMENT YOU ARE ABLE TO CREATE YOUR OWN INTERNAL TABLE.  
Task:3
Create simple internal tables on the basis of an existing structure, so that you can use them later in ABAP programs.
1. Crete a table type ZIT_SFLIGHT## in the Dictionary. The table type should be based on the line type of the database table SFLIGHT and be sorted according to the flight date (FLDATE).
2. Enter an ABAP program ZBC430_##_ITAB_SORTED.In this program, create a structured data object (wa_sflight) of the type SFLIGHT as the work area, and an internal table on the basis of the table type just defined. From the SFLIGHT table, select data of a carrier (e.g. ‘JL’) in the work area and output this as an unsorted list (use select-endselect).
3. Now create a program which reads data from the database table into the internal table type ' ZIT_SFLIGHT##' and print the data (this would be sorted data).

No comments:

Post a Comment