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

problem with funcn module-popup_with_table

Former Member
0 Likes
3,321

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.

1 ACCEPTED SOLUTION
Read only

former_member188827
Active Contributor
0 Likes
1,657

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,657

HI,

try to use POPUP_WITH_TABLE_DISPLAY_OK and set the col and row pos...

I hope it helps u

rgs

Read only

Former Member
0 Likes
1,657

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

Read only

former_member188827
Active Contributor
0 Likes
1,657

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.

Read only

Former Member
0 Likes
1,657

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...

Read only

former_member188827
Active Contributor
0 Likes
1,658

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

Read only

0 Likes
1,657

Hey thanks a lot.

I have awarded points.