Skip to Content
0

SAP SDK ABSL

Nov 16, 2016 at 04:32 AM

82

avatar image

Hello Experts,

We are having problems trying to insert records in a custom BO, we receiving 50.000 records and we need add them to a custom BO, but that process spent almost 8 hours. I don't know what is the best practice to do it.

This is our code to do that:

var WA_Asig_Nuevo = ZMKT_UP_PARAM.Create();

foreach(var call in resultData1){

var wa_posic = WA_Asig_Nuevo.Distribucion.Create();
wa_posic.id_Key = Id.id_Key;
wa_posic.UUID = Llamada.UUID;
wa_posic.Propietario = WA_Curr_Cust.GetFirst().Propietario;
wa_posic.Fecha = Fecha_C;
wa_posic.Indicador = false;
}

I would like if someone can help us, Is there other way to improve this code? or to add records fast?

Regards

Ronald

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Pradeep Kumar N
Nov 16, 2016 at 07:46 AM
0
Share
10 |10000 characters needed characters left characters exceeded
Ronald Mundo Nov 16, 2016 at 12:42 PM
0

thanks a lot for your answer, that process is already a MDRO process but it still taking plenty time running, I don't know if ther is a way to insert many records in one step. like in abap you can do it as: INSERT RECORDS INTO TABLE.

Share
10 |10000 characters needed characters left characters exceeded
Pradeep Kumar N
Nov 17, 2016 at 02:41 AM
0

Hi Ronald,

You could use mass enabled webservice and
enable mass for the events:

https://blogs.sap.com/2016/05/12/performance-best-practice-with-mass-enabled-event/

Thanks, Pradeep.
Share
10 |10000 characters needed characters left characters exceeded