Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data is not created

Former Member
0 Likes
904

Hello,

I created a program that creates dispute cases from text file. But only first record is saved successfully in the system (in table). When I create a breakpoint in any place in the program and then press f8 all the rest records are saved as well.

Do you know the reason? Can you provide me with a solution please?

Regards,

Alex

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
866

I think u r using call transaction, if so then change the update mode to synchronous.

6 REPLIES 6
Read only

Former Member
0 Likes
867

I think u r using call transaction, if so then change the update mode to synchronous.

Read only

Former Member
0 Likes
866

It will be extremely hard for anyone to help based on this ambiguous post. If, however, you post the code that does the database update, or the BDC session, if that's what you're using, we might be able to point out the error(s).

Read only

0 Likes
866

I use a report with the following logic for creating dispute case

loop
  queue locks
  create case
  update db
  dequeue locks
  commit work
endloop

and after the 1st loop run (on the second) queue entry is still locked. But when I use a breakpoint it's getting released, because of time delay during program stop on breakpoint.

So I have to make dequeue lock entry in time when program runs.

Regards,

Alex.

Edited by: Aliaksei Klimovich on Dec 6, 2011 3:28 PM

Read only

0 Likes
866

Hi,

Could you try with this small difference:

loop

queue locks

create case

update db

commit work and wait

dequeue locks

endloop

Also, use the parameter _WAIT of your enqueue function...

Kr,

Manu.

Edited by: Manu D'Haeyer on Dec 6, 2011 1:44 PM

Read only

0 Likes
866

Intead of updating one row at a time you can update the entiere records in a single go

Read only

Former Member
0 Likes
866

hi,

Commit should be put before deque and wait for some time.

When you put a break point, the time spent for updating is actually more than that if execute directly.

Therefore more time is needed for the DB updation to complete and also depends on whether it's synchronous or not.

Regards

Vindy