Application Development 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: 

pop up window for a single field details..

Former Member
0 Kudos

How to display a pop up window for details of one field by click?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Do you wnt to pop-up window in ALV

*

 Display items in a POPUP
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            i_selection = ' '
            i_tabname   = 'GT_VBAP'
            it_fieldcat = lt_fieldcat
            is_private  = ls_private
       TABLES
            t_outtab    = gt_vbap.

http://www.sapassist.com/code/d.asp?d=3430&a=s

http://www.sap4.com/postp5270.html

7 REPLIES 7

Former Member
0 Kudos

Hi,

Do you wnt to pop-up window in ALV

*

 Display items in a POPUP
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            i_selection = ' '
            i_tabname   = 'GT_VBAP'
            it_fieldcat = lt_fieldcat
            is_private  = ls_private
       TABLES
            t_outtab    = gt_vbap.

http://www.sapassist.com/code/d.asp?d=3430&a=s

http://www.sap4.com/postp5270.html

0 Kudos

i want to display grid format for a single fields details by click open a new window..here is the code:

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

i_selection = ' '

i_tabname = 'GT_VBAP'

it_fieldcat = lt_fieldcat

is_private = ls_private

TABLES

t_outtab = i_mat.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_background_id = 'ALV_BACKGROUND'

i_callback_program = 'YH_OPER_MONITOR_RPT'

  • i_callback_top_of_page = 'F_TOP_OF_PAGE'

  • i_callback_pf_status_set = 'YH_STD_FULL'

  • i_callback_user_command = 'USER_COMMAND'

is_layout = ls_layout

i_save = 'A'

it_fieldcat = lt_fieldcat

it_sort = lt_sort

it_events = alv_event[]

  • IT_EVENT_EXIT = LS_EVENT_EXIT

i_default = 'X'

TABLES

t_outtab = i_mat.

suggest me if you have ???

0 Kudos

thanks but I need it in grid format..for it not in list format...

anversha_s
Active Contributor
0 Kudos

hi,

chk this.

report zsha.
 
type-pools: slis.
 
data: begin of iku occurs 0,
      check type c,
      kunnr type kna1-kunnr,
      name1 type kna1-name1,
      end of iku.
 
data: ifldc type slis_t_fieldcat_alv .
data: xfldc type slis_fieldcat_alv .
 
 
select kunnr name1 into corresponding fields of table iku
        from kna1 up to 10 rows.
 
clear xfldc.
xfldc-reptext_ddic    = 'Customer'.
xfldc-fieldname  = 'KUNNR'.
xfldc-tabname   = 'IKU'.
xfldc-outputlen  = '12'.
append xfldc to ifldc.
 
clear xfldc.
xfldc-reptext_ddic    = 'Customer Name'.
xfldc-fieldname  = 'NAME1'.
xfldc-tabname   = 'IKU'.
xfldc-outputlen  = '30'.
append xfldc to ifldc.
 
call function 'REUSE_ALV_POPUP_TO_SELECT'
     exporting
          I_TITLE  = 'This is the message here'
*          i_checkbox_fieldname = 'CHECK'
          i_tabname            = 'IKU'
          it_fieldcat          = ifldc
     tables
          t_outtab             = iku
     exceptions
          program_error        = 1
          others               = 2.
 
check sy-subrc  = 0.

*********************************

popup_with_table_display.
Usage:
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING ENDPOS_COL = 41
ENDPOS_ROW = 10
STARTPOS_COL = 1
STARTPOS_ROW = 1
TITLETEXT = TEXT-202
IMPORTING CHOISE = SEL_ROW
TABLES VALUETAB = ITAB
EXCEPTIONS OTHERS = 99.
IF SY-SUBRC EQ 0 AND SEL_ROW > 0.
READ TABLE ITAB INDEX SEL_ROW.
REF_NAME = ITAB-TABNAME.
ELSE.
REF_NAME = SPACE.
ENDIF.

Regards,

Anver

Former Member
0 Kudos

hi Halder,

* Display items in a POPUP
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            i_selection = ' '
            i_tabname   = 'GT_VBAP'
            it_fieldcat = lt_fieldcat
            is_private  = ls_private
       TABLES
            t_outtab    = gt_vbap.

Check

http://www.geocities.com/mpioud/Z_ALV_GRID_AND_POPUP.html

Former Member
0 Kudos