SUBMIT and BACKGROUND Processing

Dear ABAPers,
       I have created the BDC Program.I want to run this in Background job.
I want to call this program using SUBMIT Statement.How to do this.I
Thanks & Regards,
Ashok.

HI,
REPORT zzreport1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT zzreport2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.

Similar Messages

  • 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

  • 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

  • "cannot submit to background processing" while converting

    Post Author: PAyalon
    CA Forum: .NET
    Hi.
    In my web application I export reports to PDF, it's works fine on dev server, but throws exeption on IIS:
    "Error in File C:\WINDOWS\TEMP\temp_0d804620-e578-40f0-947e-7bd11af7e3a4.rpt: The request could not be submitted for background processing."
    I gave already all permissions to IIS_WPG and ASP.Net user but it still do not work.
    On my develop machine (win Xp) both servers work fine.
    My be I have a problem with license, course my test machine is server with 2 processors?

    Thanks, after a looooong night of re-installing
    back from DVD to 10.4, then up to 10.43,
    then re-installing FCP 4 and DVDSP 3, and doing all patches, both my Compressor 1.21 works great as before, and I got my printer settings back.
    An added bonus: 10.4 dumped my "processor" control panel, but A.Pack is working fine now, with BOTH processors! I guess with Tiger, you
    no longer need to utilize the "turning off of one processor fix" for A.Pack?

  • 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

  • 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.

  • 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

  • BACKGROUND PROCESSING, REPORT NOT LOADING, "OBJECT NOT SET TO INSTANCE..."

    Post Author: thecoffeemachine
    CA Forum: .NET
    I already posted this message in other Web sites, but I am almost getting crazy here and I need help:
    HI:
    The Web application I am testing was having several issues related to loading Crystal Reports. It was fixed and I do not know which of the 1000 things I did to fix it; but now it began, again, to have the same behavior after I had a conflict with another Web site that was in the same server.
    The thing is that I had another virtual directory where resided a copy of the same Web app. for testing purposes/working with the Visual Studio. The reports were loading all fine, very fast, all perfect... And suddenly the assemblies of one Web site and the other began to "blend" together and..... well the same behaviors appeared again. I tried to copy the last stable backup and rebuild the Web app... but it did not work.
    At the very first time that one requests the report, it shows without problem. At the second time it shows an error message related to "cannot submit to background processing", and sometimes "object not set to an instance.." ... and on the third time it just never shows up and the app. becomes unresponsive. I have to close the window and request the Web site again in another browser window. If I wish to see the report again I have to wait for hours until it shows it.
    I am using Visual Studio 2003 and the Crystal Report version that was shipped with that Visual Studio version. I am working with Windows Server 2003 and SQL Server 2000. Below is the VB code:
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load             Me.SqlConnection1.Open()
           Me.SqlSelectCommand1.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandReferences.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandTextbook.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandObjectives.Parameters("@CourseCode").Value = Request.QueryString("CD")         Me.SqlSelectCommandTopicData.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandCourseOutcomes.Parameters("@CourseCode").Value = Request.QueryString("CD")
            Me.SqlDataAdapterMainData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseSyllabusData")         Me.SqlDataAdapterReferences.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseReferenceData")         Me.SqlDataAdapterTextBook.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTextbookData")         Me.SqlDataAdapterObjectives.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseObjectivesData")         Me.SqlDataAdapterTopicData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTopicData")
    Me.SqlDataAdapterCourseOutcomes.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseOutcomes")
            Dim myExportOptions As CrystalDecisions.Shared.ExportOptions         Dim myDiskFileOptions As CrystalDecisions.Shared.DiskFileDestinationOptions         Dim myExportFile As String         Dim myReport As New ABETFormat         myReport.SetDataSource(Me.DtsSyllabusCompleteData1)
            myExportFile = "C:UNTempPDF" & Session.SessionID.ToString & ".pdf"         myDiskFileOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions         myDiskFileOptions.DiskFileName = myExportFile         myExportOptions = myReport.ExportOptions
            With myExportOptions             .DestinationOptions = myDiskFileOptions             .ExportDestinationType = .ExportDestinationType.DiskFile             .ExportFormatType = .ExportFormatType.PortableDocFormat         End With
            myReport.Export()
            Response.ClearContent()         Response.ClearHeaders()         Response.ContentType = "application/pdf"
            Response.WriteFile(myExportFile)         Response.Flush()         Response.Close()         System.IO.File.Delete(myExportFile)         Me.SqlConnection1.Close()
        End Sub
    I already have tried moving the Crystal Reports dll´s to the bin directory. ..... I have tried calling the Garbage Collector at page unload...I also have checked, inside the report, that the database is "up to date"... ... recycling the worker process of the IIS... etc...
    I see that, in debbuging mode inside the Visual Studio, when the page loads the debbuging window shows a message notifying that the symbols related to the Crystal Reports dll's could not be loaded.
    Should I need to modify the default properties of the database? I checked "database is case insensitive", "use indexes or server for speed".. I have tried checking and unchecking the box "performing grouping on server"
    Oh by the way, my report has about 4 subreports in it. Each report loaded shows 1 or 2 pages.
    ANY HELP WILL BE EXTREMELY APPRECIATED....
    MMS

    See  [Crystal Reports For Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true] article, page 107 and on for details on how to use Crystal reports in session.
    Ludek

  • Dialog process  vs Background process

    Hi,
    What is the difference between dialog and background process?
    Can a dialog process is used in a process chain?
    Does an ABAP program followed by change run be a dialog process or background process in a process chain?
    What is the standard maximum runtime duration of a dialog process?
    Regards,
    Pradeep

    Hi,
    Dialog Process - Executes dialog programs (ABAP)
    Background Process -  Executes time-dependent or event-controlled background jobs.
    All the Processes in Process Chain will be Scheduled in Background.
    and The Maximum workprocess Time will be defined by BASIS Team.
    -Vijay

  • Submit Report (Regarding Background Processing)

    Hi Guru's,
    I want help regarding Background Processing.
    I have developed a program which is running fine in forground but in Background mode no values are comming.
    All values are becomig Zero.
    Plz help.
    *--- Submit Report for 'COGI' (Postprocessing of Error Records from Automatic Goods Movements)
      SUBMIT coruaffw USING SELECTION-SCREEN '1000'
                      WITH  r_cumul = 'X'
                      EXPORTING LIST TO MEMORY
                    AND RETURN.
    *---- Get the List
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = it_list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc = 0.
    *--- Convert to Ascii
        CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listobject         = it_list_tab
            listasci           = it_asci_tab
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc <> 0.
    *      MESSAGE i000 WITH 'Problem in converting LIST to ASCII'.
        ENDIF.
        DESCRIBE TABLE it_asci_tab LINES w_cogi.
        w_cogi = w_cogi - 5.
      CALL FUNCTION 'LIST_FREE_MEMORY'
        TABLES
          listobject = it_list_tab.

    Hi Arbind,
                  You have used return you need to add the addition with.Try this way hope it works
    SUBMIT zreport EXPORTING LIST TO MEMORY
                    AND RETURN
                    WITH P_1 = P_1
                    WITH P_2 = P_2
                    WITH P_3 = P_3
                    WITH S_4  IN S_4
                    WITH S_5 IN S_5
                    WITH S_6 IN S_6.

  • Compressor 2 and FCP 4.5 "background process" error

    So I switched to my laptop which is running 10.4.11 and Compressor 2. I get "Cannot submit batch" Unable to connect to background process. I don't know if I should try the same proposed solutions that are suggested for the newer versions of the software? Any other suggestions?

    VAR,
    1. When you can spare another 5 min to solve your problem, instead of coming here and complaining about no one helped you (though Tom did offer a very direct response) you might take the time to read your DVDSP manual.
    In it, you will discover that DVDSP is totally capable of converting quicktime movies to m2v and aif files. You have full control over all aspects of bitrate etc. Indeed, it is the same engine as in compressor. If you need an AC3 file, use A-Pack on the aif DVDSP will create.
    2. When you say compressor does not work, do you mean -A. it does not launch from within FCP or B. you can not launch it independently?
    If it will launch independantly. export a reference QT file, open Compressor and have at it.
    QT7 is a problematic issue with FCP4.5. The long term solution is to upgrade to FCP5 to go with 10.4 and QT7. They all fit together much more neatly.
    fwiw -
    1. the people who hang out here and help out fellow users are not employees of Apple. If you want to complain about the software, a good place to do it is on the FCP feedback page This forum is to provide technical support.
    2. The people who hang out here and help fellow users are not compensated. Their efforts are volunteer and no one is under any obligation to respond to you in any way. If you don't like the advice, I'm sure Apple techincal support would be glad to have a $199 conversation with you.
    3. Tom is a mainstay of the board and one of the the most knowledgeable people you will find regarding FCP. As such he is highly respected by the serious users of the forum. You will not find a great deal of sympathy or support here if you continue on in this vein ..
    You have a technical issue, post the details, For example, what have you tried to solve the problem? The intellectual resources here are quite amazing. I've not seem many posts go unresolved for lack of trying.
    good luck.
    x

  • Connot submit batch - Unable to connect background process?

    Trying to export 60 min high quality mpeg and get the following message: "Connot submit batch - Unable to connect background process"
    I use FCP 4.5 HD

    You don't give many details but Jon Chappell of DigitalRebellion has produced a free utility to help with Compressor problems.
    He posted these details recently:-
    "It seems like a number of people on this forum are having problems submitting batches from Compressor, so I created a utility to diagnose and fix some of those problems.
    Compressor Repair will check all necessary files exist on your hard drive and that permissions are set correctly. It also resets Qmaster, trashes the Qmaster spool directory and launches qmasterd."
    http://www.digitalrebellion.com/downloads/CompressorRepair.zip

  • Background Processing, Selection Screens and Variants

    Hi All,
    I am having a little trouble Background Processing with Selection Screens and Variants.
    When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
    FORM START_BACKGROUND_PROCESSING.
      CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
        EXPORTING
          TITLE_NAME            = 'End Customer Report '
          JOB_NAME              = 'customer_report'
          PROG_NAME             = 'ZSE_SD_SALES'
      EXCEPTIONS
        NO_SUCH_PROGRAM       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "START_BACKGROUND_PROCESSING
    After the background process is started, all teh data is collated then written to the app server. this is the order
      ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
        PERFORM INITIALIZE_DATA.
        PERFORM SELECT_DATA.
        PERFORM PROCESS_DATA.
        PERFORM GET_END_CUSTOMER_DATA.
        PERFORM WRITE_TO_APP_SERVER.
    Any ideas? Points given to those who are helpful

    done myeslf

