Application Development 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: 

CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN?

Former Member
0 Kudos

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,

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

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

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

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

0 Kudos

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,

0 Kudos

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

0 Kudos

Hi, Naimesh:

Thanks for your help. It's working now. when we call this transaction VA02,

can we set Synchronous?

Thanks,

0 Kudos

I think we can't set it to work on synchronous way.

Regards,

Naimesh Patel

0 Kudos

Thanks a lot. I rewrd 10 points.

Regards,

Zhang