In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the use of the parameter iv_as_copy in the SAP CRM get_children method, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Lv_children = iv_account- > get_children (iv_as_copy = abap_true). What does the parameter mean?
Lo_children = iv_account- > get_relation (iv_relation_name =
Iv_as_copy = abap_false).
I don't quite understand the explanation.
> There is one special thing you need to know on the parameter IV_AS_COPY of GET_CHILDREN. It has
Only effect on the iterator GET_FIRST etc. Of the container list you will receive back. If set to true the
Iterator will iterate only on the children inside the container list when it was created. If the parameter is
Set to false the iterator will take into account children that are added to the container (or which are deleted
From it) after the container list was get. It is a misunderstanding that you get a copy of the content of the
Container if you use this parameter. Knowing this you now have the knowledge going through the
Relations of your model getting a separate nested container for every 1:n relation.
# Rule of thumb:
(1) iv_as_copy = true = > you get a snapshot (preffered)
(2) iv_as_copy = false = > list gets updated; use only if you want to keep the list; has negative impact on
Performance/memory consumption
In fact, for developer that has done debug, it will be more profound after reading the explanation of this parameter in the document. But it is true that the developer who has just come into contact with may still seem to understand after reading the explanation.
The key to this parameter is in the constructor of container object list:
If you use iv_as_copy = true to get a container object list, then the container object list An is only a snapshot of the children of the current parent container object. In the future, if a new children is added to the parent container object, the new child will not be reflected in the snapshot A you get, because on technical, your snapshot does not register the CHILD_ADDED event of parent container object, because it will not be notified.
To give an example:
I add a piece of code from Account navigate to AccountAddress to store the account address container object list obtained in two ways. At this time, the Account address is not really taken, so there is only one dummy entry,is_handle = X in both container object list.
I create a new Address, and then save
Because there are 50 address in the current Account DB, and I have added one to the current session, there are 51 item for iv_as_copy = false, while snapshot still has only one dummy.
On the SAP CRM get_children method inside the parameter iv_as_copy what is useful to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.