IBM ABAP written test at Bangalore

QUESTIONS FOR IBM WRITTEN TEST - BANGALORE

1. INTERNAL TABLE ITAB HAS 100 RECORDS . WRITE LOGIC TO FIND AND
CALCULATE THE SUM OF AN NUMERIC FIELD IN ITAB FOR RECORDS RANGING FROM
POSITIONS 51 TO 57.


2.WRITE A PROGRAM FOR PRIME NUMBERS FROM 0 TO 100.

3. PROGRAM ON PALINDROME LENTH 35.

4. SELECTION - SCREEN VALIDATIONS FOR S_MATNR.

5. USING THE TABLES ZCUSTOMER AND ZSALES WITH LOWEST SALES BUSINESS IN
FISCAL YEAR DATE RANGE 01-01-2006 TO 31-12-2006


TABLE ZCUSTOMER

TQABLE ZSALES

Comments (17)

sankar
Said this on 1-11-2008 At 10:13 am
i want answers IBM ABAP written test at Bangalore
Anek
Said this on 2-13-2008 At 08:09 am
good....
vijaya
Said this on 3-4-2008 At 11:10 am
excllent
sudipta bhowal
Said this on 4-5-2008 At 11:40 am
its so so.
Kuntal
Said this on 5-23-2008 At 05:55 pm
i want answers IBM ABAP written test at Bangalore
dinesh
Said this on 6-17-2008 At 05:17 pm
QUESTIONS FOR IBM WRITTEN TEST - BANGALORE

1. INTERNAL TABLE ITAB HAS 100 RECORDS . WRITE LOGIC TO FIND AND
CALCULATE THE SUM OF AN NUMERIC FIELD IN ITAB FOR RECORDS RANGING FROM
POSITIONS 51 TO 57.


2.WRITE A PROGRAM FOR PRIME NUMBERS FROM 0 TO 100.

3. PROGRAM ON PALINDROME LENTH 35.

4. SELECTION - SCREEN VALIDATIONS FOR S_MATNR.

5. USING THE TABLES ZCUSTOMER AND ZSALES WITH LOWEST SALES BUSINESS IN
FISCAL YEAR DATE RANGE 01-01-2006 TO 31-12-2006.

i want answers IBM ABAP written test at Bangalore
mohd yakub
Said this on 6-18-2008 At 01:03 pm
excellent
krish
Said this on 6-18-2008 At 08:05 pm
please provide me the answers for the above asked questions
sridhar
Said this on 6-26-2008 At 01:57 pm
nice one
sridhar
Said this on 7-17-2008 At 07:44 pm
it is very useful for the students who is searching for the jobs
Syed Younus Ahmed
Said this on 10-13-2008 At 01:03 pm
I need the full answers for this questions
Nitya
Said this on 12-23-2008 At 01:30 pm
I want answers
Mohul
Said this on 1-28-2009 At 10:33 am
prime number pgrm (using selection screen to find the number upto wich the prime numbers are required.. in this case, we need to put 100 in the selection screen)

REPORT zprime .
DATA : t_no TYPE i,
res TYPE p,
pr_no TYPE p,
tag TYPE i.
SELECTION-SCREEN BEGIN OF BLOCK b1.
PARAMETERS : pr_num TYPE i.
SELECTION-SCREEN END OF BLOCK b1.
pr_no = 1.
WHILE pr_no LE pr_num.
t_no = 2.
tag = 0.
WHILE t_no < pr_no.
res = pr_no MOD t_no.
IF res = 0.
WRITE : / pr_no.
WRITE : 'is not PRIME Number ' COLOR 3 INTENSIFIED OFF.
tag = 1.
EXIT.
ENDIF.
t_no = t_no + 1.
ENDWHILE.
IF tag = 0.
WRITE : / pr_no.
WRITE : 'is PRIME Number ' COLOR 6 INTENSIFIED OFF.
ENDIF.
pr_no = pr_no + 1.
ENDWHILE.
Mohul
Said this on 1-28-2009 At 10:52 am
"pgrm to find the palindrome for any string of any length::

Report palindrme.

DATA: BEGIN OF i_tab OCCURS 0,

char TYPE c,

END OF i_tab.

DATA: w_word_len TYPE i,

w_indx TYPE i,

w_word_tmp(20) TYPE c,

w_word_rev(20) TYPE c,

w_yes(20) TYPE c VALUE 'It is a palindrome.',

w_no(20) TYPE c VALUE 'Not a palindrome.'.

PARAMETERS: p_word(20) TYPE c.

**** gets length of word

w_word_len = strlen( p_word ).

w_word_tmp = p_word.

**** goes through the each letter index

DO w_word_len TIMES.

w_indx = w_word_len - sy-index.

* index is equal to the world lenth minus sy-index (starts at 1)

SHIFT p_word BY w_indx PLACES LEFT.

* shifts the word by the index number to the left

i_tab-char = p_word.

APPEND i_tab.

CLEAR i_tab.

p_word = w_word_tmp.

ENDDO.

* loops the char's of the word to reverse it

LOOP AT i_tab.

CONCATENATE w_word_rev i_tab-char INTO w_word_rev.

ENDLOOP.

**** DECIDES WHETHER IT IS A PALIDROME OR NOT ****

* w_yes writes It is a palindrome.

* w_no write Not a palindrome.

IF p_word EQ w_word_rev.

WRITE: w_yes.

ELSE.

WRITE: w_no.

ENDIF.
Mohul
Said this on 1-28-2009 At 11:58 am
code for the frst question:
types: begin of ty_tab,
matnr type matnr,
ersda type ersda,
end of ty_tab.

data: it_tab type standard table of ty_tab,
wa_tab type ty_tab,
sum type i.

select matnr from mara into table it_tab where matnr > 0.

sum = 0.

loop at it_tab into wa_tab from 5 to 10.
sum = sum + wa_tab-matnr.
endloop.

write: sum.
Manikandan
Said this on 5-23-2010 At 10:47 am

hi,

post the code for 5th question

Abani Kanta sahoo
Said this on 8-27-2010 At 07:27 am

Good questions

Post a Comment
* Your Name:
* Your Email:
(not publicly displayed)
Reply Notification:
Approval Notification:
Website:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image:
* Message:

Email to Friend

Fill in the form below to send this article to a friend:

Email to Friend
* Your Name:
* Your Email:
* Friend's Name:
* Friend's Email:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image
* Message: