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: 

Behaviour of SAP program in batch.

Former Member
0 Kudos

Hi,

I need to know if i schedule a program to be run in batch and if the program contains a popup information display requiring input from user something like POPUP_TO_CONFIRM, then in batch how this popup will be handles

6 REPLIES 6

Sougata
Active Contributor
0 Kudos

The simple answer is - why don't you call the POPUP FM in your program then schedule it to run in background to see how it behaves/how popup is handled by the system instead of posting this here?

If we told you that system will send a SMS to the cell phone of the person running the program, wake him up in the middle of the night and ask him to fill in the required input in the popup box, would you believe us or first run your program in background to verify our answer is correct or we're having a bit of a fun with you?

Former Member
0 Kudos

Well I know this query sounds quite strange.

But there is a program created by me which will do transfer posting of open items by use of SAP FM for transfer and in of the events configured for transfer some one has inserted the FM i specified in my query.

So i wanted to know what would be the expected result.

Now i have the answer with me.

Thanks.

Sougata
Active Contributor
0 Kudos

Yes now you have the answer...but you won't reward anyone!!

former_member223537
Active Contributor
0 Kudos

Hi,

Any kind of screen pop-ups where Human intervention is required, wont work in Background.

In case of background job, you can skip the popup by following condition:

if sy-batch ne 'X'.

CALL FUNCTION 'POPUP_TO_CONFIRM'

,,,,

endif.

This will help to display the popup only whn the program is executed in foreground.

Best regards,

Prashant

Former Member
0 Kudos

Hi,

In background job processing, the pop-ups will not work.

You have to suppress the pop-up if you want the program to be executed in backgound.

The suppressing can be done by checking the sy-batch value. If it is set then don't call the FM.

Thanks,

Mandeep

messier31
Active Contributor
0 Kudos

Hi,

Program will process till this popup and then stops processing ahead. You get status job finished in job ovwerview.

You even get the list output, if you are trying to write anything on list.

Enjoy SAP.

Pankaj Singh.