cancel
Showing results for 
Search instead for 
Did you mean: 

OdataModel create deep have error: No default virus profile active or found

former_member189009
Active Participant
0 Kudos

Dear Friends,

        I create Header and item entityset and make a navigation between them. I also imp the method:  /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY   But when I try to use this code to create Order , it have this error :

No default virus profile active or found. Please check the offical guide.

My controller code:

//Create Body

  var requestBody = {};

  requestBody.Customerpo = '123';

  requestBody.Soldto = 'WW';

  

  //Child Body

  var child = [];

  child.push({ Itempos: '123', Product: '234234', Description: 'XCF'});

  child.push({ Itempos: '153', Product: '23334', Description: 'YCF'});

  

  //Add child to request

  requestBody.SalesOrderToItem = child;

  var createOdata = new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/ZFCRM_ORDER_CREATE_SRV/");

  createOdata.create("SaleOrderHeaderSet",requestBody,null,

  function(oEvent){

     alert(msg);

  },function(oEvent){

  alert(msg);

  });

    But When I create the entity without the navigation, it will work, it will enter the CREATE_ENTITY method withour error, So how do we create the odata with association ?

  var oEntity1 = {Customerpo: "test"};

  var createOdata1 = new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/ZFCRM_ORDER_CREATE_SRV/");

  createOdata1.create("SoldtoSet",oEntity1,null,

  function(oEvent){

     alert(msg);

  },function(oEvent){

  alert(msg);

  });

Thanks for your sincerely answer!

Accepted Solutions (1)

Accepted Solutions (1)

JyotiD
Active Participant
0 Kudos

Hi Zongjie,

Error maybe due to Virus profile not maintained in SAP Gateway system.

There are multiple threads and documents available for same.

See some of them below if this helps.

Defining Virus Scan Profiles - Virus Scan Interface - SAP Library

Regards,

Tarun

former_member189009
Active Participant
0 Kudos

Hi Tarun,

     Thanks for the help, I will check the threads. But I was confused why there is no error when create the entityset without association, but there is this Virus profile error when create the entityset with association.

0 Kudos

I am facing the same issue while setting data to Associations.   Did your problem get resolved?

Answers (1)

Answers (1)

former_member189009
Active Participant
0 Kudos

Dear Friends,

      Is there any idea about this issue ?