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

IDOC Process Failing : The ABAP/4 Open SQL array insert results in duplicate database records.

Former Member
0 Likes
1,076

Hi Experts,


Need Help for which I'm facing a issue when IDOC is Processing.


We have back ground Job which triggers for every 10 Mins for Processing IDOCs which is used to create Purchase Request.

Processing is happening with Prog: RBDMANIN. When processing few Jobs are going to Dump with Error: The ABAP/4 Open SQL array insert results in duplicate database records.


It was happening at :


  145   DESCRIBE TABLE db_eban LINES sy-tfill.

  146   IF sy-tfill GT 0.

>>>>>     INSERT eban FROM TABLE db_eban.

  148     IF sy-subrc NE 0.

  149       MESSAGE a807 WITH 'EBAN'.

I tried to use logic to avoid the Duplication. But it didn't worked.

Kindly suggest me how resolve this issue, is there any process to delay the IDOC process ?

Hi Experts,


Need Help for which I'm facing a issue when IDOC is Processing.


We have back ground Job which triggers for every 10 Mins for Processing IDOCs which is used to create Purchase Request.

Processing is happening with Prog: RBDMANIN. When processing few Jobs are going to Dump with Error: The ABAP/4 Open SQL array insert results in duplicate database records.


It was happening at :


  145   DESCRIBE TABLE db_eban LINES sy-tfill.

  146   IF sy-tfill GT 0.

>>>>>     INSERT eban FROM TABLE db_eban.

  148     IF sy-subrc NE 0.

  149       MESSAGE a807 WITH 'EBAN'.

I tried to use logic to avoid the Duplication. But it didn't worked.

Kindly suggest me how resolve this issue, is there any process to delay the IDOC process ?

2 REPLIES 2
Read only

karthikeyan_p3
Contributor
0 Likes
830

Hi RK,

Which IDOC type are you using? Is that a standard IDOC type or custom?

Is the PR number available in IDOC & are you trying to create PR with the same number?

Thanks,

Karthikeyan

Read only

PeterJonker
Active Contributor
0 Likes
830

Can you not use MODIFY from table db_eban  in stead of INSERT ?