Application Development 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: 

Native SQL Issue.

Former Member
0 Kudos
79

Hello,

I am doing a EXEC SQL/ENDEXEC Native SQL Call from within my ABAP program to insert records into an SQL Server database.

The EXEC SQL/ENDEXEC is within a loop and I am trying to insert rougly 200+ records from my abap program into the sql server table.

What I am noticing is that when I step through my logic, the insert happen as they should. When there is no break point and the program runs, inserts into the sql server table do not occur.

I am a little baffled and wanted to find out if any of you all have had this kind of a issue and how it was solved.

I was thinking of putting a WAIT abap statement kind of like a timer.

Any guidence or suggestions?

Regards,

Salil

1 ACCEPTED SOLUTION

0 Kudos
51

Try commit.

Ariel Fisher

2 REPLIES 2

0 Kudos
52

Try commit.

Ariel Fisher

0 Kudos
51

I solved the problem by adding 'WAIT' ABAP statement.