Application Development and Automation 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: 
Read only

BDC processing progress

0 Likes
937

Hello experts,

I am trying to accomplish Change Code Creation  through BDC ( with Transaction 'CC01' ).

During the processing i found it took too much time to execute the final statement:

  CALL TRANSACTION 'CC01'

  USING bdcdata

  OPTIONS FROM c_ctu

  MESSAGES INTO messtab.

So i wonder if there is a way to moniter the BDC processing progress.

I just want to estimate the time of processing.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
882

Hi Panda,

You can use GET TIME STAMP FIELD syntax to measure time taken -

GET TIME STAMP FIELD lv_start.

  CALL TRANSACTION 'CC01'

  USING bdcdata

  OPTIONS FROM c_ctu

  MESSAGES INTO messtab.

GET TIME STAMP FIELD lv_end.

lv_diff = lv_end - lv_start.

Cheers,

Varun    

7 REPLIES 7
Read only

Former Member
0 Likes
883

Hi Panda,

You can use GET TIME STAMP FIELD syntax to measure time taken -

GET TIME STAMP FIELD lv_start.

  CALL TRANSACTION 'CC01'

  USING bdcdata

  OPTIONS FROM c_ctu

  MESSAGES INTO messtab.

GET TIME STAMP FIELD lv_end.

lv_diff = lv_end - lv_start.

Cheers,

Varun    

Read only

0 Likes
882

Hi Varun,

Thanks for the suggestion,this really could calculate the time,however,i want the progress,just like as the function 'SAPGUI_PROGRESS_INDICATOR',i could figure out how many percent of the progress is left to be done~

regards

Panda

Read only

0 Likes
882

Hi Panda,

Interesting requirement. I did some day wanted to achieve this, but with delivery of objects before time, I got pretty busy.

You can check these forum - http://scn.sap.com/thread/3314373

Hope this helps!

Cheers,

Varun

Read only

0 Likes
882

Hi Varun,

Thanks anyway,

This afternoon While waiting for the BDC program's accomplishment,i came up with this idea and spent several hours trying to achieve this goal but got nothing ~maybe it's an impossible mission.

Regards

Panda

Read only

0 Likes
882

Hi Panda,

No man its not! It's an interesting requirement, it will just take some time as compared to taking the usual time!!! Nevertheless if you have time in your hand you can jolt down your idea or make use of you own imagination and hard code the percentages at the code passes by the events i.e., at START-OF-SELECTION you can call the SAPGUI_PROGRESS_INDICATOR and set it as 1% and like wise similarly.

Cheers,

Varun

Read only

matt
Active Contributor
0 Likes
882

I think you are attempting the extremely difficult. The reason is that through CALL TRANSACTION you are handing over processing to the transaction. Your program waits until the transaction is over, so there is no opportunity to determine the progress of the transaction.

I can think of two possible routes

1) Hand the BDC over to the SM35 mechanism. (If you search, you'll find plenty of examples of how to do this) and submit it in background. Since the BDC will be run in background in a seperate task, you then have some opportunity to find out what it is up to.

2) If your BDC is processing multiple lines of data, you could break it up so that, for example, only 10 lines are processed at once. Then you can use the process indicator to give an idea of how things are going.

Read only

0 Likes
882

Hi Matthew.

Gratitude!

I've handed the BDC program to background processing,but it seems there is not way to make it.As a matter of fact,if i run it in backgroud,the progress monitoring seems unnecessary.....

Route 2 may be available for some BDC programs ~but CC01 is a little special,i can't break the data into several parts.Whatever,I will try.

Thanks for the inspiration.

Regards.

Panda.