03-17-2009 3:44 AM
Hi all,
I have created on icon.My requirement is that if i select / press that icon, internal table must be popup as an output. how is it possible? please help me in this regard.
thanking you
03-17-2009 3:48 AM
try these fm's to popup internal table:
POPUP_SHOW_INTTAB
POPUP_TO_SHOW_DB_DATA_IN_TABLE
POPUP_WITH_WARNING
03-17-2009 3:50 AM
03-17-2009 3:50 AM
Hi,
Try with using FM REUSE_ALV_POPUP_TO_SELECT in AT USER-COMMAND event.
Regards,
jaya
03-17-2009 6:33 AM
Hi
Set the PF-STATUS as
SET PF-STATUS <your PF-STATUS name>
Then write the following code
CASE sy-ucomm.
WHEN 'ITAB'. " assuming it is the Fcode you've assigned on your button
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 68
ENDPOS_ROW = 66
STARTPOS_COL = 1
STARTPOS_ROW = 1
TITLETEXT = 'Testing'
"IMPORTING
"CHOISE =
TABLES
VALUETAB = <your itab name>
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2
.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope it solve your problem.
Regards.
Sarbajit
03-17-2009 10:30 AM
Hi Sunitha,
Are you still watching this thread? Still facing problem? Revert Back.
Regards.
Sarbajit
03-17-2009 10:34 AM
03-17-2009 10:42 AM
Hi,
Check the Sample code below:
Data : Begin Of tOptions Occurs 50,
VTEXT(10),
End Of tOptions.
Data : cChoice Like SY-TABIX.
Clear tOptions.
Refresh tOptions.
Do 50 Times.
tOptions-VTEXT = sy-Index.
Append tOptions.
EndDo.
Perform DisplayOptions.
Form DisplayOptions.
Clear : cChoice.
Call Function 'POPUP_WITH_TABLE_DISPLAY'
Exporting
EndPOS_Col = 130
EndPOS_Row = 15
StartPos_Col = 50
StartPos_Row = 11
TitleText = 'Select Processing Option...'
Importing
Choise = cChoice
Tables
ValueTab = tOptions
Exceptions
Break_Off = 1
Others = 2.
Read Table tOptions
Index cChoice.
Write cChoice.
EndForm. " DisplayOptions
Regards,
Shalini
03-17-2009 10:53 AM
Hi Sunitha,
Use the following code:
CASE sy-ucomm.
WHEN 'TABLE'. "
CALL FUNCTION 'C_POPUP_WITH_TABLE'
EXPORTING
endpos_col = '70'
endpos_row = '12'
startpos_col = '10'
startpos_row = '10'
titletext = text-001
TABLES
valuetab = it_value
EXCEPTIONS
break_off = 1
OTHERS = 2
ENDCASE
Regards,
Nitin.
03-18-2009 6:07 AM
03-18-2009 6:07 AM
Hi Sunitha,
Are you still watching this thread? Still facing problem? If you get helpful/desired solution from this thread then please mark it as ANSWERED. Otherwise revert back with details of problem.
Thanks and Regards.
Sarbajit.