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

need a function module

Former Member
0 Likes
738

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

8 REPLIES 8
Read only

Former Member
0 Likes
708

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.

Read only

Former Member
0 Likes
708

try use FM: POPUP_WITH_TABLE_DISPLAY.

Read only

Former Member
0 Likes
708

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

Read only

Former Member
0 Likes
708

hi

tx for the answers...my requirement is for a popup only

Read only

Former Member
0 Likes
708

try

POPUP_WITH_TABLE_DISPLAY_OK

POPUP_WITH_TABLE_DISPLAY

POPUP_WITH_TABLE

it may work

regards

shiba dutta

Read only

Former Member
0 Likes
708

Hi,

Fm "POPUP_WITH_TABLE_DISPLAY" will display the header text also.

Read only

Former Member
0 Likes
708

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

Read only

Former Member
0 Likes
708

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.