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

Similar Messages

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

  • 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

  • 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");

  • RFC in background task LUW

    Hello,
    I've two RFC in user-exit. Both, using IN BACKGROUND TASK DESTINATION XI
    When i execute the transaction, the user-exit is raising and i can see the follow error in SM58:
    maximum size of requests for one LUW has been reached(1).
    I've changing in the CC the parameter Maximum Conecction, however the error continue.
    If i comment the second call function in the user-exit, the first call function is executed OK, the interface is right,
    ¿how can i do to execute two functions in the same LUW?
    thanks

    Hi,
    >>¿how can i do to execute two functions in the same LUW?
    you cannot - you need to do "commit work." after each RFC call
    Regards,
    Michal Krawczyk

  • RFC  IN  BACKGROUND TASK

    Hai all,
    I created RFC 'ZBAPI_BACKPROCES' .
    And Im using this RFC in my ABAP program.
    BUT I having to call this FUNCTION MODULE in background Task .But I dont know how its working and also this FM does not returning any values.
    Can anyone Say  example with explaination (how its working).
    Thanks In Advance.
    regards,
    Ekadevi.S

    Here's a good explanation of the RFC types:
    [Master the five remote function call (RFC) types in ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694]
    Tim

  • How to transfer large transactional tables from RFC to background ABAP?

    Which is preferrable to use ABAP memory, SHARED MEMORY/BUFFER or SHARED ABAP OBJECTS in my scenario:  I have an external application sending two tables to an RFC.  The tables are made up of transaction data and can approach 1 GB in size.
    The RFC times out, since it is a dialogue process. Therefore, I programmed the RFC to SUBMIT a background job VIA JOB.
    QUESTION: How to import internal table into a program that was submitted via JOB?
    Do I have to use SHARED MEMORY/SHARED BUFFER, or can I still use ABAP memory?
    Can I send a table in a parameter in SUBMIT WITH construct?
    An issue I have encountered is that the result of the IMPORT FROM SHARED BUFFER constructu  is not consistent in consecutive executions. Why would the result of the  IMPORT be inconsistent if the code is exactly the same and the data is exactly the same?
    FYI I am building the memory ID dynamically and then sending in SUBMIT WITH parmeter?
    Please don't post links to SAP HELP documentation.. I have read it, re-read it and read it again.
    I really need expert experience, not generic documentation.
    Thanks in advance.

    Hi here is an example for the submit command use,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    codeREPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.[/code]
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
    Hope this helps.
    regards,
    venkat

  • Can i scheddule a function module(rfc)  in background

    hi,
    i want to know how can schedule a function module in background.
    bye
    sreenu.

    Transactional RFC before release 7.0
    1. CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    Transactional RFC as of release 7.0
    2. CALL FUNCTION func IN BACKGROUND UNIT
                         parameter_list.

  • Run the execution of RFC is background

    Hi
    I want to run the call of the rfc in my program in BACKGROUND.
    the requirement is that i want to call the rfc in infinitie loop which should process in background and depending on the next input the background job should stop.
    How to achieve it.

    You could do the following:
    report xxx. "to be scheduled in a background job
    DO.
      call function 'RFC' destination xxx......
    * based on the return value => exit
      IF return_value EQ 'the value you want'.
        EXIT.
      ENDIF.
    ENDDO.
    This code will call the RFC repeatetly until the desired value is returned. In that case the loop is left and the background job will end.
    However be careful with those infinite loops, because if there is a problem and you don't get the desired value back this background job will run forever.
    Regards,
    Michael

  • Process rfc in background workprocess

    Hi all,
    i hve to call a function module in  background workprocess but when i called a fm simply without specify background  then it's give me   right o/p .
    CALL FUNCTION 'Y_WS3_ALIASTEST'
    but after specify background then it's giving no values
    CALL FUNCTION 'Y_WS3_ALIASTEST'  IN BACKGROUND TASK
    why it's happend ,pls specify
    regards,
    anuj

    Hello Anuj.
    I would like to suggest my opinion,
    1. Go To Transaction SM37 - Simple Job Selection.
    2. Either Enter the Job name or the Program or for function module in the "or after event" box.
    3. Click on Execute.
    4. Then Further click on Job Log.
    There you would be able analyze the status.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Urgent  background  call for RFC?

    Hello all,
               I have designed a RFC(that is FM with RFC tab clicked)
    everything is fine ,but i just want to execute this RFC in background.what is  the procedure can anybody plz explain.

    Hi,
    Create an se38 report which calls this function module. Pass all the parameters. You may also give some select options too. Then schedule the report in background, which can satisfy ur requirement.
    If u have any further doubts pls post here.
    Regards,
    Renjith Michael.

  • Function Module to run as Background Job

    Hi All
    Could anyone tell how can i run a RFC function module as Background job,
    Right now, one external application calling this RFC FM, when this is getting executed, i can see a dialog process is occupied in SM50. Now o avoid this, i want when external application calls this RFC FM, it should get executed as a background job in SM50.
    Regards
    Munish Garg

    Hi Minish,
    Normally, we can call an RFC in background task as below:
    CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    But I am not sure whether your external application can call this RFC in background. But you can create an another RFC and inside call this RFC in background.
    Then call the new RFC so that it will internally call the required RFC in background and Immediately after it will be closed.
    Regards,
    Selva K.

  • Scheduled function module in background job

    HI all,
    I have created a function module(RFC) & Now I need to schedule it in background job, i have used fm job_open ,job_close  But through there i can only scheduled Reports  so pls gide me how to scheduled fm .
    regards,
    Anuj

    Hi Anuj,
    Check this one:
    Re: can i scheddule a function module(rfc)  in background
    Regards,
    Chandra Sekhar

  • Error"SYSTEM Failure" while testing the RFC in SE37  : RFC to JDBC Scenario

    Hi All,
    I am doing RFC to JDBC scenario. When I am testing the RFC in SE37 using the RFC destination created in SM59, I get an error "SYSTEM FAILURE".
    Please suggest.
    Thanks,
    Shyam
    Edited by: Shyam Sreepada on Dec 18, 2007 5:46 PM

    Hi,
    You must run RFC with RFC destination in background mode, I suggest to read following post in order to understand it better.
    Syntax would be:
    CALL FUNCTION func IN BACKGROUND TASK
                       [DESTINATION <your RFC destination>]
                       parameter list
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    If you read it you will find that you can't test it directly from SE37, for this either you need to create dummy ABAP program or another RFC where you will call this RFC with background syntax.
    Regards,
    Gourav
    Reward points if it helps you
    Edited by: Gourav Khare on Dec 18, 2007 6:07 PM

  • Sender rfc..async rfc to file scenario

    Since im new to XI...Can you please give a overview of the whole scenario which meets the  requirements... wrapping 1 rfc in another and then passing the final export parameters to a file using XI..
    ->i refered to       Re: XI : RFC Response Mapping
    also to the blogs 1438 and 3865.
    but the things r so abstract as to how to triggger the rfcs..
    Is it like calling the first rfc frm an abap pgm n calling the second one from first ...the only way?? How to achieve this?
    ->In what cases do we need this wrapping??
    Is there any way as to just pass the export parameters of a single rfc to a file using xi.
    ->Dont know whr to start the scenario to work out...even  the mappings are confusing...

    For implementing Sender RFC: (yet to work on this)
    1) We cannot use all the BAPI/RFC as is while doing an Async sender RFC.
    2) We should use a wrapper around this BAPI/RFC and it should be a custom RFC again.
    3) All the data that you need in XI for mapping should be passed through exporting or tables only.
    4) Importing parameters should be commented.
    5) Call this custom RFC in BACKGROUND TASK with DESTINATION. COMMIT WORK after calling custom RFC.
    6) Create RFC destination with Program ID same as the program ID in your communication channel.
    7) Import your custom RFC into repository.
    8) Use the custom RFC(request not response) as interface in all your agreements and interface mapping,
        message mapping.
    That should be all the steps. You should get your data in receiver adapter.

Maybe you are looking for

  • VPDN - L2TP Tunneling with IP pool on ACS 4.2

    Hi all, We have below scenario : Scenario 1 : I have implemented L2TP tunneling with authentication using radius and ip address assignment using local pool on AAA client devices. "2 client  initiates L2tp tunneling using the same username , and both

  • CS3 Photoshop Memory Leak?

    I have just gone from an 8MP to a 21MP camera and now my image files are large. When opened in Photoshop they run about 110 - 120MB. After processing 3 or 4 files having used multiple layers, in Windows XP task manager, I see Photoshop memory climbin

  • Clearing remembered login details on Firefox/Hotmail

    I sometimes use Firefox as my browser (because you can't download files from some sites, including some UK Government sites, when using Safari). I use Hotmail as my email, not Mail. When you type in your email address in Hotmail - when using Firefox

  • Clarification Regarding Jdeveloper

    Hi guys Iam new to jDeveloper. I would like to clarify which database versions can be used with jDev 9.0.3 to covert pl/sql's to Webservices. thanks in advance venkat

  • Burning iDVD

    When I burn a disk the slide show with sound plans. I added two video clips with sound, but the sound does not play. It plays when I run the iDVD I created, but when I burn it there sound on the slide show, but no sound on the two video clips. How ca