Ansicht
Dokumentation

ABENTABLE_CMPRHNSNS_STEP_ABEXA - TABLE CMPRHNSNS STEP ABEXA

ABENTABLE_CMPRHNSNS_STEP_ABEXA - TABLE CMPRHNSNS STEP ABEXA

Vendor Master (General Section)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- Table Comprehensions, Use of Step Size

This example demonstrates how the step size and the processing order are used in table comprehensions.

Source Code

Execute

Description

The content of an internal table itab is controlled by using the additions STEP and USING KEY.

  1. Every second table line is read in descending order based on the STEP statement, starting at the fourth last table line because of the FROM addition.
  2. Every second table line is read in ascending order based on the USING KEY and STEP statement, starting at the fourth first table line because of the FROM addition.
  3. Every second table line is read in descending order based on the USING KEY and STEP statement, starting at the fifth last table line because of the FROM addition.
  4. Every second table line is read in ascending order based on the STEP statement, starting at the fifth first table line because of the FROM addition.

See also the executable example for the LOOP statement using the addition STEP.






Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.

Length: 1491 Date: 20240424 Time: 120157     sap01-206 ( 25 ms )