Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP FAQ

Former Member
0 Likes
410

`Hi all

Rather than going through the FAQ"s available in the Internet.I think questions that you experienced in the intervies will be really helpful for us.So am posting a few a question that i was asked in a interview.I request you to answer them and very importantly.Please post a few question that you reallly faced in the interviews.It will Contribute to all of us.

1.How to get the number of records that a particular report has generated.

Ans:By using the "describe tablle it_final lines ld_lines."

where ld_lines is a variable of integer type.

2.There is a report which has 85 records and it is displaying 10 records per page and it has a heading say "XYZ'" which we are getting by using TOP-OF-PAGE.Now tell me for this 85 record how many time the TOP-OF-PAGE event gets triggered.

Ans:I think its 9.Please confirm me.

3.We all know how to create a logo in a Script.Now the requirement is we need to print the LOGO of the customer.And each time the customer keeps changing.How to do it in a Script.

Ans:I dont know.I acknowledege if anyone could answer this question.

4.I need to print the value of a particular field in the TOP-OF-PAGE in a ALV report.How to do it.

Ans:In the Function "REUSE_ALV_GRID_DISPLAY" there is i_callback_top_of_page so here gve as

i_callback_top_of_page = 'TOP-OF-PAGE'.

5.How to print LOGO in a ALV report.

Ans.Use the function "REUSE_ALV_COMMENTARY_WRITE"

This where the few questions i was asked in ainterview.Rest the interviewer has asked me on the objects i"ve done.I request each one of you to contribute.So that it will be very useful to people appering for interviews.Because,i"ve seen most of the time we miss out on the basics though we used it.

Thank You.

With Regards,

Vijay Krishna G

`Hi all

Rather than going through the FAQ"s available in the Internet.I think questions that you experienced in the intervies will be really helpful for us.So am posting a few a question that i was asked in a interview.I request you to answer them and very importantly.Please post a few question that you reallly faced in the interviews.It will Contribute to all of us.

1.How to get the number of records that a particular report has generated.

Ans:By using the "describe tablle it_final lines ld_lines."

where ld_lines is a variable of integer type.

2.There is a report which has 85 records and it is displaying 10 records per page and it has a heading say "XYZ'" which we are getting by using TOP-OF-PAGE.Now tell me for this 85 record how many time the TOP-OF-PAGE event gets triggered.

Ans:I think its 9.Please confirm me.

3.We all know how to create a logo in a Script.Now the requirement is we need to print the LOGO of the customer.And each time the customer keeps changing.How to do it in a Script.

Ans:I dont know.I acknowledege if anyone could answer this question.

4.I need to print the value of a particular field in the TOP-OF-PAGE in a ALV report.How to do it.

Ans:In the Function "REUSE_ALV_GRID_DISPLAY" there is i_callback_top_of_page so here gve as

i_callback_top_of_page = 'TOP-OF-PAGE'.

5.How to print LOGO in a ALV report.

Ans.Use the function "REUSE_ALV_COMMENTARY_WRITE"

This where the few questions i was asked in ainterview.Rest the interviewer has asked me on the objects i"ve done.I request each one of you to contribute.So that it will be very useful to people appering for interviews.Because,i"ve seen most of the time we miss out on the basics though we used it.

Thank You.

With Regards,

Vijay Krishna G

2 REPLIES 2
Read only

Former Member
0 Likes
390

Hi vijay,

I have answers for a few of the questions:

1. Yes if u have the records that are to be displayed in an internal table, u can use DESCRIBE statement. U can use the variable which is of type syindex.

2. The event TOP-OF-PAGE will be triggered whenever u start the list processing.For example, when u use the commands such as WRITE, SKIP, NEW-LINE etc for the first time....So that event will be triggered only once....

3. If ur requirement is really to change the LOGO for each customer, u can create a window for LOGO and in that u can write an IF statement as below:

IF KNA1-KUNNR = 'XXXX'.

INclude the corresponding logo.

ELSEIF KNA1-KUNNR = 'YYYY'.

INclude the corresponding logo.

ELSE.

Include the Default logo.

But if the client is too specific, they ask for changing the logo based on the Country key.

In such a case, u can use KNA1-LAND1 instead of KUNNR.

5. For printing the LOGO in the Header for ALV, we can make use of the FM REUSE_ALV_COMMENTARY_WRITE, as u said. For this FM, one of the importing parameters is "i_logo". Through this parameter, u can pass the logo, u want......

I hope these answers will help u.

Don't forget to reward points, if helpful.

Pavan.

Read only

0 Likes
390

Hi pavan

Thanks a lot.One thing i couldnt understand is there are 85 record and in each page there are only 10 records displayed.So do you think the event triggers only once.Please confirm.Also if u have faced some interview question that you have come across..Please let me know.Thank You.

Vijay G