Hi,
I have 2 questions
1) How do i declare global internal table for reading internal table in methods.
I have 2 actions like Display and SAVE ( this is ALV edit )
Display method (Action):
data: node_zupdate type ref to if_wd_context_node.
types: begin of ts_update ,
status type icon-id,
matnr type mara-matnr,
maktx type makt-maktx,
lgpbe type mard-lgpbe,
end of ts_update.
data: iupdate type table of ts_update.
select a~matnr
b~maktx
c~lgpbe
from ( mara as a inner join makt as b on amatnr = bmatnr )
inner join mard as c on amatnr = cmatnr
into corresponding fields of table iupdate
where a~matnr in <fs_matnr>
and b~spras = sy-langu
and c~werks = ls_input_fields-werks
and c~lgort = ls_input_fields-lgort.
node_zupdate = wd_context->get_child_node( name = 'ZUPDATE' ).
node_zupdate->bind_elements( iupdate ).
i got data in iupdate table, Now i need this internal table in other SAVE method (Action).
then i can check previous data from internal table and chennged data .
please let me advice me.
2nd Question:
How to handle Sy-Ucomm in methods .
I have 2 buttons in the lay out, so i need to handle sy-ucomm for this buttons in methods.
Thanks in advance.
Thanks
Deepthi