‎2010 Jun 01 11:15 AM
Hi all,
I'm trying to use the function module BOM_POST to create list of materials, but it give me a short dump.
The problem is in the second execution of the FM, the error is:
'The ABAP/4 Open SQL array insert results in duplicate database records.'
STANDARD CODE
insert prst from table xprst.
The standard program save the first record and in the second execution try to save two records and the dump is produced.
Can somebody help me???
Thanks everybody...
‎2010 Jun 01 11:22 AM
Hi,
why do you talk about a second execution and why must it happen twice ?? After all you can create a list of materials only once and in case you want to update the information, then the procedure is different.
‎2010 Jun 01 11:37 AM
Hi Jorge,
I need create one, two or more different list of materials. If I create only one there isn't any problem...
Thanks Jorge.
‎2010 Jun 01 11:52 AM
Check this note:
Note 104754 - Bills of material - SAPSQL_ARRAY_INSERT_DUPREC
--
Reddy
‎2010 Jun 01 3:58 PM
I read this note and it doesn't resolve my problem, because in the note say that the problem is when you add or modify components of the bill of the material, but my problem is when I try to create the bill.
Thanks anyway....