Maybe you are looking for

  • Solaris 10 Update 1 PXE Installation on SPARC fails with the error message.

    Hi, The remote installation is continiously failing for older updates, I tried with different images but all fails with the same error message ' Using DHCP for network configuration information. ^CMar 17 13:07:00 svc.startd[7]: svc:/system/install-di

  • Airport self assigned ip and no internet, os 10.5.8

    the airport on my system 10.5.8 ( 1.25 GHz powerPC G4, 768 MB DDR SDRAM) has either a self-assigned ip or is not able to connect to my isp. if I try to get to internet the message is connection time out. the  connection trough the ethernet cable work

  • Pb to connecting to the demo database

    hi , i'm newbie :) i have just installed TimesTen with demo , i can't see how can i connect to the demo database in the command line (i'm on Linux) what's the name of the demo database ? thanks for help :)

  • Oracle Text and Java (jsp)

    Hi, I stored files( pdf,word) in blob column. I created index (INSO_FILTER) and i would like to query the files. String sword="test"; String query = "Select COMPID,CREATED,NAME,CVNUMBER from COMPANYCV" + " where contains(CV,' "+sword+" ') > 0 " ; Sys

  • Oracle 9i SID

    hi all, i have the following question : a) I am using windows XP professional and oracle 9.0.1 enterprise edition. Under the windows environment, how do i set the environment variable of the oracle SID ? In UNIX (SUN SOLARIS), the oracle_sid can be s