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

Modify HASHED TABLE

biswajit_das6
Participant
0 Likes
5,049

Hi ,

I want to know How to Modify HASHED TABLE?

Thanks & Regards,

Biswajit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,102

Hi,

please check the below link. you can get a clear understanding for the same.

http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb35eb358411d1829f0000e829fbfe/content.htm

hope it helps.

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
2,102

Hello

Have a look at sample report ZUS_SDN_HASHED_ITAB.


*&---------------------------------------------------------------------*
*& Report  ZUS_SDN_HASHED_ITAB
*&
*&---------------------------------------------------------------------*
*& Thread: Modify HASHED TABLE
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1190468"></a>
*&---------------------------------------------------------------------*

REPORT  zus_sdn_hashed_itab.


DATA: gt_outtab TYPE HASHED TABLE OF vbak
                     WITH UNIQUE KEY vbeln,
      gs_record TYPE vbak.


START-OF-SELECTION.

  SELECT * FROM vbak INTO TABLE gt_outtab.

  BREAK-POINT.

  " Modify non-key attributes => possible
  gs_record-ernam = syst-uname.
  MODIFY gt_outtab FROM gs_record
    TRANSPORTING ernam
    WHERE ( table_line IS NOT INITIAL ).

  BREAK-POINT.

  " Modify 1st entry => not possible to change key
  LOOP AT gt_outtab INTO gs_record.
    gs_record-vbeln = '1234567890'.
    MODIFY TABLE gt_outtab FROM gs_record.
    EXIT.
  ENDLOOP.

  BREAK-POINT.


END-OF-SELECTION.

Regards

Uwe

Read only

Former Member
0 Likes
2,103

Hi,

please check the below link. you can get a clear understanding for the same.

http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb35eb358411d1829f0000e829fbfe/content.htm

hope it helps.

Read only

Former Member