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

reports

Former Member
0 Likes
370

1. if i gave 3 on initialization and i gave 7 as selection value then which value process on output?

2 when will write the hide statement in report program?

3.how can get the every fifth record from internal table?

4. i have emp name and emp salary now i wantthe theird height salary how can i get?

5.what is the use of end of select statment?

6. without declaring start-of-selection i write the initialization ans at selection screen field then what happend?

6. what have done commit on selection screen declaration?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
345

How do I use the search function?

2 REPLIES 2
Read only

Former Member
0 Likes
346

How do I use the search function?

Read only

vinod_vemuru2
Active Contributor
0 Likes
345

Hi Chakri,

Find below ans.

1. if i gave 3 on initialization and i gave 7 as selection value then which value process on output?

ans is 7. Because what ever values given in initialization will be over written if u change the value after the selection screen is displayed.

2 when will write the hide statement in report program?

It is used in interactive reports to get the field value of the output list on which u clicked.

3.how can get the every fifth record from internal table?

LOOP AT itab

l_index = sy-index MOD 5.

IF l_index = 0.

it is 5th 10th 15th.... record.

endloop.

4. i have emp name and emp salary now i wantthe theird height salary how can i get?

SORT itab BY sal.

READ itab INDEX 3.

5.what is the use of end of select statment?

Is it endselect or END-OF-SELECTION?

Endselect-it is statement. If u r using select end select then u have to use it. i.e fetching and processing the data record by record.

END-OF-SELECTIOn-It is event. All ur data prosessing and writing data to output list will be done under this event.

6. without declaring start-of-selection i write the initialization ans at selection screen field then what happend?

None of the events is mandatory. But it is good practice to use the all possible events as it improves readability and maintainability of code.

7. what have done commit on selection screen declaration?

Can u be more clear on this question?

Thanks,

Vinod.