We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-dev] Mapped Clicked Value in the alv-interactive Report

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by stupid++
on Oct 19 at 6:45 AM
"IN ALV FUNCTION MODULE EXPORTING FIELD, DO:
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

"USE FORM NOW
FORM USER_COMMAND USING V_UCOMM LIKE SY-UCOMM
V_SELFIELD TYPE SLIS_SELFIELD.

IF V_UCOMM EQ '&IC1'.

do your coding.

ENDIF.
ENDFORM.

Hope it will help you.

Regards

---------------Original Message---------------
From: Pierre Richer
Sent: Tuesday, October 18, 2011 9:59 AM
Subject: Mapped Clicked Value in the alv-interactive Report

Hi,

Example using CL_SALV_TABLE.

First and second ALV are in a separate Custom control

In the first ALV, register event double click.
lr_events = r_salv_header->get_event( ).
set handler handle_double_click_header for lr_events.

Declaration of method handle_double_click_header
handle_double_click_header for event double_click of
cl_salv_events_table importing row column,

In method handle_double_click_header, row id is passed. Get correspnding
header (key) and then fill table t_detail. ALV-2 is binded to t_detail.
Use method refresh to display the details.

method handle_double_click_header.

field-symbols:
<lf_header> like line of t_header.

read table t_header assigning <lf_header> index row.

check sy-subrc = 0.

try.

r_model->set_header( im_purchase_order = <lf_header>-ebeln
im_inbound_delivery = <lf_header>-vbeln ).

r_model->get_detail( exporting im_refresh = abap_true importing
ex_detail = t_detail ).


set_row_color( ).

r_salv_detail->refresh( ).

catch zcx_static_check into lx_static_check.
message lx_static_check type 'S'.
endtry.


Check demo programs BCALV* or BALV*....

Pierre

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language