Skip to Content
author's profile photo Former Member
Former Member

Asynchronous method Problem?

Hi

I created one customized Business Object.

In That BO i created one Asynchronous method.

But i need to export some data's from that method. but export option is not possible for Asynchronous method.

so i created same object and raised the event for that created object with the event container.

For ur reference

-


DATA: z_zassign TYPE SWC_OBJECT.

swc_container a_container.

swc_set_element a_container 'Sourcer' z_zsourcer.

swc_create_object z_zassign 'zassign' OBJECT-KEY.

swc_raise_event z_zassign 'Sourcer_assigned' a_container.

-


" z_zsourcer getting from One Function Module

" zassign is my Customized BO.

It is working when i excute first time, it is passing the container (a_container)element to the task container.

when i execute the second time it is not passing the value to the task container.

plz give me some solution for this problem?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 04:45 PM

    I think most probably the Terminating event has not been triggered so the value is not getting passed.

    Thanks

    Arghadip

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 05:52 AM

    Hello ,

    for your coding itself I had the following variation/suggestion:

    METHOD dialog_with_asynchronous_call.
       "...
       swc_container cont.
       REFRESH cont.
       swc_set_element cont 'Sourcer' source.
       swc_raise_event self 'Sourcer_assigned' cont.
       COMMIT WORK.
    ENDMETHOD.
    

    After the commit work statement, leave method immediatly.

    Best regards,

    Florin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.