on 05-26-2011 10:39 AM
Hi Experts,
I have an internal table of specific structure. I have to add them to entities with same structure and again i have add the entities to collection of type if_bol_bo_col. Here the code is to be written within badi, which gets empty collection as input. I tried with the ways that i know. But, they result in exception. Anyone can point me to working code that shows how to create entities of specific structure and add them to collection ?
Thanks & Regards,
Gaurav.
Hi Gaurav,
You can create an entity by using the below code by using a specific structure.
CREATE DATA v_struct_ref.
CREATE OBJECT v_node
EXPORTING
iv_data_ref = v_struct_ref.
Add value node to collection
me->typed_context->BOLENTITYNAME->collection_wrapper->add( v_node ).
After that read that entity from your collection set the values of the entity from table. After that use SET_COLLECTION method for adding it to the collection.
Regards,
Lakshmi.Y
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.