‎2007 Nov 15 10:46 AM
Hi experts,
Iam using function module popup_with_table to display the data in internal table in a different popup screen.
But the popup screen doesn't have any scrollbars.So it doesn't display all the data contained in internal table.
It only displays 45 rows.
Hope u understood the problem.
useful answers will be rewarded.
thanks in advance.
‎2007 Nov 15 11:12 AM
instead of sy-tfill better use sy-srows as follows
CALL FUNCTION 'POPUP_WITH_TABLE'
EXPORTING
endpos_col = 50
endpos_row = sy-srows
startpos_col = 10
startpos_row = 10
titletext = 'record'
IMPORTING
CHOICE =
tables
valuetab = itab
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
plz reward points if dis helps
‎2007 Nov 15 10:54 AM
HI,
try to use POPUP_WITH_TABLE_DISPLAY_OK and set the col and row pos...
I hope it helps u
rgs
‎2007 Nov 15 11:01 AM
Use parameters
ENDPOS_COL
ENDPOS_ROW
STARTPOS_COL
STARTPOS_ROW
to define the start and ending positions of Rows and Columns...
If that does not help... copy the code in the FM and do the necessary changes to get the scroll bar. Its an easy code to modify.
Lokesh
‎2007 Nov 15 11:04 AM
CALL FUNCTION 'POPUP_WITH_TABLE'
EXPORTING
endpos_col = 10
endpos_row = sy-tfill
startpos_col = 1
startpos_row = 1
titletext = 'record'
IMPORTING
CHOICE =
tables
valuetab = itab
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
give sy-tfill for end position of row.
‎2007 Nov 15 11:11 AM
Hi Kamini,
Are you using UP TO <n> ROWS in select statement...??
Reason I'm asking.... in my program I've tried with UP TO 50 ROWS then I din't get Scroll bar..
If I use UP TO 100 ROWS ..I'm getting Scroll bar...
may be this will useful for you...
‎2007 Nov 15 11:12 AM
instead of sy-tfill better use sy-srows as follows
CALL FUNCTION 'POPUP_WITH_TABLE'
EXPORTING
endpos_col = 50
endpos_row = sy-srows
startpos_col = 10
startpos_row = 10
titletext = 'record'
IMPORTING
CHOICE =
tables
valuetab = itab
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
plz reward points if dis helps
‎2007 Nov 15 12:22 PM