Ansicht
Dokumentation

ABENTABLE_COMPREHENSIONS_COND - TABLE COMPREHENSIONS COND

ABENTABLE_COMPREHENSIONS_COND - TABLE COMPREHENSIONS COND

General Data in Customer Master   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

FOR - cond

Syntax

... [USING KEY keyname]
    [FROM idx1] [TO idx2]
    [WHERE ( log_exp )|(cond_syntax)] ...


Effect

As in LOOP AT itab, one of the following can be specified for each FOR loop of a table comprehension

  • USING KEY can be used to specify the table key with which the loop is executed.
  • FROM and TO can be used as upper and lower limits to restrict the rows in the table index used.
  • WHERE can be used to specify static or dynamic conditions for column content.

The syntax and semantics are exactly the same as in LOOP AT itab, apart from the fact that a statically specified logical expression log_exp in the WHERE condition must always be placed in parentheses.

Note

The local auxiliary variables of the expression visible in this position can be used for idx1, idx2, and in the logical expression of the WHERE condition.






Addresses (Business Address Services)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1664 Date: 20240424 Time: 054709     sap01-206 ( 26 ms )