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

Regarding Classical Reporting

Former Member
0 Likes
385

Hi all,

I am using classical report according the requirement.

The out put contains 22 fields and extend up to 170 char line-size.

and I got Horizontal scroll bar.

What my requirement is first 4 fields in the out put should not move , when horizontal scroll bar moves. Its just like Data base tables in SE11. there also field names will not move even if we scroll horizontally.

Can u tell me the code for that.

Not in ALV.

Regards,

sarath

1 REPLY 1
Read only

Former Member
0 Likes
322

Hi

See this related to Scroll BAR

You can scroll in a detail list using the SCROLL statement.

When you use the SCROLL statement with detail lists, you must remember the following:

You can only use the SCROLL statement for completed lists. If you use SCROLL before the first output statement of a list, it does not affect the list. If you use SCROLL after the first output statement of a list, it affects the entire list, that is, all subsequent output statements as well.

When you create a secondary list, a SCROLL statement without INDEX option always refers to the previously displayed list on which the interactive event occurred (index SY-LISTI).

Only when creating the basic list does the SCROLL statement refer to the list currently being created.

You can use the INDEX option to scroll explicitly on existing list levels. To do this, the lists need not be displayed. When the user displays the list again, it is scrolled to the specified position. If the specified list level does not exist, the system sets SY-SUBRC to 8.

If, during an interactive event, you want to scroll through the list you are currently creating, use SY-LSIND as the index in the SCROLL statement. Note that changing SY-LSIND only takes effect at the end of the event, regardless of where you change it in the processing block. If you want to set the list level explicitly, you can change SY-LSIND in the last statement of the processing block. This ensures that a SCROLL statement within the processing block accesses the correct list.

ex:

REPORT demo_list_scroll NO STANDARD PAGE HEADING LINE-SIZE 50.

SET PF-STATUS 'SELECT'.

WRITE 'Create a secondary list by choosing SELECT'.

AT USER-COMMAND.

NEW-PAGE LINE-SIZE 200.

CASE sy-ucomm.

WHEN 'SELE'.

SET PF-STATUS 'SCROLLING'.

DO 200 TIMES. WRITE sy-index. ENDDO.

SCROLL LIST RIGHT BY 48 PLACES INDEX sy-lsind.

sy-lsind = sy-lsind - 1.

WHEN 'LEFT'.

SCROLL LIST LEFT BY 12 PLACES.

WHEN 'RGHT'.

SCROLL LIST RIGHT BY 12 PLACES.

ENDCASE.

<b>Reward points for useful Answers</b>

Regards

Anji