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

Multiple lines in POPUP

Former Member
0 Likes
4,186

Hi All,

I am using the function module POPUP_TO_DISPLAY_TEXT to get a pop-up while saving a sales order of certain type. The problem here is that this function module only displays upto two lines in the popup. But, if there are multiple line items for this sales order, i need to display details for all the line items in the pop-up. Please suggest any other function module that i can use to achieve this.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
1,934

Use this POPUP_DISPLAY_TEXT. You can display dialogue text in it. No limit of Text.

OR

POPUP_WITH_TABLE "Popup to display internal table data

-Aman

Read only

Former Member
0 Likes
1,934

HI ,

Try using this....

Data : l_return like bapireturn.

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'

EXPORTING

endpos_col = 80

endpos_row = 25

startpos_col = 1

startpos_row = 1

titletext = text-300

  • IMPORTING

  • CHOISE =

TABLES

valuetab = l_return

EXCEPTIONS

break_off = 1

OTHERS = 2

where l_return is a table containing multiple lines to be displayed.

Thnaks & Regards,

Ruchi Tiwari

Read only

Former Member
0 Likes
1,934

Hi Dinesh,

The better option to exit the data of a internal table on a Pop-Up is the next function:

DATA: BEGIN OF i_empl OCCURS 100,

pernr LIKE pa0001-pernr,

ename LIKE pa0001-ename,

END OF i_empl,

i_cols LIKE help_value OCCURS 2 WITH HEADER LINE.

i_cols-tabname = 'PA0001'.

i_cols-fieldname = 'PERNR'.

i_cols-selectflag = 'X'.

APPEND i_cols.

i_cols-tabname = 'PA0001'.

i_cols-fieldname = 'ENAME'.

APPEND i_cols.

CALL FUNCTION 'MD_POPUP_SHOW_INTERNAL_TABLE'

EXPORTING

title = 'Empleados sin informar actividad'

IMPORTING

index = sy-index

TABLES

values = i_empl

columns = i_cols

EXCEPTIONS

leave = 1

OTHERS = 2.

if sy-subrc ne 0.

exit.

endif.

This function Use Field Catalogue same that ALV, you can define IMPORTING parameter and return the integer pulse of the line of the table.

Best Regards.