Sunteți pe pagina 1din 3

1) How can u put vertical lines? Whats the system function to put a vertical line?

Sy-vline 2) Whats the other option to put a vertical line? Write '|' 3) What is the use of the read statements? This statement is used to read one particular set of record. 4) Name at least 2 options which can be used in read statement. Sort, Dece. 5) Explain any 3 types in write statement? No-gaps, no-sign, using edit mask, no-zero. 6) Write can be used similar to another statement. What is that ? Move. Write f1 to f2. 7) What are the system functions for date and time? Sy-datum and sy-uzeit. 8) What is the difference between type and like? 9) Explain Sy-subrc 10) Explain clear, free, refresh. 11) What the options can be used to format? What it does? Color, intensified (makes it bold) and inverse. 12) What is a text element? Can it be used to store data inside? text elements r the concepts in which the headings r stored and it is used for generating output and no data can be stored in it except the headings which is used to format the output. Manipulations 1) What a shift does and what r the various types in shift? Shift used to shift the characters towards left or right or rotate. Types in shift are left, right, circular.

SHIFT <variable> CIRCULAR. SHIFT <variable> RIGHT BY 2 PLACES.

2) What is the difference between concatenate and condense? Concatenate: combines 2 or more variables and give that as a formatted output. Condense: this combines all the values in a structure and give that as an output. 3) What translate does? What are all the options present in translate? Translate is a formatting command. Using translate we can change the case, we can make use of code and we can change the characters. 4) What replace does? Replaces the first occurrence of the contents of field f in field h with the contents of field g. All fields are handled in their defined length, including C fields, where trailing blanks are usually ignored. Looping 1) What are different looping statements? Do.... enddo While..... Endwhile Loop..... Endloop Select..... Endselect 2) Explain and give an example for do..... Enddo, where it can be used in live situation. if we know how many times the loop should be performed we c an go for this. Like if we have 22 staffs here and we want to give increment to them and this should happen 22 times, so here we can use this. 3) Explain and give an example for while..... Endwhile where it can be used in live situation. at some conditions the loop should end or it should start. In these cases while loops can be used. When, the salary of any particular employee has to be increased. This can be used while emp-emp_id = 25 emp_sal = 6,000/4) Explain and give an example for loop..... Endloop where it can be used in live situation. These kinds of loops are used at the time of manipulating the data using internal tables. To get the output from an internet table this loop can be used to take the data from it. 5) Explain and give an example for select..... Endselect where it can be used in live situation. These kinds of loop statements are used to get the values from the database table based on the conditions required for the operation.

Select * from <dbtab> into <wa> where <cond>. Conditional operators 1) What is a conditional operator? When some action should be performed while it satisfies a specific condition, these conditional operators can be used 2) How many types of conditional statements r there and what r they? There r 2 types of conditional statements and they r if..... End if and case... when... endcase. 3) What is the difference between these 2? When there is a case to choose out of 2 choices using some arithmetic operators. If.else can be used. When there is a case to choose out of more number of choices case end case can be used. 4) difference between these statements? 5) Give some examples for other conditional operations missing in ABAP which is present in other languages? For. next. Repeat ... until. 6) How many comparison operators are there and what are they ? 6 operators are there. Equals, not equals, lesser than, greater than, lesser than and equal to, greater than and equal to.

S-ar putea să vă placă și