Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. start-of-selection
  2.  
  3. lv_max_lines = class1->get_max_lines( ).
  4.  
  5. do lv_max_lines.
  6. class2->method1( class1->get_line_by_index( sy-index ) ).
  7. enddo.
  8.  
  9.  
  10. class 2 implementation.
  11.  
  12. method method1.
  13. method2( is_line ).
  14. endmethod.
  15.  
  16. method method2.
  17. method3( is_line ).
  18. endmethod.
  19.  
  20. method method3.
  21. if ls_line <> what_I_need.
  22. class1->reject( ). "or
  23. class1->reject( is_line ).
  24. "go back straight to start of selection and execute next iteration,
  25. "ignoring the rest of method3 and metho2 and method1 from class2.
  26. endif.
  27. "more process
  28. endmethod.
  29.  
  30. endclass.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement