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

output display

Former Member
0 Likes
1,064

Hi Friends,

I have one query regarding my output.

Suppose i have multiple entries in my internal table itab.

Now i wanted to display internal table via screen 0101 as a scrollable output.

will u tell me how to do this??

If coding is there it will be appriciated.

Thanks in advance.

Hi Friends,

I have one query regarding my output.

Suppose i have multiple entries in my internal table itab.

Now i wanted to display internal table via screen 0101 as a scrollable output.

will u tell me how to do this??

If coding is there it will be appriciated.

Thanks in advance.

8 REPLIES 8
Read only

andreas_mann3
Active Contributor
0 Likes
960

Hi,

use command : WINDOW STARTING AT x1 y1.

for your screen

and alv-grid for your list

A.

Read only

Former Member
0 Likes
960

You can do that in 2 ways - by insertin table layout at your screen (there is a wizard for that in screen painter).

Second wey is to use container on the screen and OO ALV grid.

BR< Jacek

Read only

Former Member
0 Likes
960

hi,

If you want your data in scrollable output, use table control or alv grid control.

<b>Table control.</b> You can create a table control in screen painter se51 and write the code. or else you can use the table control wizard which write the code to handle the scrolling, page down,page up itself.you need not write the code for handling table control events.

<b>AlV Grid.</b>Check the example BCALV_GRID_DEMO for grid display. it is a simple example that displays the data in your internal table in a alv grid which you can scroll.

Regards,

Richa.

Read only

0 Likes
960

Hi Richa,

Will u give me sample coding for this.

It's urgent.

Read only

0 Likes
960

hi,

the program BCALV_GRID_DEMO gives a very simle and easy to understand coding. You can check it for displaying data in alv grid.

Regards,

Richa

Read only

0 Likes
960

hi,

For table control.

suppose you have an internal table itab.

goto se51->create a screen 100-> goto layout->create a sub screen area.

create a sub screen 101->goto layout->click table control wizard and drag and drop it with size you want on the screen.

nwo the wizard will ask you the table name and other details.fill in the details and activate. You can see the code automatically get created by the wizard.

Regards,

Richa

Read only

Former Member
0 Likes
960

Hi Salil,

Though your requirements was not very clear to me,

what I could gather is that you want the internal table

entries to be displayed and scrolled from a Screen.

if that is right, then what you could do is to use table controls(earlier it was step-loops) that would very efficiently display your data.

Check the code sample here...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2165e990-0201-0010-5cbb-b5c...

Regards

Read only

Former Member
0 Likes
960

Hi

Check out the code using table control.

Go to se51 editor and drag the table control and give name for that as tabctrl (Which u r referring in the program).

Tables VBAK.

Data Itab like VBAK occurs 0 with header line.

Controls tabctrl type tableview using screen 1000.

Data fill type i.

&----


& Module Assign_data OUTPUT

&----


text

*----


MODULE Assign_data OUTPUT.

move itab to vbak.

ENDMODULE. " Assign_data OUTPUT

&----


& Module USER_COMMAND_1000 INPUT

&----


text

*----


MODULE USER_COMMAND_1000 INPUT.

case sy-ucomm.

when 'EXIT'.

set screen 0.

endcase.

ENDMODULE. " USER_COMMAND_1000 INPUT

&----


& Module STATUS_1000 OUTPUT

&----


text

*----


MODULE STATUS_1000 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

Select * from vbak into table itab.

describe table itab lines fill.

tabctrl-lines = fill.

ENDMODULE. " STATUS_1000 OUTPUT

Logic to be written in screen logic

___________________________________

PROCESS BEFORE OUTPUT.

MODULE STATUS_1000.

loop at itab with control tabctrl cursor tabctrl-top_line.

Module Assign_data.

endloop.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_1000.

loop at itab.

endloop.

Hope this code will help u

Regards

Haritha