2014 Oct 09 1:02 AM
Hi All Expert,
I am having a small issue but I am not successful to regenerate this case.
I am using an BAPI to update operand "BAPI_UTILINSTALLATION_CHANFACT". With this BAPI I am updating 2 Quantity and 4 Demand operand at the same time.
Problem I am having is when I updated the operand for single installation it's work fine but when I am updating the operand in a loop for more than 10 K records I am getting 2 weird error.
AH - 418 - Enter dates that do not overlap
AH - 495 - Entry for date &1 already exists
While there is no issue in data. it's seems when we are updating for multiple records/installations some buffering issue or something like that.
Any Idea appreciated.....
Thanks
Atul Joshi
2014 Oct 09 1:05 AM
Just Want to update one more things here....
When I am passing data in Loop for 10 K installation one by one....then only it's have issue. I am I have single records in loop it's won't fail.....
2014 Oct 09 3:26 AM
Hi Atul,
Can you upload screen shot of your code. We are also using the same bapi in loop and we are not facing any problem.
2014 Oct 09 4:45 AM
Here is the code.
it's working fine like if I have 10 K installation then for first 5K it's work fine for remaining all 5K it's have one of two error message defined in my first post.
CALL FUNCTION 'BAPI_UTILINSTALLATION_CHANFACT'
EXPORTING
number = lwa_installation-installation
updforce = c_flag
IMPORTING
return = lwa_return
TABLES
quanttable = lt_quant
demandtable = lt_demand.
2014 Oct 10 7:52 AM
Hi Atul,
Even w have used this BAPI at several locations and it has worked as desired.
However, at some places where it doesn't work (not sure why..!), we used the transaction commit BAPI - BAPI_TRANSACTION_COMMIT after calling the update BAPI.
You can try with this, it might work perhaps!
Let us know if it does / doesn't.
Regards,
Asif
2014 Oct 17 10:03 AM
Hi Atul ,
In the table Ettifn "Installation" + "Operand" + "Season" + "Valid from" is the key values , So what you do .
take Dump of ETTIFN table for the installation you are running also pass "Operand" value . Now you will see that for one installation and operand you will have same "Valid to" date but "valid from" is different .
Installation Operand | Valid from | Valid to |
100000000 FACTOR | 01.01.2013 | 10.12.2013 |
100000000 FACTOR | 15.06.2013 | 10.12.2013 |
2014 Oct 21 11:02 PM
I am sorry for late response...this problem got resolved..I was passing some incorrect data to BAPI. my mistake.