Skip to Content
avatar image
Former Member

SAP SDK ABSL

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 16, 2016 at 07:46 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 16, 2016 at 12:42 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 17, 2016 at 02:41 AM

    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.
    Add comment
    10|10000 characters needed characters exceeded