Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform in background task

Former Member
0 Likes
470

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.

2 REPLIES 2
Read only

Former Member
0 Likes
429

Does your smartform has a Dialog pop up?

If yes, you have to suppress it, as dialog and background don't go together.

You have set cetrain parameters in the Smartfrms function module in order not to get the pop up dialog.

REgards,

Ravi

Read only

0 Likes
429

i don't have a dialog pop-up but there are field called screen or xscreen which is passed. are there some parameter or field that should be marked or unmark?

Thanks for your reply.