Posted By

qrist0ph on 09/17/10


Tagged

abap


Versions (?)

Dynamic ABAP


 / Published in: Other
 

  1. FIELD-SYMBOLS <gt_dochd> TYPE ANY TABLE .
  2. DATA: dr_tabref TYPE REF TO data.
  3.  
  4. CREATE DATA dr_tabref TYPE TABLE OF ('/B50672/AODOHD00').
  5. ASSIGN dr_tabref->* TO <gt_dochd>.
  6.  
  7. SELECT * FROM ('/B50672/AODOHD00') INTO CORRESPONDING FIELDS OF TABLE <gt_dochd>
  8.  
  9. FIELD-SYMBOLS: <wa> TYPE ANY,
  10. <data> TYPE ANY.
  11.  
  12. READ TABLE <gt_dochd> ASSIGNING <wa> WITH KEY
  13. ('is_docid') = <result_fields>-is_docid
  14. ('is_pstyear') = <result_fields>-is_pstyear.
  15.  
  16.  
  17. ASSIGN COMPONENT '/B50672/S_IPSDA' OF STRUCTURE <wa> TO <data>.

Report this snippet  

You need to login to post a comment.