Last row in SAP Container
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-06-19 02:20 PM
Hi,
I have a container in SAP FEBA transaction.
I have to loop through all the accounts, then bank statements and line then line itmes under it.
How do i know the last row or index( untill when i should continue the loop ) in the comtainer.
Note : its a container not a table
------------------------------
Reema Kasliwal
Lead software engineer
Tieto India Pvt Ltd
Asia/Kolkata
------------------------------
I have a container in SAP FEBA transaction.
I have to loop through all the accounts, then bank statements and line then line itmes under it.
How do i know the last row or index( untill when i should continue the loop ) in the comtainer.
Note : its a container not a table
------------------------------
Reema Kasliwal
Lead software engineer
Tieto India Pvt Ltd
Asia/Kolkata
------------------------------
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-06-19 05:16 PM
I've never worked with that application, but have you considered just letting it fail on the index after the last one? If it fails quickly, then it might be an option. Assuming it's zero-index based and there are 10 rows, when you attempt to read index 10 (row 11), application modeller wouldn't find an element there and would throw an error. This would work no matter how many rows there are. You catch the error in a block using a recover stage, use a decision stage to verify the ExceptionDetail() text indicates the error has to do with the element/index not existing, and then resume the error (clear it).
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-07-19 12:59 PM
Thanks you. This is a good suggestion.
------------------------------
Reema Kasliwal
Lead software engineer
Tieto India Pvt Ltd
Asia/Kolkata
------------------------------
------------------------------
Reema Kasliwal
Lead software engineer
Tieto India Pvt Ltd
Asia/Kolkata
------------------------------
