RFC in background process.

Hi All,
I hve to process a RFC in background process.
For doing that firstlly i hve creted va rfc n it's wkg fine then using this syntax i called this rfc for background task
CALL FUNCTION 'Y_DYNTABLE1_AJ' IN BACKGROUND TASK
DESTINATION 'rfc_bacground'
buy whenever any error raise this rfc created a error log in sm58 n i can watch it in sm58 but whenever it's work fine then i'm unble to see there result in sp01, beco'z  it's nt creating any spool in sp01 n my result is in table form.
pls help me how to get my result
regards,
Anuj

With this option you can EXPORT the whole internal table to INDX table and you can IMPORT the table for later usage.
Please refer to demo programs DEMO_DATA_EXT_CLUSTER_EXPORT_D and DEMO_DATA_EXT_CLUSTER_DELETE.
Make sure that you delete the the cluster after you import the data.

Similar Messages

  • Rfc in background

    Hi all,
    i hve to call a rfc in background for this firstlly i call my rfc in background process
    CALL FUNCTION 'Y_DYNTABLE1_AJ' IN BACKGROUND task
    DESTINATION 'rfc_destination_aj' " AS SEPARATE UNITthen
    CALL FUNCTION 'ID_OF_BACKGROUNDTASK'  for determined transaction ID
    then
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'  for scheduling background task time
    then
    CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK'  for known background task status
    every thing is wkg fine n task is showing  scheduled n finished in sm37 but i 'm  not getting their data nor sp01 nor anyone n it also show duration 0 n dealy 0 in sm37 also nothing in sm58 and also without background rfc is wkg fine.
    suggest me how to get data
    regards,
    Anuj

    Thanx sourav,
    all the parameters in fm is passed by exporting n tables parameters n declarations is also on top.
    regards,
    Anuj

  • Calling RFC In background

    Hi All,
    I have a situation here.I need to call an rfc from  another SAP system.And I need to wait for that RFC to get completed before I process with my caller program.
    The problem here is that Function module is slow and it goes into timeout error in the source system since it starts the process in dialog process
    So I was wondering if I can run this RFC in background in the source system through my caller program and wait till the RFC gets executed completly befor my caller program proceeds.
    I tried using "In background Task " addition but it stil runs the function module in dialog process and also the wait command doesn't work.
    Can anybody help me.
    Thanks
    Umang

    Hi Umang,
    As far as I know, If the DESTINATION is not available for the processing then only it starts the processing in Background mode.
    Nut IN BACKGROUND TASK doesn't mean that it will process the FM in background.
    Reward points if useful.
    Regards,
    Atish

  • Keep the TR850 information message on background process

    Hi gurus,
    Does anybody know if there is some way to keep de message above in background process?
    I have a scenario here with a RFC Function is called by R/3 system and because of this message on the process chain changing into this FM, the system gives me an error.
    Thanks in advance,
    Silvio Messias.

    Hi everybody.
    I have changed the TADIR table for PC objects. I put those objects as local ones.
    It solved my problem!
    Thanks,
    Silvio Messias

  • Background process BCTL_4CEDE3M8RTW5WPMQ01YVZ4QYE terminated due to missing

    Hi,
    I am getting following error when i am activating ODS (Bi 7.0)
    Background process BCTL_4CEDE3M8RTW5WPMQ01YVZ4QYE terminated due to missing confirmation.
    I tried reloading and activating it,
    i tried with RSRV adjusts.
    I tried changing package size.
    I tried reducing parallel executions.
    Still not able to activate. Can some one help me.

    Here are the short dump details
    Short text of error message:
    Invalid PBT server group name: PARALLEL_GENERATORS
    Long text of error message:
    Diagnosis
         The system tried to initialize the environment for processing
         parallel RFCs using the function module SPBT_INITIALIZE. The server
         group name specified was found to be invalid. The server group name
         describes a group of servers on which the parallel RFCs should be
         processed.
    System Response
    Procedure
         You can use Transaction RZ12 to determine which PBT server groups
         are configured in your system. You should only use one of the
         server group names listed there to process parallel RFCs.
    But i m activating serially with value 1 in option.

  • JCo  client calls as background processes (avoiding timeouts)

    Hi Guys!
    Could you please assist us to resolve a simple issue:
    Our JCo Client call takes sometimes longer than the given timout for sap dialog processes (so, it's now clear,  the jco client simply uses the dialog processes and not something smarter/more flexible).
    My question is, ho to entice the jco client call to run without runtime timeout and take as long time as necessary. If the only possibility is, to use the tRFC, does anybody have an example for tRFC usage from JCo Client?
    Is also a JCo server component  needed to implement some callback functionality from SAP system by using the tRFC, or it could be enough to poll the server and implement the timeout on the client level (it could be for us the best solution if we realy must use the tRFC).
    Once again, we want to run the JCo client calls unlimited time (as long as needed) without the annoying dialog process timeout. The tRFC is not necessary by use cases now.
    Any help would be      appreciated!
    Many thanks, Gena

    Hi Gena,
    so, it's now clear, the jco client simply uses the dialog processes and not something smarter/more flexible
    Well, that's a feature of the underlying RFC protocol: All RFC calls are executed in dialog work processes, thus also the runtime limitations for dialog processes apply.
    My question is, ho to entice the jco client call to run without runtime timeout and take as long time as necessary. If the only possibility is, to use the tRFC, does anybody have an example for tRFC usage from JCo Client?
    The JCo client cannot do anything about it, it's a profile parameter in SAP, i.e. rdisp/max_wprun_time. But as this parameter applies to all dialog processes (so dialog users and RFC calls), so it shouldn't be changed to make a single RFC application work. Anyhow, tRFC won't help you in this case, because all RFC calls are processed in a dialog process no matter of the type of RFC.
    Once again, we want to run the JCo client calls unlimited time (as long as needed) without the annoying dialog process timeout.
    Impossible without making any changes in SAP. In theory one could modify the RFC function so that it resets the "runtime counter" and thus having the capability to run longer than rdisp/max_wprun_time. I'd recommend though not to do that, especially since a very long running RFC seems rather questionable. Long running tasks should be processed in background.
    Cheers, harald

  • How to execute an RFC in background

    Hello People!
    Is there a way of execute an RFC in background without broken the execution after connection timeout? I have a RFC calling another RFC in background mode but the process stops after connection timeout. As far as I know, the sap user connection is done like DIALOG and, after timeout, all processes started are finished.
    I thought to use JCO directly but i'm looking for a better solution.
    Thanks to all.
    Best regards,
    Marcelo

    Process p = Runtime.getRuntime().exec("yourCommand.exe");

  • 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

  • The request could not be submitted for background processing.

    Post Author: Chriss
    CA Forum: Administration
    It's an BOE XI SR2, on Win2k3 server, with a print cluster with two print spools, handling 3000+ printers. I discovered this error to be intermittent and only on one of the spools. It turned out that the only common factor was an HP4250 print driver. I backed all the 4250s down to 4200 drivers and the intermitent error ("Error in File. The request could not be submitted for background processing.") went from about 100 a day to zero. The other spool had a different version of the HP4250 driver and would on rare occassion cause this error, "Error in File ... Page header or footer longer than a page." but never the background processing error.
    For reference, when I got this error in XI R1, this was the solution for 'the error with one name and many causes':The error "The request could not be submitted for background processing" can be related to a corrupt or wrong versioned crpe32.dll in the Crystal bin folder. Renaming to crpe32.dll_bak and using the repair command in the the "Add/Remove Programs" tool in the "Control Panel" will reinstall the correct dll. Then restart the Crystal services.

    Post Author: krishna.moorthi
    CA Forum: Administration
    For Crystal reports :
    Error : "The request could not be submitted for background processing"
    I think,this was not related to a corrupt or wrong versioned crpe32.dll.
    but the below mentioned is one of the reason for getting this error.
    I got the error when the main report(crystalreports10) having more than 2 subreports not assigned proper tables for the subreports.
    Example: (this code raise the abone mentioned error.)
    rpt.SetDataSource(Exdataset);
    rpt.Subreports&#91;"subreportname1"&#93;.SetDataSource(Exdataset); // Exdatatset.Tables&#91;1&#93;
    rpt.Subreports&#91;"subreportname2"&#93;.SetDataSource(Exdataset);// Exdatatset.Tables&#91;2&#93;

  • How to Create Excel File in Background processing with different colors

    HI All
    I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
    Initially i completed above requirement by using HTML type of document with attachment type 'ALI'  & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
    but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
    I am thankfull to everybody who will help me.
    Regards
    Lokesh

    Lokesh,
    Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.

  • Data of alv report in  excel file in background processing using open datas

    Hi Experts,
    I have developed report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.
    i used open dataset  read dataset and close dataset but still problem is not solved. so if anyone have code with this and also which will have concatenate statement in the code send it.
    Regards,
    Rahul

    Hi Rahul,
    Ur code shud be like below:
    DATA : l_filename2 TYPE string,
                v_extn.
        SPLIT p_filename AT '.xls' INTO l_filename2  v_extn.
        CONCATENATE l_filename2  'downloaded'  INTO l_filename2  SEPARATED BY '_'.
        CONCATENATE l_filename2  'txt'   INTO l_filename2 SEPARATED BY '.'.
        OPEN DATASET l_filename2 IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
        IF sy-subrc <> 0.
          MESSAGE e499(sy) WITH text-e02.
        ENDIF.
        LOOP AT it_order_number INTO wa_order_number.
          TRANSFER wa_order_number TO l_filename2.
        ENDLOOP.
        CLOSE DATASET l_filename2.
    Now, go to tcode AL11 and check it in the Application server itself.
    Hope this helps,
    Regards,
    Arnab.

  • When running the workflow background process for drop shipment order, sale order line's status gets automtically closed instead of awaiting shipping

    Hello friends,
    I am created a drop shipment order with all the setups done . now i have booked the sale order as source type external. but when i run the workflow background process , after completing the report when i check the sale order line status it changes to "closed" instead of "awaiting shipping".
    Plz guide me if i have missed something in the setups.
    thanks,
    Sachin

    Hi Sachin,
    pls check the below notes from MOS
    Drop Ship Sales Order Cycle In Order Management (Doc ID 749139.1)
    Vision Demo - How To Create A Drop Ship Sales Order/Purchase Order (Doc ID 1060343.1)
    Thanks
    -Arif.

  • Crystal Reports VS 2008 "The request could not be submitted for background processing"

    Hi,
    I am going to try to explain this issue the best I can. Please let me know if you need any other information or have any ideas as I have exhausted my resources. We have an ASP.NET application that has highly formatted crystal reports in them that the users can export as PDFs. All reports export without a problem when the application is run off of our desktops. The reports use a sql server authenticated user, executing stored procedures, and each subreport is linked by the main parameter. We are using Visual Studio 2008 version 3.5 SP1 with Crystal Reports Basic for Visual Studio 2008 on Windows 7 Enterprise SP1. We have designed the reports in Crystal Reports XI Release 2 (11.5.12.1838) and imported them into the ASP.NET application. When trying to export the reports as PDFs from the development or production servers, we get the error message below for some, not all, reports:
    System.Runtime.InteropServices.COMException (0x800002AD):  Error in File C:\Windows\TEMP\KeyAccountProfile {9FA5C095-77A2-425D-AC6B-8BB66B435336}.rpt: The request could not be submitted for background processing.     at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)     at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    We have cleared the temp directory on the servers before exporting and are still receiving the error. We have installed Crystal Reports Basic Runtime for Visual Studio (10.5.2.0) on both servers. I have identified the underlying issue to one stored procedure/subreport that is causing the report to fail. The weird thing is, when we change the connection to point to development, the stored procedure/subreport runs fine for the report that generates an error when run from production, and the data is the exact same. I have tried rebuilding the subreport but the error still appears even though it runs fine for other reports.
    I have been through the document below, and othe similar issues in the forums, but still have not found a resolution. I was trying to use the "modules" application put since this is an ASP.NET application I am unsure of which executable I should be looking at.
    http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33?QuickLink=index&overridelayout=true&36837934524320
    Thanks in advance for your assistance,
    Brad Hood
    06-26-14
    OK.. I did some more investigating on this today. I have found out when I move the sub report that generates the error under another sub report, the sub report in question runs without issue. But when I try and move the sub report that produces the error above any other sub report, the error still generates. Can this get any weirder.... FYI.. there is a total of ten sub reports on this report.

    Hi Brad
    I'm not sure that Modules would show us anything in this case, so let's try a few other things:
    1) Make sure you are using SP 1 for Crystal Reports Basic Runtime for Visual Studio:
    Crystal Reports for VS 2005 and VS 2008 Updates & Runtime Downloads
    2) Seeing as this works on dev, this may be some db inconsistency so enabling the report option "Verify on 1st Print" will be a good idea.
    3) Double check the database client and make sure the same client is used on dev and deployed systems. Actually I take back my Modules negative as this is where it may prove useful. Once you have the Modules logs, look at who is loading the crpe32.dll, then look at that process and see the client dlls.
    4) Check the printer driver; see if there are any updates. Try a different printer driver.
    Ten subreports is not too bad, though not that good either as you are loading the report engine with at minimum 11 simultaneous reports (each subreport is considered to be a report). If a subreport is in a details section and the details section returns a 100 records, you are running 100 + 1 reports. This may lead to memory issues, which may lead to the error.
    If I was a betting man, I'd put most of my money on the printer driver (based on your last addition to your post). What ever money I had left would go to some database issue (be it actual data or client related).
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Background process taking very long time to complete.

    Dear All,
    Platform: HP UX
    Version: 12.0.6
    While time of shutting down the instance below background process taking very long time to complete.
    what is below mention process? can i kill it? total 3 process i am getting while finding ps -ef|grep applpre(applepre is apps instance's owner)
    applpre/apps/tech_st/10.1.3/appsutil/jdk/bin/IA64N/java -DCLIENT_PROCESSID=5457 -server -Xmx384m -XX:+UseSerialGC -Dor
    Thanks in Advance,
    Sandeep.

    Sandeep,
    Please see (Note: 567551.1 - Configuring various JVM tuning parameters for Oracle E-Business suite 11i and R12).
    You can safely kill those processes from the OS.
    Thanks,
    Hussein

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

Maybe you are looking for

  • PDF preview only works as administrator

    I maintain several 2008 R2 servers with Adobe Reader 11.0.4 installed. On some servers, I can view PDF files in the preview pane when logged in as an admin, but not when logged in with a non-admin account. On some servers, I can preview with non-admi

  • Returnable packaging material

    In our company, liquid glucose deliver to customers in Metal drums which are returnable. Metal drums are of two types i.e. New metal drums and 2nd Hand metal drums. First production department issue new drums for the production of liquid glucose then

  • Extending LOV that is used in multiple places

    Hi, I am planning to extend organization VO in iRecruitment (vacancy creation) to restrict the LOV based on organization type. This LOV is very common and is using in multiple places in he application. I am new to this and i need to know that by exte

  • Participation group AND settlement unit in real estate module

    Hello, i want to create Participation group (transaction RESCPG) and Settlement unit (transaction RESCSU). Is there any bapi or standard lsmw object to create the 2 objects ? thanks for your help.

  • What checks the String pool

    Hi there. With regard to the string pool, my book states that whenever the compiler encounters a string literal that it will check the pool to see if there is a matching string... This doesn't seem right to me. I would have imagined that the JVM woul