cancel
Showing results for 
Search instead for 
Did you mean: 

smartform in background task

Former Member
0 Kudos

Hi,

I have the following code which is a copy of standard program /bev1/vd_bew_lief_background:

IF nast-vsztp = 4.

CALL FUNCTION 'ZUAM_FMDELNOTE' IN BACKGROUND TASK AS SEPARATE UNIT

...

ELSEIF sy-tcode = VL71 OR

sy-tcode = VL02N OR

sy-tcode = VL03N.

CALL FUNCTION 'ZUAM_FMDELNOTE'

...

ELSE.

CALL FUNCTION 'ZUAM_FMDELNOTE' IN BACKGROUND TASK AS SEPARATE UNIT

...

And inside this FM I have a call to print a smartform. When it goes in the second if block there is no problem, the smartform gets triggered. But when it goes to the 1st or 2nd, the one with in background task, the smartform is not triggered.

Is smartform allowed to be called in background processing?

Or there other things that I should check?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a background job and try to call that in your function modules whenever required.

Regards,

Amey

Answers (0)