Differentiate foreground and background processing

Hi All,
I want to execute a certain report in background. If the user tries to execute the program in foreground, the system should prompt him not to run it in foreground. In the same way, the message should not come if the program is run in backgroud.
That is, the system should differentiate whether the program is run in foreground or in background. How to differentiate them?
If i could differentiate, i could code a message to display when the user runs the program in foreground.
Please help me.

if sy-batch = 'X'  '' then it is runing in background other wise it is running in foreground
<enter ur code here, to display when running in background>
else
<enter ur code here, to display when running in foreground>
endif.
Madhavi

Similar Messages

  • Stuck with Foreground and Background processing in Workflow

    Hi All,
    I have a BDC that is acting as a method in the Business Object. The requirement is something like this: The scenario is in the Utilities System. When a customer pays a security deposit a PM (Plant Maintanence) Service Order has to get created automatically in the background. I have a BDC for creating the Service Order but the thing is that if I make that task which runs the BDC as foreground and give the agent assignment it works absolutely fine and the service order gets generated, but if I make the same task as background the Service Order does not get created. I am heavily stuck with this issue.
    Has anybody encountered the same issue ?
    Best Regards,
    Sudhi

    Sudhindra,
    Are you checking for errors after the BDC Call Transaction? What I normally do is to use the Messages into option of the BDC call and return the messages to the Task Container in case of errors.
    Reasons why the method does not work in background is possibly due to authorizations or the WF-BATCH user being not known to the PM system. For instance when I create PM notifications in WF in background, I have to translate the WF initiator's user id to their Personnel Number for the Resp. Person field. If in your workflow the prior step to creating order is a dialog step, you can also try the Advance with dialog option on the background step.
    Cheers,
    Ramki Maley.

  • Difference in Foreground and Background processing of an object

    we have implemented SAP ECC 6 on May 6th, 2008.
    We are facing an issue in a BDC order creation program when run in background.
    But when the same program is executed in foreground it works fine.
    In issue is one of the customized condition ZFML is not getting calculated at all.
    This customized condition gets determined in an user exit MV45AFZZ in FORM USEREXIT_FIELD_MODIFICATION.
    Value gets calculated correctely for the conditon ZFML while executed the program in foreground but it fails in background.
    The obove exit is being processed when I'm executing a BDC for creating Sales Order through the text file from application server for multiple line item. This needs to be executed every one hour through background only
    When I run the BDC in foreground, It is properly executed, but in the background it is not for one particular pricing condition, which is a customized pricing for freight to determine whether for all entire order or for the each line item. System does correctly for the entire order, but not for each line item.
    Is it possible that the userexit is not getting triggered in Background.
    I had never encountered such situations before. I'm not able to predict this peculiar behaviour of BDC.
    Any solution.
    Sanjay Kumar -
    +66 853-551-854

    Hi,
       i guess that the problem with BDC with background mode,see the below theard and refer my solution
    Re: add a new tab in transaction ME51N.
    Regards
    Kiran Sure

  • Exchange Messages Between Foreground and Background Tasks

    I'm working on an Application where I use background task for handling Bluetooth communication. For that, I'm trying to exchange messages between foreground and background tasks when the Bluetooth device sends
    something and want to notify the foreground about it. Similarly, I want the foreground to send messages to background when the user activates something. I've started doing that using event handlers but it is not reliably working. Looks like the problem is
    coming from the synchronization between these two tasks. I found the class BackgroundMediaPlayer which does what I really want , except controlling the media player. What are the options of doings that?

    Hi Rob,
    Thank you for your reply. So in this case, I guess each process shall keep reading the file and see if there are commands to be processed. Is there a way to raise an event when the content of the file get changed? Are there existing file handling classes
    that support this?

  • ABAP trail 7.00 timeouts and background process

    Does anyone knows if it's possible to change the number of dialog and background processes?
    And the transaction to change the timeouts of such processes?
    Thank you

    you can change the timeout in rz11.Parameter-name is rdisp/max_wprun_time. Backgound processes habe no timeout, so this value is only valid for dia-processes
    To change the number, you have to adjust your instance profile. In the forum  'Netweaver Administrator' should be some information about that. So just the short hint: you can adjust the profiles in RZ10, but have to do some steps for that. Just search in NW-Admin-forum above.
    Regards,
    ulf

  • How do I change the contrast between foreground and background in CS4 workspace menus?

    Everyone at my agency who has upgraded from CS3 to CS4 is dismayed to discover that they can not read any tabs on the workspace except the highlighted one. The foreground and background colors are simply too close together for anyone who doesn't have very good eyesight to use 8 hours a day, and if you have any form of color blindness, just forget it. Is there any way to change the foreground and background colors in the workspace itself?

    I don't believe it's possible.  It would be like altering the ribbon in Office 2007 to make it work like Office 2003. This is a built-in function and from the upcoming betas in the Labs it appears they are going to continue this trend.  Only thing I can really suggest you do is submit a feature request: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform .  Outside of that there is not much you can do.
    One other thing has come to mind but it only works for the document area and not other menus.  Instead of opening documents in the tabs in one window you can click on Window at the top and choose Cascade to view each file in its own window and go back to Expose for fast-switching between windows.

  • How to see the foreground and background colour without those sliders?

    I've always found the Color Panel really annoying. A lot of space is taken up by those sliders, and I hardly ever use them.
    Is there some way to hide the sliders, or—better still—put the foreground & background colours on the control panel? Shouldn’t the colours be on the control panel by default, always there in the corner?
    I wonder how most people view the foreground and background colour? Does Adobe seriously expect users to have the large Color Panel constantly displayed (along with its rarely-used sliders), or perhaps we’re all expected to have the Tools Panel constantly open even though it only contains basic tools that most people know the shortcuts for?
    Or is there some other way to see the foreground and background colours?
    Or do most users not need to know what the foreground and background colours are?

    Too big, i guess you don't remember the color palettes from ps 1 and ps 2.
    You might want to look at configurator to make a smaller panel that just shows the
    foreground/background color chips.
    http://labs.adobe.com/technologies/configurator/
    MTSTUNER

  • New photoshop cc seems to have a bug wrt the toolbar's foreground and background squares.

    New photoshop cc seems to have a bug wrt the toolbar's foreground and background squares. When I pick a color to use as a fill the squares show gray and the fill is gray rather than the color picked. Never had a problem with this in previous version of PS. Could something be set up or initialized to cause this state of affairs?

    Change your document from Grayscale to RGB, or change the selected channel to the RGB data instead of a mask.

  • I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?

    I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?

    Thanks for your help - your suggestion worked beautifully.Dennis Hood
          From: 99jon <[email protected]>
    To: Dennis Hood <[email protected]>
    Sent: Thursday, 15 January 2015, 15:20
    Subject:  I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?
    I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?
    created by 99jon in Photoshop Elements - View the full discussionTry re-setting the prefs.Go to: Edit >> Preferences >> General (Photoshop Elements menu on Mac)Click the button Reset Preferences on next Launch If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7099161#7099161 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7099161#7099161 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop Elements by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • BDC program in Foreground and Background

    Hi,
    I have a requirement from client to write a BDC program which can upload the data in TABLES in foreground and background. There will be a flag for FOREGROUND on the screen, if user clicks the FOREGROUND FLAG then data should be uploaded in foreground and if flag is blank than should be in background. What statements should I used to accomplish this logic in a BDC program.
    Thanks.
    minisap

    Hello,
    Check this sample.
    SELECTION-SCREEN BEGIN OF BLOCK BLCK1 WITH FRAME TITLE TEXT-002.
    PARAMETERS: FILENAME LIKE EPSF-EPSDIRNAM
                DEFAULT '\\FS000P01\D48\ANSKA\SAP_R3_ANSKA_FILES.TXT'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    PARAMETERS: AP RADIOBUTTON GROUP GRP1,
                PC RADIOBUTTON GROUP GRP1.
    SELECTION-SCREEN END OF BLOCK BLCK1.
    START-OF-SELECTION.
      IF NOT AP IS INITIAL.
        PERFORM UPLOAD_APPLICATION_SERVER TABLES IT_FILE
                                          USING  FILENAME
                                        CHANGING RC.
      ENDIF.
      IF NOT PC IS INITIAL.
        PERFORM UPLOAD_WORKSTATION TABLES IT_FILE
                                   USING  FILENAME
                                 CHANGING RC.
      ENDIF.
    FORM UPLOAD_APPLICATION_SERVER TABLES   P_ITAB_DATA STRUCTURE IT_FILE
                                   USING    P_FILENAME
                                   CHANGING P_RC.
      CHECK P_RC IS INITIAL.
      OPEN DATASET P_FILENAME FOR INPUT IN TEXT MODE.
      IF SY-SUBRC = 0.
        DO.
          READ DATASET P_FILENAME INTO P_ITAB_DATA.
          IF SY-SUBRC <> 0.
            EXIT.
          ENDIF.
          APPEND P_ITAB_DATA.
        ENDDO.
        CLOSE DATASET P_FILENAME.
        P_RC = 0.
      ELSE.
        P_RC = 4.
      ENDIF.
    ENDFORM.                    " upload_application_server
    FORM UPLOAD_WORKSTATION TABLES   P_ITAB_DATA STRUCTURE IT_FILE
                            USING    P_FILENAME
                            CHANGING P_RC.
      DATA: FILENAME LIKE  RLGRAP-FILENAME.
      FILENAME = P_FILENAME.
      CLEAR P_RC.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
    *   CODEPAGE                      = ' '
          FILENAME                      = FILENAME
          FILETYPE                      = 'ASC'
    *   HEADLEN                       = ' '
    *   LINE_EXIT                     = ' '
    *   TRUNCLEN                      = ' '
    *   USER_FORM                     = ' '
    *   USER_PROG                     = ' '
    *   DAT_D_FORMAT                  = ' '
    * IMPORTING
    *   FILELENGTH                    =
        TABLES
          DATA_TAB                      = P_ITAB_DATA
        EXCEPTIONS
          CONVERSION_ERROR              = 1
          FILE_OPEN_ERROR               = 2
          FILE_READ_ERROR               = 3
          INVALID_TYPE                  = 4
          NO_BATCH                      = 5
          UNKNOWN_ERROR                 = 6
          INVALID_TABLE_WIDTH           = 7
          GUI_REFUSE_FILETRANSFER       = 8
          CUSTOMER_ERROR                = 9
          OTHERS                        = 10
      IF SY-SUBRC <> 0.
        P_RC = SY-SUBRC.
      ENDIF.
    ENDFORM.                    " upload_workstation
    Hope this will solve ur issue.
    Cheers,
    Vasanth

  • How to change foreground and background color using CC SDK?

    Hello all,
    I am just starting to study the sdk (Mac CC). Currently, I am seeking the answer to change foreground and background color using CC SDK?
    Is it possible to do so? In addition, will the Image Mode such as RGB, CYMK or Grayscale be effecting such solution?
    Thanks in advance.

    These are NOT dropdown menus. They are dropdown LISTS.
    http://web.me.com/toad.hall/Demo1/Drop_DownMenus.html
    And from the links in the Google search you can learn that a list item has no style.
    And a dropdown list behaves differently from dropdown menus. Here's how it looks on Mobile Safari :

  • GUI_DOWNLOAD and background processing

    Hello,
    I have created a process which creates a file. this process uses GUI_DOWNLOAD to put the file on the users C drive or other directory on our network. The user wants to run this process in background and the program is returning a 6  (error unknown) from the GUI_DOWNLOAD FM. I was looking on SDN and found out the GUI_DOWNLOAD only works in foreground. You have to use OPEN and CLOSE DATASET statements to process in background. I am thinking about putting a button to denote foreground/background processing and using the appropriate statements to process the file. I will then have to get the file from the app server to a place will the user can get access to it.
    <b>first question</b> - is there a FM to do a FTP from the app server to a directory on our network for the user to access?
    <b>second question</b> - is this the right approach or is there something else that I should be doing.
    thanks in advance for your help

    Hi,
    Yes, your right, GUI_DOWNLOAD wil not work in background mode, you need to place the file in Application server, here.
    See the below link for a FTP program, use the proper commands(i do not know whether downloading the file is possible through the commands)
    http://www.sap-img.com/ab003.htm
    or else, write a small program which downloads the data from the application server, but it should run in the foreground
    Regards
    Sudheer

  • How to deploy an app with servlet and background processing

    i have a servlet with background processing. it has to run 24 hours a day.
    but i have problem with shutdown (after 1-2 hours without user action). [9iAS 9.0.3.0, windows 2000]
    i created for application seperate OC4J (in the EM) and i deployed it there. first time as war file, later as ear file (because there is possible to re-deploy only ear file).
    but it seems that the servlets are not designated to run as a uninterruptible task.
    the question is: how to deploy such (servlet + uninterruptible background processing) application in the 9iAS?
    a) everything in the OC4J (then how to disable shutdown?)
    b) servlet in the OC4J. where (and how) to install the rest of application?
    b1) servlet in the OC4J + rmi/soap/... + standalone server?
    what is the standard in the oracle world :) ?
    thanks

    Better to post your topic in the iPad in the Enterprise community.
    This is the, "Using Mac App Store" forum and for the most part for troubleshooting the App Store.

  • RHINTE20 and background processing

    Does anyone know how to set a variant when running RHINTE20?
    When I run the program it presents a list of objects to be corrected, and I manually select all the subtree with the icon and then run Create Several Objects.  It's these last two steps I'd like to specify in the variant, so I can setup the job to run nightly (grab the folders and process all objects).
    Thank you in advance for any hints to resolve this.
    Cheers, Al Perkins

    Hi Albert,
    Make all your selections and click on Save (CtrlS). You will be taken to Variant Attributes screen. Give the variant name, meaning, check "only for background processing" and save. Then when you execute the program, you should be able to select your saved variant by clicking on Get Variant (ShiftF5).
    Donnie

  • I have footage that needs to be green screened. One of the cameras zoomed and panned, is there anyway to lock foreground and background so the motion is consistent

    I shot two cameras for green screen editing but one of the operators zoomed and panned so the key is good but when the camera zooms it looks like the subjects are floating, any idea how to synchronize the foreground to background
    Video Gal

    I think you will need the camera tracker effect in AfterEffects, It would be best to ask in their forum.

Maybe you are looking for

  • How to view Powerpoint files without Office

    Hi, I just need to view a .ppt file on my Macbook (os x 10.5.2), and I tried to use the Powerpoint Viewer 98 for Mac from microsoft, but it is a classic application that is not supported on leopard. I also tried openoffice.org, but it converts the fi

  • Mail pdf attachment is showing/printing in black and white only

    PDF attachments with color in content are now only appearing and printing in black and white.  Is this a setting somewhere?

  • NUMBER OF PREVIOUS ITEMS

    In the Options>SMS>Number of previous items. Can anyone tell me what this function does? What the number of entries does? Solved! Go to Solution.

  • Sending Response to HTTPPost request

    I have a form that submits to a JSP page which does processing on the back end. Someone needs to submit to this page via HTTPPost and they want some type of response back letting them know that the data was processed on the backend. How do I do this

  • Project Server 2010 Site Template Update

    Hi, I have a Project Server 2010 environment in which there are several site templates created and there are about 500 projects. Now, I have the requirement of changing some templates (add a list, some fields in a existing Risks and Issues lists, etc