Table of Contents

Search

  1. Preface
  2. Part 1: Getting Started with PowerExchange for SAP NetWeaver
  3. Part 2: Data Integration Using PowerExchange for SAP Dynamic ABAP Table Extractor
  4. Part 3: Data Integration Using ABAP
  5. Part 4: IDoc Integration Using ALE
  6. Part 5: Data Integration Using BAPI/RFC Functions
  7. Part 6: Data Migration
  8. Part 7: Business Content Integration
  9. Part 8: SAP BW Data Extraction
  10. Part 9: Loading Data to SAP BI
  11. Appendix A: Data Type Reference
  12. Appendix B: Code Pages and Unicode Support
  13. Appendix C: Glossary

PowerExchange for SAP NetWeaver User Guide for PowerCenter

PowerExchange for SAP NetWeaver User Guide for PowerCenter

Creating Structure and Structure Field Variables

Creating Structure and Structure Field Variables

Structures are virtual tables defined in the SAP dictionary. You can create a structure variable and a structure field variable.
When you create a structure variable, the Designer generates a data statement in the ABAP program to declare the variable. For example, you create a structure variable named struc1 to represent an SAP structure called AENVS. The Designer generates the following statement in the ABAP program to declare struc1:
data: struc1 like AENVS occurs 5 with header line.
The structure AENVS has a field called EXIST. You can create a structure field variable called field1 to represent this field. The Designer generates the following statement in the ABAP program to declare field1:
data: FIELD1 like AENVS-EXIST.
After you create the structure field variable, you specify its initial value in an ABAP code block.

0 COMMENTS

We’d like to hear from you!