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 an ABAP Code Block

Creating an ABAP Code Block

You can add more functionality in the ABAP program by adding more ABAP code in the program flow. An ABAP code block is additional ABAP code you can add to the ABAP program. In the ABAP code block, use source fields and ABAP program variables defined for the Application Source Qualifier to customize the ABAP program.
The ABAP code block should follow ABAP syntax. Comments in the ABAP code block must start with an asterisk (*). The ABAP program flow represents the order that the ABAP program selects tables and objects. Use source fields or values that are placed above the code block.
You cannot use an ABAP code block if the ABAP program flow contains a hierarchy and no other sources.
To create an ABAP code block:
  1. In the ABAP Program Flow dialog box, click New ABAP Block.
  2. Enter the name for the new ABAP code block and click OK.
    The name of the ABAP code block cannot exceed 28 characters.
  3. Expand the source table name and the Variables folder to view the source fields and variable names.
  4. Double-click the source field or the variable name to enter it in the ABAP code block.
  5. Write the code block.
  6. Click OK to save the ABAP code block.

0 COMMENTS

We’d like to hear from you!