cancel
Showing results for 
Search instead for 
Did you mean: 

Last row in SAP Container

ReemaKasliwal1
Level 3
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
------------------------------
2 REPLIES 2

david.l.morris
Level 15
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

Thanks you. This is a good suggestion.

------------------------------
Reema Kasliwal
Lead software engineer
Tieto India Pvt Ltd
Asia/Kolkata
------------------------------