Skip to Content
0
Former Member
Jun 05, 2008 at 02:22 AM

fm IN BACKGROUND TASK output

618 Views

I need to use the delivery number created in the FM z_create_dlvry.

How can I get an FM to have an output when it's called in background task?

CALL FUNCTION 'Z_CREATE_DLVRY' IN BACKGROUND TASK

EXPORTING

i_order = vbak-vbeln

TABLES

itab_msg = itab_msg1.

itab_msg1 does not return anything if it is called in background. But it returns correct value if the IN BACKGROUND TASK is removed. (delivery number = itab_msg1-msgv2). The current program needs to call the fm in background.

How can i get the delivery number created in the FM?

Thank you.

Che