12-07-2007 8:49 PM
Hi, Gurus:
In my program, after I call 'CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.' in the va02, user maybe do some change and save
then I want to get those change as the dollowing:
select single uvall into c_complete_flag from vbuk
where vbeln = lv_vbeln.
why I can't get the latest change.
Thanks,
12-07-2007 8:53 PM
Hi Yunfa,
The changes will not get committed till some time.
Hence you may have to use a COMMIT WORK and WAIT statement, before you use the select statement.
Regards,
Ravi Kanth Talagana
12-07-2007 8:53 PM
Hi Yunfa,
The changes will not get committed till some time.
Hence you may have to use a COMMIT WORK and WAIT statement, before you use the select statement.
Regards,
Ravi Kanth Talagana
12-08-2007 4:18 PM
I already put 'commit work and wait.' but It's not working.
still get old data. can't get new data.
Is there any other special steps need to do.
Thanks,
12-08-2007 5:33 PM
VA02 usese the asynchronus update mehtod so, it gives you the message like "Order 1111 was saved" but the database update is still going on.
So, you need to wait for some time before facthing the data from the database.
You can use like:
WAIT UP TO 10 SECONDS.
But this statement will force you to wait for atleast 10 seconds before doing any thing.
Regards,
Naimesh Patel
12-10-2007 3:35 AM
Hi, Naimesh:
Thanks for your help. It's working now. when we call this transaction VA02,
can we set Synchronous?
Thanks,
12-10-2007 3:36 AM
I think we can't set it to work on synchronous way.
Regards,
Naimesh Patel
12-10-2007 4:01 AM