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

POPUP

Former Member
0 Likes
1,068

Hi, i need a popup that show text and an internal table.

Thanks!

SebastiĆ”

11 REPLIES 11
Read only

Former Member
0 Likes
1,040

Hi,

Use the FM POPUP_WITH_TABLE_DISPLAY

Thanks,

Naren

Read only

Former Member
0 Likes
1,040

You can show your internal table as an ALV grid. The same is explained in this weblog,

/people/ravikumar.allampallam/blog/2006/04/27/want-to-pop-up-a-alv-grid-without-having-to-deal-with-containers

There are many popup function modules. Just search with POPUP* in SE37.

Regards

Kathirvel

Read only

Former Member
0 Likes
1,040

Also must have OK and CANCEL buttons.

Read only

0 Likes
1,040

Try

POPUP_TO_CONFIRM. But you cannot display internal table in that.

Regards

Kathirvel

Read only

Former Member
0 Likes
1,040

Hi,

Check this sample program REUSE_ALV_POPUP_TO_SELECT

TYPE-POOLS: slis.

DATA: BEGIN OF itab OCCURS 0,

text(50),

END OF itab.

DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.

DATA: s_fieldcatalog LIKE LINE OF t_fieldcatalog.

DATA: t_excluding TYPE slis_t_extab.

DATA: s_excluding LIKE LINE OF t_excluding.

CLEAR: s_fieldcatalog.

s_fieldcatalog-fieldname = 'TEXT'.

s_fieldcatalog-tabname = 'ITAB'.

s_fieldcatalog-seltext_s = 'Message'.

s_fieldcatalog-outputlen = '50'.

APPEND s_fieldcatalog TO t_fieldcatalog.

itab-text = 'This is a Error message'.

APPEND itab.

itab-text = 'This is a Warning message'.

APPEND itab.

itab-text = 'This is a Success message'.

APPEND itab.

DATA: v_repid TYPE syrepid.

v_repid = sy-repid.

  • Excluding the function code..

s_excluding = '&ETA'.

APPEND s_excluding TO t_excluding.

s_excluding = '&OUP'.

APPEND s_excluding TO t_excluding.

s_excluding = '&ODN'.

APPEND s_excluding TO t_excluding.

s_excluding = '&ILT'.

append s_excluding to t_excluding.

s_excluding = '&OL0'.

append s_excluding to t_excluding.

s_excluding = '%SC'.

append s_excluding to t_excluding.

s_excluding = '%SC+'.

append s_excluding to t_excluding.

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

i_title = 'Test'

i_screen_start_column = 10

i_screen_start_line = 10

i_screen_end_column = 70

i_screen_end_line = 20

i_tabname = 'ITAB'

it_fieldcat = t_fieldcatalog

it_excluding = t_excluding

i_callback_program = v_repid

TABLES

t_outtab = itab.

Thanks,

Naren

Read only

Former Member
0 Likes
1,040

I can“t solve my problem yet.

Please Help me !

I need a popup that shows text , an internal table, and OK, and BACK buttons

Thanks

Read only

0 Likes
1,040

REUSE_ALV_POPUP_TO_SELECT is the correct way to go. Have a look at Rich's answer here:

https://forums.sdn.sap.com/click.jspa?searchID=260472&messageID=759810

Rob

Message was edited by:

Rob Burbank

Read only

Former Member
0 Likes
1,040

Hi,

Please check my last reply..

THanks,

Naren

Read only

Former Member
0 Likes
1,040

REUSE_ALV_POPUP_TO_SELECT is not helpful for me.

Read only

0 Likes
1,040

It seems OK. Can you tell us why it isn't?

Rob

Read only

0 Likes
1,040

I have solved the problem, thanks!.