cancel
Showing results for 
Search instead for 
Did you mean: 

Populating a complex table from another object collection in Syclo Agentry applications

Former Member
0 Kudos

Hello Experts,

I have an object which contains a table data as part of a collection property.

Can I use this object to insert the data in another complex table? I am unable to use a separate bapi wrapper to populate the complex table in this case.

As I have seen the existing complex tables in the Work Manager applications, they all get populated at the beginning of the main transmit.

at this instant, I don't have the data in one of my objects based on which I have to populate my complex table.

So, after the object is filled using a BAPI call, I have to fill up this complex table.

Is it possible to populate this table this way?

Any help will be appreciated.

Thanks,

Arihant Kothari

Accepted Solutions (1)

Accepted Solutions (1)

jason_latko
Advisor
Advisor
0 Kudos

Arihant,

Yes.  You can create an Update Complex Table transaction.  It works against the Main Object, but then you choose which complex table you want to update on the transaction.  Add the properties you want to update and populate them.  To populate from your object collection, use "From other object property" for your initial value on a property, then point to the object and property you want to populate from: Whatever Object -> Whatever property.  Use a looping sub-action to loop over your object collection and create/update complex table records with your new transaction.  Finish the original sub-action with an Apply.  Don't apply after each CT record create because that is much slower.  Use a single Apply step after your Loop in the main action.  If the CT record already exists, it will be updated.  If it does not exist, it will be created.

Jason Latko - Senior Product Developer at SAP

Answers (0)