cancel
Showing results for 
Search instead for 
Did you mean: 

Create problem in sapui5 with odata

Former Member
0 Kudos

Hi Experts,

I have a problem in sapui5 in create method

I used create deep entity in sap odata services and ui5 controller

omodel.create("Modelentity", modelDetails, null,

  function(data) {

ODataoutput(data);

  });

1. while I am using create offer using above code, it is not creating and it showing successfully created message in frotend output. but in ecc system its not creating, so I tested in debug mode in ecc bapi(I put breakpoint in bapi place) is taking 10-15 seconds to execute because I am passing 200items  but  in between frontend it showing successfully offer created  massage showing, after completed bapi run, it showing the offer number in debug and its is created ecc system also.

2.and the created contract is not in sequence it taking alternative number.

I dont know why system is behaving like this I tested same in development and quality system its working fine but in production it is not working fine.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You may have to Check that you have Written the BAPI Commit & rollback statements properly.

ugurkaya
Active Participant
0 Kudos

Hey Kumar,

Are there any further checks before your offer / contract is saved? You might want to check BADI implementations on the system after create method is executed.

Regards

Ugur

Former Member
0 Kudos

Hi Ugur,

there is no badi check we are using. but while doing debug in prod its creating.

Former Member
0 Kudos

In this I am calling create_deep_entity multiple time like before create I am calling for checking objects are available or not..