Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Sample Code - Hashed Table ( Internal Table )

Tags: table
PARAMETERS: pernr type pa0002-pernr.

typesbegin of typ_pernr,
       pernr like pa0002-pernr,
       nachn like pa0002-nachn,
       vorna like pa0002-vorna,
       end   of typ_pernr.

data: ls_pernr  type typ_pernr,

      lt_pernr  type  hashed table of typ_pernr  with unique key pernr.

  select pernr nachn vorna into table lt_pernr from pa0002 where pernr eq pernr.

  loop at lt_pernr into ls_pernr.

    write: ls_pernr-pernr, ls_pernr-nachn, ls_pernr-vorna.

  endloop.


Output








 


This post first appeared on The World Of SAP, please read the originial post: here

Share the post

Sample Code - Hashed Table ( Internal Table )

×

Subscribe to The World Of Sap

Get updates delivered right to your inbox!

Thank you for your subscription

×