‎2008 Oct 30 8:59 PM
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.
‎2008 Oct 30 9:02 PM
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
‎2008 Oct 31 9:07 AM
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
‎2008 Oct 31 9:38 AM
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.