ABAP Mesh is also a new feature in 740. Let’s use an example to demonstrate how it works:
I have defined two types for developers and managers. developer type has a field manager which points to his manager, while manager type does not have any reference to his managing employee.
I also use the new grammar – inline data declaration to fill developer and manager table. So far nothing special.
Now I define one ABAP mesh t_team with two component managers and developers. With association ‘my_employee’, I connect the internal table managers to developers, so that I could easily find all developers of a given manager. The association ‘my_manager’ just enables the connection in opposite direction: find out the manager of a given developer.
You can compare how I find Jerry’s manager and find all developers whose manager are Thomas using new ABAP mesh and the traditional way.
The result are exactly the same.
要擷取更多Jerry的原創文章,請關注公衆号"汪子熙":