cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous method Problem?

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Thanks

Arghadip