cancel
Showing results for 
Search instead for 
Did you mean: 

How to asynchronous loading component usages?

dominik_auras
Participant
0 Kudos

Hi,

is it possible to load component usages (or at least their data) asynchronous?

The problem is I have somthing like a dashboard displaying different panels with data.

Some data is complex in loading and needs some time so time outs are possible.

So my target is to load the panels (or their data) asynchronous and the user has not to wait until every panel has loaded its data.

I don't find any solution ...

Is this possible?

NW version should not exceed 7.31 if possible.

Thanks and regards,

Dominik

Accepted Solutions (0)

Answers (2)

Answers (2)

AbhishekSharma
Active Contributor
0 Kudos

Hi Dominik,

As per my understanding Async call may not be possible straight in WD.

If it would have possible you can use like below

CALL FUNCTION 'ZPP_FM_AS'

        STARTING NEW TASK lv_task

        DESTINATION IN GROUP lv_logon_group

        PERFORMING get_data ON END OF TASK

        EXPORTING

          lv_start              = lv_start

          lv_end                = lv_end

        EXCEPTIONS

          communication_failure = 1

          system_failure        = 2

          resource_failure      = 3

          OTHERS                = 4.

But PERFORM can not be used in WD like this.

So in place of PERFORM there is another parameter available METHOD where you can Pass method name of a Class.

This class could be your Assistance Class of WD component with one static method.

Check if this works for you or not ...

If this does not work then you need to follow traditional way for Async call using FRAME or HTML ILAND element.

Thanks-

Abhishek

dominik_auras
Participant
0 Kudos

Hi,

I still need a solution for this..

Thank you and kind regards,

Dominik