The FOR EACH condition is used to iterate through implicitly indexed repeating group views. Since the view is implicitly indexed, there is no need to specify subscript controls. This is automatically generated by CA Gen software.
CA Gen presents a list of implicitly indexed group views when you select FOR EACH. You cannot use FOR EACH if there are no implicitly indexed repeating group views.
The TARGETING clause allows you to identify the repeating export or local group view to be populated. The following example shows usage of the TARGETING clause:
FOR EACH product details TARGETING group export FROM THE BEGINNING UNTIL FULL ASSOCIATE processing warehouse WITH received product WHICH is_held_in IT
Note: For a description of the TARGETING clause, see the description of READ EACH in Add READ EACH Action.
After you add the FOR EACH statement, add the actions to be repeated for each occurrence of the entity.
Note: For information on specifying selection criteria for a FOR EACH statement, refer to the selection conditions for a READ action.
|
Copyright © 2014 CA.
All rights reserved.
|
|