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
i_order = vbak-vbeln
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?