Application Development 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: 

Submit Program in background avoiding confirm POPUP

Former Member
0 Kudos

Hi Experts,

I make submit to program   SDV03V02 with job.

But I get message asking me to confirm my action.

How avoid this POPUP?

my code:--------------------------

lv_report = 'SDV03V02'.

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = pv_jobname

IMPORTING

jobcount = pv_jobcount.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

immediately = space

line_size = '80'

mode = 'BATCH'

no_dialog = abap_true

report = pv_report

IMPORTING

out_parameters = ps_pri_params.

SUBMIT (lv_report) TO SAP-SPOOL

SPOOL PARAMETERS ls_priparams

WITHOUT SPOOL DYNPRO

WITH SELECTION-TABLE lt_valutab

VIA JOB lv_jobname NUMBER lv_jobcount

AND RETURN.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = pv_jobcount

jobname = pv_jobname

strtimmed = 'X'.

_______________________

Thanks,

Larissa

2 REPLIES 2

Former Member
0 Kudos

Hello Larisa,

is that Popup reletated to Printer paramaters.

or Could you provide the Comple message whcih you are getting in popup.

Regards,

Prathap

0 Kudos

Hi Prathap,

it is not message POPUP,

this is code of popup ('POPUP_TO_CONFIRM_STEP'):

  **********************************************************

FORM SICHERHEITSABFRAGE.

DATA: DA_TEXT1(35),

DA_TEXT2(35),

DA_ANSWER.

 

CHECK SY-BATCH EQ SPACE AND P_SIMUL EQ SPACE.

WRITE TEXT-006 TO DA_TEXT1+0(35).

WRITE TEXT-007 TO DA_TEXT2+0(35).

CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'

EXPORTING

DEFAULTOPTION = 'N'

TEXTLINE1 = DA_TEXT1

TEXTLINE2 = DA_TEXT2

TITEL = TEXT-008

IMPORTING

ANSWER = DA_ANSWER.

CASE DA_ANSWER.

WHEN CHARN.

LEAVE TO TRANSACTION SY-TCODE.

WHEN CHARA.

LEAVE TO TRANSACTION SY-TCODE.

WHEN OTHERS.

ENDCASE.

ENDFORM.

***********************************

Regards,

Larissa