Skip to Content
avatar image
Former Member

How to asynchronous loading component usages?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 26, 2015 at 04:39 PM

    Hi,

    I still need a solution for this.. ūüėĒ

    Thank you and kind regards,

    Dominik

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2015 at 04:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded