‎2007 Feb 08 12:53 PM
friends,
is there any function module that would allow me to display internal table contents with custom-defined heading, top-of-page, if possible with some coloring option, etc...i know that we can use reuse_alv_popup_to_select, popup_to_display_text..but any other fm available? my main priority is it should allow to give heading texts...thanks
‎2007 Feb 08 5:40 PM
Hi Satish,
In the same function module, You add the First Row or 3 Rows for Header Purpose. 1st & 3rd line for uline and 2nd line for Header Text etc....
After the ANSWER, will return by the FM, so check for it to more than 3 or else, give error message and repeate the Function module execution until the correct row is selected or Cancel Button is pressesd.
Regards,
Manjunatha.
‎2007 Feb 08 7:31 PM
‎2007 Feb 08 7:34 PM
Hi Sathish,
I dont know whether I have misunderstood your requirement, but I dont see the requirement for a pop up particularly. If not, then why dont you use the simple REUSE_ALV_LIST/GRID_DISPLAY function module.
In the LIST option you can program the TOP OF PAGE event and out WRITE statement within, hence FORMAT COLOR option should also work.
Regarding custom heading, in the field catalog you have the field SELTEXT_S/M/L where you can specify whatever column heading you might want.
Hope this helps.
Regards,
Aditya
‎2007 Feb 09 3:41 AM
‎2007 Feb 09 3:51 AM
try
POPUP_WITH_TABLE_DISPLAY_OK
POPUP_WITH_TABLE_DISPLAY
POPUP_WITH_TABLE
it may work
regards
shiba dutta
‎2007 Feb 09 3:59 AM
Hi,
Fm "POPUP_WITH_TABLE_DISPLAY" will display the header text also.
‎2007 Feb 09 4:04 AM
Hi satish,
POPUP_WITH_TABLE_DISPLAY
This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
parameter.The VALUETAB is used to pass the internal table.
A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
DATA: w_choice TYPE SY-TABIX.
DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
values TYPE I,
END OF i_values.
PARAMETRS : id TYPE I.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
i_values-values = '0001'.
APPEND i_values.
i_values-values = '0002'.
APPEND i_values.
i_values-values = '0003'.
APPEND i_values.
i_values-values = '0004'.
APPEND i_values.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 40
ENDPOS_ROW = 12
STARTPOS_COL = 20
STARTPOS_ROW = 5
TITLETEXT = 'Select an ID'
IMPORTING
CHOISE = w_choice
TABLES
VALUETAB = i_values
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
CHECK w_choice > 0.
READ TABLE i_values INDEX w_choice.
...now we can process the selection as it is contained
...in the structure i_values.
regards,
keerthi
‎2007 Feb 09 4:58 AM
hi i have one pdf file listing all the possible function modules available in SAP. it will be of help to you..check it out.
indly gimme me ur email id so dat i can mail u that pdf.
Reward points if helpful.