‎2009 Dec 18 2:14 PM
Hi,
I am using bapi BAPI_NETWORK_COMP_ADD to post(Confirm) the network activity data. For the multiple records the very first record is being posted by the bapi and for the rest records error message is being shown as ' Order (network no.) is already being processed by USERNAME'.
To rectify the error 'wait up to sec seconds' in CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' is being used.
After this the result is getting absolutely fine.
but i dont want to use the WAIT statement as the data volume is large.
Kindly reply for the same.
I have already tried with the bapi CALL FUNCTION 'BAPI_PS_INITIALIZATION' and CO_ZF_DATA_RESET_COMPLETE writng in begining, But diidnt get the expected result.
Thanks in advance.
‎2009 Dec 18 7:39 PM
Hi,
What happens when you do not use the statement 'WAIT UO TO SEC SECONDS' before you call commit?
just use commit work and wait. basically the bapi cannot process the next order till you the complete the LUW with a commit.
Regards
Prasenjit
‎2009 Dec 18 7:39 PM
Hi,
What happens when you do not use the statement 'WAIT UO TO SEC SECONDS' before you call commit?
just use commit work and wait. basically the bapi cannot process the next order till you the complete the LUW with a commit.
Regards
Prasenjit
‎2009 Dec 20 8:27 AM
Hi Prasanjeet,
Thanks for your prompt response.
In the starting phase of the developemenmt i was not using 'wait up to sec seconds'. I was calling 'BAPI_NETWORK_COMP_ADD' and after this 'BAPI_TRANSACTION_COMMIT'(In this commit bapi i was not passing any parameter). Everything was fine but the result i was getting was the error message from the second record onwards.
For the first record bapi is posting data successfully, but for the second record onwards it was showing error message
'' Order (network no.value) is already being processed by USERNAME'.
To rectify this error i am using 'wait up to sec seconds' afted calling bapi BAPI_TRANSACTION_COMMIT. Now the result is what i
wanted. But the SEC value is 1 sec. As my data volume is huge, i am bound to use some other alternative.
Kindly reply for the same with your valuable suggesion.
Thanks.