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: 

Popup in background run

Former Member
0 Kudos

Hi Experts,

We have a program that has a validation popup appearing if sy-batch is initial. (dialog task)

Now, to create a job to run the above program, I have a new program created that has the statement submit <program> and return with <input paremeters>via job <jobname> number <jobcount>

However, the popup appears even though it is a background run.

Thanks,

Leena

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The submit statement is in a function module and this RFC is being called from Informatica. The submit statement is given below.

submit YGRFIGL_RETAINED_EARNINGS and return

with s_bukrs IN s_bukrs

with s_ledger IN s_ledger

with p_year = l_year

with p_period = l_per

with p_calltr = 'X'

with p_batch = ' '

via job jobname

number jobcount.

The YGRFIGL_RETAINED_EARNINGS program has the pop up only in one place and the code is as shown below.

IF sy-batch IS INITIAL. "CH0025

    • begin of inserting CH0022

PERFORM show_warning_popup USING p_text lc_answer.

    • end of inserting CH0022

    • stop processing

endif.

Thanks,

Leena

6 REPLIES 6

former_member125931
Active Participant
0 Kudos

Hi,

Could you pls paste your code so that we can able to know exact prob..

Thanks and regards,

Sree.

former_member195402
Active Contributor
0 Kudos

Hi,,

maybe it's another popup that is comming. Do you have a short dump, where you can see which popup is coming (e.g. Spool Dialogue or your own POPUP)?

Regards,

Klaus

Sandeep_Kumar
Advisor
Advisor
0 Kudos

How you are executing the main report ?(dialog/background)

Former Member
0 Kudos

Hi,

The submit statement is in a function module and this RFC is being called from Informatica. The submit statement is given below.

submit YGRFIGL_RETAINED_EARNINGS and return

with s_bukrs IN s_bukrs

with s_ledger IN s_ledger

with p_year = l_year

with p_period = l_per

with p_calltr = 'X'

with p_batch = ' '

via job jobname

number jobcount.

The YGRFIGL_RETAINED_EARNINGS program has the pop up only in one place and the code is as shown below.

IF sy-batch IS INITIAL. "CH0025

    • begin of inserting CH0022

PERFORM show_warning_popup USING p_text lc_answer.

    • end of inserting CH0022

    • stop processing

endif.

Thanks,

Leena

0 Kudos

Hi,

Pass p_batch = 'X ' and try.

Thanks and regards,

Sree.

0 Kudos

Hi,

How u r executing this FM,

if it calling from some other system it could not identify SY_BATCH,

so put a flag instead of SY_BATCH to overcum pop-up.

Thanks and regards,

Sree.