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 ABAP Program Variables

Creating ABAP Program Variables

When you write ABAP code blocks or static filter conditions, use variables to represent SAP structures, fields in SAP structures, or values in the ABAP program. You can create the following types of variables in the ABAP Program Flow dialog box:
  • Structure and structure field variables.
    Represents structures and fields in structures defined in the SAP system.
  • ABAP type variable.
    Represents values in the ABAP program.
After you create the variable, use the variable as many times as you need in the ABAP program flow. The Designer generates a data statement to declare the variable when you generate the ABAP program. The SAP system validates the syntax used with variables in the ABAP code blocks or filter conditions when you install the ABAP program.
When you assign an ABAP program variable to another variable in an ABAP code block, be sure that the variables have the same precision and datatype.
You cannot use an ABAP program variable if the ABAP program flow contains a hierarchy and no other sources.

0 COMMENTS

We’d like to hear from you!